VertexAlpha & Entity Alpha?
Archives Forums/Blitz3D SDK Programming/VertexAlpha & Entity Alpha?
| ||
Does using vertex alpha stop entityalpha from working? I'm buildinga mesh in realtime which uses vertexalpha and it seems to be immune to the effects of entityalpha till it reaches zero (object disappears). Is there any way around this? JP |
| ||
Seems to work ok in Blitz3D. Are you sure you are using a float for the alpha value? Is it between 0.0 and 1.0? |
| ||
Of course. |
| ||
Oh wait! My mistake, it isn't working in Blitz3D either, so I presume its a feature rather than bug. You can of course do global alpha yourself using the vertex alpha. |
| ||
It's hard to imagine this was done on purpose. Oh well, I'll have to think of something else. |
| ||
How were you hoping it would behave? As a multiplier or just as a quick way of setting the alpha of each vertex? |
| ||
As a multiplier. That would be consistent. It's not like VertexColour stops lighting from working. |
| ||
The same thing happens in MiniB3D. When vertex colours are enabled it seems the material alpha just gets ignored by the hardware. |
| ||
So it's a hardware\DX artifact rather than a bug in the engine? |
| ||
Well MiniB3D is OpenGL so it suggest it's a hardware thing. |