Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #481: Mesh.SetLightningMode() on Duplicates
Product:
TV3D SDK 6.5
Language:
C#
Current State:
New
Resolution:
Unconfirmed
Created On:
September 28th, 2005
Last Modified:
September 28th, 2005
Reported By:
portapez
We've been experiencing some problems with lights on meshes witch are duplicated from other meshes and share the same memory space.

First of all, we put a point light in the scene and enable it. Then, we duplicate the mesh using Mesh.Duplicate("some", true), and set Mesh.SetShadowCast(true, true).

And, sometimes, when we call Mesh.SetLightingMode(CONST_TV_LIGHTINGMODE.TV_LIGHTING_NORMAL) there comes a NullException error. We were not able to tell the exact circunstances yet, it doesn't happen ALL the time, but we definetly solved it by changing the Duplicate so it doesn't share memory anymore, Duplicate("some", false).

Comments:

No comments available.