Addmesh color problem

Blitz3D Forums/Blitz3D Programming/Addmesh color problem

John Blackledge(Posted 2004) [#1]
I usually use EntityColor 128,128,128 for all my entities since this gives a better response to hardware lighting.
Now I've added two meshes to a CreateMesh() then deleted the originals and it displays ok, but the new mesh looks full bright.
I've tried:
brush = CreateBrush()
BrushColor brush,128,128,128
PaintMesh mesh,brush
and also
LightMesh mesh,128,128,128
and also
EntityFX mesh,2
and of course
UpdateNormals mesh

- all to no avail.
It's probably very simple. What am I missing?


DJWoodgate(Posted 2004) [#2]
Seems OK here.

http://www.blitzbasic.co.nz/Community/posts.php?topic=21734#222491


John Blackledge(Posted 2004) [#3]
Point taken, DJ.
I'll look at my code again.