Lighting issue with scaled meshes

Questions and answers about the how and why of making maps.
Post Reply
User avatar
LouMan
Chief Sgt. of Cartography
Chief Sgt. of Cartography
Posts: 338
Joined: Mon Jan 31, 2005 3:05 am
Location: Michigan, USA

Lighting issue with scaled meshes

Post by LouMan »

Does anyone know why I am having lighting issues with a custom mesh, scaled larger? A tank shot fired lengthwise across the top or side of the scaled mesh will not be reflected correctly - only on the corners. I have noticed that the problem is not apparent with object (face) sizes <= 10 m.

Attached is a simple, scaled cube mesh I have created that has this problem (note that I have offset the vertex indices by 1 because of my 3D modeler's output format - this is not the problem).

Please help!
Attachments
Box.bzw
Simple box mesh with scaling
(826 Bytes) Downloaded 334 times
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Post by trepan »

OpenGL calculates the lighting components at the vertices, and
interpolates for pixels in between them. Mesh faces are not currently
tesselated to improve the lighting effect.
User avatar
LouMan
Chief Sgt. of Cartography
Chief Sgt. of Cartography
Posts: 338
Joined: Mon Jan 31, 2005 3:05 am
Location: Michigan, USA

Post by LouMan »

Am I to understand that this problem cannot be corrected at this time :( ? Thanks for your help - it is really appreciated!
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Post by trepan »

You can improve your situation by making your own
tessellation. If you have a really large face for which
you wish to improve the lighting, you can break it
into smaller faces in the map.

Improved lighting may be available in future client
releases. A protocol change is not required to make
this modification.
Post Reply