EntityColor confusion

Blitz3D Forums/Blitz3D Programming/EntityColor confusion

big10p(Posted 2004) [#1]
Hi

I have a simple model made with wings3D - it's all one colour (pink) and not textured or vertex coloured. I load it into B3D fine but I want to make a copy of it in a different colour, but EntityColor isn't working the way I expected. When I CopyEntity and EntityColor it to 200,200,200 say, it displays as light pink instead of the expected light grey.

EntityColor seems to be taking the RGB values given as intensity levels of the original mesh's colour. This isn't what I want. I want to be able to make copies and make them any colour I want; But how?

BTW, I tried using CopyMesh instead but it makes no difference. :/

Cheers!


Ross C(Posted 2004) [#2]
Any chance you could sen me the model?

scots1ad@...


fredborg(Posted 2004) [#3]
I think you need to paint the mesh with a brush, like this:
mesh = LoadMesh("whatever.x")
brush = CreateBrush()
BrushColor brush,200,200,200
PaintMesh mesh,brush
That should do the trick!


big10p(Posted 2004) [#4]
Thanks anyway Ross, but Fredborg solved it (again :). Didn't really think about using a brush as I've never bothered with them before.

Bit odd how EntityColor works though, eh? Maybe it should be renamed EntityTint?!

Cheers all!