EntityFX examples for fx: 4+8+16+32?

Blitz3D Forums/Blitz3D Beginners Area/EntityFX examples for fx: 4+8+16+32?

Happy Sammy(Posted 2008) [#1]
Hi all,

It seems that fx:1+2 is usually for EntityFX.
Are there any EntityFX examples for fx: 4+8+16+32?

Thanks in advance


Matty(Posted 2008) [#2]
Perhaps you could check the command reference to find out for yourself?

Most of these questions are covered in the "help".

EntityFX 4 - I've never used it,
EntityFX 8 - if you want something to ignore fog effects and be visible
EntityFX 16 - if you want backfacing triangles not to be culled, ie visible regardless which side they are viewed from.
EntityFX 32 - used with vertexalpha to ensure alpha is displayed at a per vertex level.


Happy Sammy(Posted 2008) [#3]
Thank you, Matty.

The help only says this only, without an example:
Explanation is very concise.

fx - 
0: nothing (default) 
1: full-bright 
2: use vertex colors instead of brush color 
4: flatshaded 
8: disable fog 
16: disable backface culling 
32: force alpha-blending  

Flag 32, to force alpha-blending, must be used in order to enable vertex alpha (see VertexColor). 




Stevie G(Posted 2008) [#4]
If you want meshes to be lit in the same way as my recent demo Polymaniacs - use Fx 4. You have to ensure that the polygons are unwelded and normals calculated on a per triangle basis rather than using updatenormals.

Fx 32 must be used in conjunction with Fx 2 otherwise it will make no difference. The last parameter of vertexcolor allows you to set the vertex alpha.

I think the rest are pretty self-explanatory.


Happy Sammy(Posted 2008) [#5]
Thank you, Stevie G.
:D