Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / Transparency Question

Author
Message
Shogun Blackbrunei
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: Imaginary World
Posted: 28th Feb 2006 15:44
Hi, I want to make some grass to use in my game.
I made a nice texture which is either alphamapped or a plain 24-bits texture with black in it for transparency.
Now if I load my object and I want to make it transparent with the SET OBJECT TRANSPARENCY and the SET IMAGE COLORKEY commands, nothing happens at all, my black texture is just black.
When I use my alphamapped texture on the object and use the SET OBJECT TRANSPARENCY it IS transparent but! some blue lines appear around my 'cut-out' texture.
Is there any way to get a proper transparent texture going?

Shogun Blackbrunei
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: Imaginary World
Posted: 28th Feb 2006 17:43
On another note:
I used another texture for some other object, and I used colors varying from grey-black to black and I found that some parts of this texture were transparent using the SET OBJECT TRANSPARENCY command, however the parts that were transparent were not truly black.
Anyway, I copied parts of this texture onto my grass texture and surprisingly enough they didn't appear transparent anymore even though they were transparent before...
I need some help

Insanity Complex
19
Years of Service
User Offline
Joined: 16th Sep 2005
Location: Home
Posted: 1st Mar 2006 16:22
Um, it would help to know what program you're using...

Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 1st Mar 2006 17:39
hmmm, I haven't tried this, but I think you can do it through,

SET ALPHA MAPPING ON Object Number, Percentage


if not then I don't know

Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 1st Mar 2006 18:05
SET OBJECT TRANSPARENCY id, 3

i think

Heckno
20
Years of Service
User Offline
Joined: 8th Sep 2004
Location: Palm Coast, FL
Posted: 1st Mar 2006 21:03
Quote: "When I use my alphamapped texture on the object and use the SET OBJECT TRANSPARENCY it IS transparent but! some blue lines appear around my 'cut-out' texture."


are you using this object in an actual scene or just rending with the standard DB blue background?

Also you should upload the image so we can test on our own objects or at least post a screenie of how bad the blue lines are....

one thing to watch for with transparency is STRAY pixels in the image (around the edges of the image), a lot of times these strays are very light and very hard to see even magnified... They can cause an artificial ghosting around the transparent object in DB and are especially noticeable when only rendering to the typical blue background...

good luck and hope this helps....
Milkman
18
Years of Service
User Offline
Joined: 30th Nov 2005
Location: United States
Posted: 1st Mar 2006 21:23
set object transparency object,2 [or 3]

works like a charm

formerly xMik
Shogun Blackbrunei
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: Imaginary World
Posted: 1st Mar 2006 21:25
To answer all your questions, I tried both the commands you've given and both did not work. I also rendered it in both a real scene and just with the blue background.
The texture I use can be found at http://img436.imageshack.us/img436/6744/grass5uu.png
And on a side-note: I'm using version 5.2 of DBPro, maybe this has been fixed?

Heckno
20
Years of Service
User Offline
Joined: 8th Sep 2004
Location: Palm Coast, FL
Posted: 1st Mar 2006 22:31 Edited at: 1st Mar 2006 22:33
I ran the picture through photo7, got rid of the purple, cleaned up the edges (black parts) and saved it...

modeled a standard plan in milkshape (quicker to load than max 8 on my pc) and exported in x format...

attached shows two screens from DB, one with standard blue background, other with a modified sprite background...

compare these two with yours and let me know if cleaning up the edges works better.....

edit: using 5.2 myself.....

only used

SET OBJECT TRANSPARENCY 1, 1

on the object....

Attachments

Login to view attachments
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 1st Mar 2006 22:33
hm....try making the purple black, copy the image tho, alpha maps tend to really use black as a colour, or was it white lol, pretty sure its black

Shogun Blackbrunei
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: Imaginary World
Posted: 2nd Mar 2006 12:39
bosskeith
18
Years of Service
User Offline
Joined: 5th Dec 2005
Location:
Posted: 7th Mar 2006 20:15
mipmapping will give those nasty background what i call stroke lines turn mipmapping off for your object.

Ink all over the screen...and dang it! Signature still does not show.

Login to post a reply

Server time is: 2024-11-27 05:47:58
Your offset time is: 2024-11-27 05:47:58