Light makes my object invisible!
Blitz3D Forums/Blitz3D Programming/Light makes my object invisible!
| ||
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? |
| ||
Wild guess... Your normals are arse about face... try doing a flipmesh on your entity. |
| ||
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? |
| ||
yes |
| ||
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? |
| ||
What is your gfx card and driver version? You may just have buggy drivers. |
| ||
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. |
| ||
Nope - damn thing's too fast to read. |