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 / Transparent model textures?

Author
Message
Mister Fuzzy
13
Years of Service
User Offline
Joined: 27th Feb 2011
Location: XNA
Posted: 7th Aug 2012 03:26
I made a model of a tree using Tree Magik... Everything looked fine, but when I exported the model to .x all of the textures lost their transparency, leaving ugly black boxes all over the model. Then, when I use dbSetObjectTransparncy ( object, flag ) the model looks terrible, drawing the textures in a way that you can see right through the model! How can I fix this?

ALIEN(S)!!!!!!!!1!! (and sausages)
Travis Gatlin
14
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 7th Aug 2012 03:54
You're setting the object transparency. I'm not sure how you would do this in Dark GDK but in Dark Basic Pro you would do:

I'm sure you can turn this into Dark GDK code though.

http://www.3dartistonline.com/user/Travis%20Gatlin
You can find my latest work here. Please comment on my work and tell me what you think!
Kezzla
15
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 7th Aug 2012 04:55
try setting the transparency mode to 4 or 6
eg
set object transparency objectno,6

this will give you the best result for tree magik and plant life trees.

Sometimes I like to use words out of contents
Mister Fuzzy
13
Years of Service
User Offline
Joined: 27th Feb 2011
Location: XNA
Posted: 7th Aug 2012 23:50
Whoa, Kezzla, that worked! But why aren't those modes listed in the documentation..?

ALIEN(S)!!!!!!!!1!! (and sausages)

Login to post a reply

Server time is: 2024-03-29 11:32:13
Your offset time is: 2024-03-29 11:32:13