New feature: alpha for alpha materials

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
mk.1
Posts: 76
Joined: Wed Oct 10, 2007 7:37 pm

New feature: alpha for alpha materials

Post by mk.1 »

Basically a third float value ("alpha" or "factoralpha") that regulates the overall alpha value of EMT_TRANSPARENT_...

Needs changes for CMaterialRenderer.h
d3d: uses texturefactor (renderstate) and a alphastate ALPHAOP1 = MODULATE with ALPHAARG1 = texture; ALPHAARG2 = texturefactor
I think there's an equivalent for OGL. Should be easy to implement for the software drivers as well.

Advantage: Easy fade in/fade out for single scene nodes without change of the vertex alpha values.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

I'm liking it. I don't know how practical it will be, but it would certainly be useful.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

I'll second that.
Post Reply