Vertex Alpha from 3DS Max
Blitz3D Forums/Blitz3D Programming/Vertex Alpha from 3DS Max
| ||
Does anyone know what needs to happen in Blitz code in order to load the Vertex Alpha values stored in a .3ds file? I've tried to enable the vertex colors with the 32 flag in EntityFX, but it still shows the whole mesh as completely opaque. |
| ||
Vertex alpha needs not only flag '32' but '2' as well. Check EntityFX: flag 2 means 'use vertex color', and flag 32 means 'use transparency from vertices'. So you need to use (2 + 32) for flags. If it still doesn't work then the .3DS exporter is probably not including vertex alpha information in the mesh at all - make sure the vertex alpha option (or equivalent) in the exporter is enabled. |
| ||
Yeah, I tried using the 2 flag with the 32 flag, but no luck. I think I'm doing everything right in Max, but I can't get the vertex alpha values to show in my game. I might have to give the blitz3D pipeline a try. Hopefully I can find a solution. If not, I will either set the alpha values manually in code or find another technique for my game. Fortunately, I don't need to use the vertex alpha values often. |