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.

Dark GDK / transparency of png image as texture for 3d object didn't work..

Author
Message
marlou
15
Years of Service
User Offline
Joined: 17th Jan 2009
Location:
Posted: 22nd Feb 2009 15:06
Here's my code..



I get a plane textured without transparency..
tree001_4.png Image texture attached below..

When a person has nothing but a dream, can he dare to dream.

Attachments

Login to view attachments
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 22nd Feb 2009 15:32
Transparency is disabled for objects by default. You can use dbSetObjectTransparency to enable and disable transparency for each object.

Craythur
15
Years of Service
User Offline
Joined: 9th Feb 2009
Location: Costa Rica
Posted: 22nd Feb 2009 16:42
Hi Marlou

Also, the best way to make this, is using dbSetObjectTransparency( ID, 4);
marlou
15
Years of Service
User Offline
Joined: 17th Jan 2009
Location:
Posted: 23rd Feb 2009 15:02
Ah i see.Transparency is disabled by default.

Thank you IanM and Craythur.

It should work now.^__^

When a person has nothing but a dream, can he dare to dream.

Login to post a reply

Server time is: 2024-11-25 15:28:18
Your offset time is: 2024-11-25 15:28:18