Raydium 3D Game Engine
https://memak.raydium.org/

Textures with Alpha-Channel
https://memak.raydium.org/viewtopic.php?f=3&t=2195
Page 1 of 1

Author:  matzze54 [ Thu Feb 03, 2011 12:43 pm ]
Post subject:  Textures with Alpha-Channel

Hi,

I have created several trees using Textures with Alpha-Channel.
But there is a problem: Cars behind these trees are visible through the texture....

Does anybody know how to solve this?

greets matzze

Author:  ouille [ Fri Feb 04, 2011 11:57 pm ]
Post subject:  Re: Textures with Alpha-Channel

Hello,

As i remenber there is a limitation about transparent texture. Only alpha=0 and alpha=1 are allowed, you can't (as far as i remember) use other values (or 0 and 255 if you prefer).

See here:

http://memak.raydium.org/viewtopic.php?f=8&t=683


Vincente has got some problem like this.

Have a nice day.

Ouille

Author:  Xfennec [ Tue Feb 08, 2011 10:54 am ]
Post subject:  Re: Textures with Alpha-Channel

As stated in the link provided by ouille, documentation is not providing any information about this. I've just fixed that. (r1049)
http://wiki.raydium.org/wiki/RaydiumApi ... #texture.h

Author:  ouille [ Tue Feb 08, 2011 3:42 pm ]
Post subject:  Re: Textures with Alpha-Channel

Hello,

Is it possible to have semi transparent (blended ?) texture ? How can i obtain this ? It will be usefull to render drone propeller at high speed.

Have a nice day.
Ouille

Author:  Xfennec [ Tue Feb 08, 2011 4:26 pm ]
Post subject:  Re: Textures with Alpha-Channel

Well, as for ManiaDrive's Clio windscreen, using alpha channel "as usual". The only important point is to make sure that vertices with this texture will be rendered after all others, and therefore should be placed after all others in the TRI file* (and object must be rendered later as possible).

* I don't know if Blender exporter takes care of this, but if not, you can use raydium_modler, load/save your file, it will sort textures.
/load myfile.tri
/save myfile.tri

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/