Light makes my object invisible!

Blitz3D Forums/Blitz3D Programming/Light makes my object invisible!

Fry Crayola(Posted 2004) [#1]
Fiddling about a bit, I clicked on the example for CreateMesh in the manual, and ran the program. I get nothing on my screen. Interesting.

However, if I remove the light that is created entirely, and rely only on ambient light, I get to see the object created.

Put the light back again, and it all goes black.

Any ideas what's going on?


Rob Farley(Posted 2004) [#2]
Wild guess... Your normals are arse about face... try doing a flipmesh on your entity.


Fry Crayola(Posted 2004) [#3]
Aha. Did an UpdateNormals on it, it's fine now.

The curious thing is that this line of code is missing from the example. Without me fixing it, it doesn't work at all. Does it work for everyone else?


Rook Zimbabwe(Posted 2004) [#4]
yes


Fry Crayola(Posted 2004) [#5]
Hmm. So why then does it not work for me? Is it just a case of different hardware that needs to be catered for (hence carrying out an UpdateNormals command to "force" Blitz3D to do things right) or am I missing something?


Beaker(Posted 2004) [#6]
What is your gfx card and driver version?

You may just have buggy drivers.


Fry Crayola(Posted 2004) [#7]
I don't know. It's a laptop with shared memory between the video RAM and the main memory. And short of restarting the computer, I can't see how to find out. Maybe I'll do that.


Fry Crayola(Posted 2004) [#8]
Nope - damn thing's too fast to read.