Is there a way to make two-sided meshes

Blitz3D Forums/Blitz3D Beginners Area/Is there a way to make two-sided meshes

I was just wondering how to make to sided meshes because I noticed that I couldn't see a terrain I made from underneath.

EntityFX Entity, FX

Entity - entity handle

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


If you disable backface culling ( 16 ) then you should render both sides. Use it sparingly though, as it obviously decreases performance.

Wow, I've been wondering that same thing. I've seen the help for EntityFX but it's odd that I never noticed that 16 did that because I usually only messed around with 1 2 and 4.

Thanks that really helps!

Something to bear in mind is that making the backface visible doesn't affect collisions and picking. If you needed to pick and collide with the backface, then you would need to create actual mesh geometry for the backface.

If you need collisions then do a copymesh, flipmesh and addmesh. The will double your triangles though.

http://www.blitzbasic.com/b3ddocs/command.php?name=copymesh
http://www.blitzbasic.com/b3ddocs/command.php?name=flipmesh
http://www.blitzbasic.com/b3ddocs/command.php?name=addmesh

I knew how to use flipmesh and copymesh, but I hadn't heard of addmesh.

Thanks.