Is there a way to make two-sided meshes

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

Nate the Great(Posted 2008) [#1]
I was just wondering how to make to sided meshes because I noticed that I couldn't see a terrain I made from underneath.


Gabriel(Posted 2008) [#2]
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.


GIB3D(Posted 2008) [#3]
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.


Nate the Great(Posted 2008) [#4]
Thanks that really helps!


Zethrax(Posted 2008) [#5]
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.


Rob Farley(Posted 2008) [#6]
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


Nate the Great(Posted 2008) [#7]
I knew how to use flipmesh and copymesh, but I hadn't heard of addmesh.

Thanks.