Skip to main content

Opacity Map

1 reply [Last post]
guiramos
Offline
Joined: 2004-11-09

How can I use the following image like a opacity map ??

http://www.meubrfree.com.br/~guivieira/star.png

I mean, I got a quad. Single QuadArray with 4 vertices mapped... and then, I look around in the TransparencyAttributes object but havent found anything to do this...

any help will be appreciate!
thank you!

Message was edited by: guiramos

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Alessandro Borges

Take a look at Texture2D contructor. There is some texture formats you can use

"format - data format of Textures saved in this object. One of INTENSITY,
LUMINANCE, ALPHA, LUMINANCE_ALPHA, RGB, RGBA."

I guess one of then will help you.
If I am not wrong, the first 4 formats uses monochrome images (for
Alpha/Luminance channel), RGB is 3 color channel, and RGBA uses 4 channel (as
PNG RGBA images).

Do not forget to set a transparency attribute to your quad.

Alessandro

__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger
http://br.download.yahoo.com/messenger/

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net