Please Help with: light_view = NULL;

Posted By: SeaCancer

Please Help with: light_view = NULL; - 10/22/12 23:11

Is this instruction only lite-c compatible?!

Or we can use it with c-script too?!
& if yes, How we can use it with c-script?!


I am forced to use c-script for one of our clients
But,,

The Dynamic lights flicker as camera moves,, as a solution I tried to type light_view = null; into main function, but it says it is unkown and gives an error

Please need help from experts
Posted By: Uhrwerk

Re: Please Help with: light_view = NULL; - 10/23/12 03:04

By default the light_ciew is the camera. Under normal circumstances you should leave it the way it is, except for the following cases:

- If you're using a custom view to render your level you should set light_view to that view.
- If you're using multiple views you should set light_view to NULL, effectively switching clipping of lights of.

I don't know if it's Lite-C only feature, the manual does not state that. If you can, switch to lite-c. Flickering lights however do no propose that lightview is set incorrectly. Have you checked max_lights? Are you using level blocks and if so is the map compiled with the "Create Meshes" option?
Posted By: SeaCancer

Re: Please Help with: light_view = NULL; - 10/26/12 01:28

Originally Posted By: Uhrwerk
By default the light_ciew is the camera. Under normal circumstances you should leave it the way it is, except for the following cases:

- If you're using a custom view to render your level you should set light_view to that view.
- If you're using multiple views you should set light_view to NULL, effectively switching clipping of lights of.

I don't know if it's Lite-C only feature, the manual does not state that. If you can, switch to lite-c. Flickering lights however do no propose that lightview is set incorrectly. Have you checked max_lights? Are you using level blocks and if so is the map compiled with the "Create Meshes" option?


Thanks buddy, things are working fine now laugh
© 2024 lite-C Forums