Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
Transparency on BillboardSceneNode

boxbee
Registered User
Quote
2013-01-11 09:36:52

How do you get transparency to work on a BillboardSceneNode? I have tried using a whole bunch of different .png's that have transparent parts, but the image shows up with a white background. Do you have to specify somewhere that the image contains some transparency?


niko
Moderator
Quote
2013-01-11 10:51:00

Yes, you need to set the material type of the billboard to CL3D.Material.EMT_TRANSPARENT_ALPHA_CHANNEL. You usually do this like this:
yourNode.getMaterial(0).Type = CL3D.Material.EMT_TRANSPARENT_ALPHA_CHANNEL;



boxbee
Registered User
Quote
2013-01-11 21:28:08

Niko, thanks again! You are a genius.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact