Grasshopper_NET Posted August 2, 2004 Posted August 2, 2004 Anyone know how to implement lighting in managed c++? I tried to set the values of the dev->Lights->Item[0].LightType, but that doesn't work. I created a new Light* light object, filled in the neccessary values and enabled it light->Enabled = true; Nothing. Any ideas are welcomed. Thnx :confused: Quote
*Experts* mutant Posted August 2, 2004 *Experts* Posted August 2, 2004 Setting only the LightType property will not do much. Depending on the type of light you must set other properties too. Quote
Grasshopper_NET Posted August 2, 2004 Author Posted August 2, 2004 Hey Mutant, Thnx for replying. I tried to set not just the light type but all the other properties but it says that the dev->Lights->Item[0] doesn't have a 'put' method. What I understand is that you can't set these light properties only read them. I looked for a dev->SetLight() method but can't find one. Quote
Kavan Posted August 3, 2004 Posted August 3, 2004 If I remember managed C++ does not support properties. You'd have to access properties by their accessor methods like: x->set_Item(0, value); x->get_Item(0); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.