|
#1
|
|||
|
|||
The code you posted will disable the headlight. Do you have any other real time lights added in your script?
To prevent real time lights from affecting the model you can either
|
#2
|
|||
|
|||
Thanks for your answer. There are no other real time lights added in the script. The osg export settings of the model were probably wrong. There were lights in the scene of the model file and they were surely exported, which might have caused the problem. Also the 'turn off lighting' option wasn't checked. How do you disable lighting (else than the headlight) of a model through the script, if there are not any lights added via script ?
|
#3
|
|||
|
|||
Use the following to disable real time lights on the model:
Code:
model.disable(viz.LIGHTING) |
#4
|
|||
|
|||
Thanks, that code solves the problem.
|
Tags |
disable, headlight, vizard5 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vizard Headlight in Shader | shivanangel | Vizard | 1 | 06-27-2012 01:19 PM |
Vizact onupdate events that wont be disabled | Reca | Vizard | 1 | 11-16-2011 05:25 PM |
Headlight Question | new_horizon | Vizard | 5 | 03-04-2011 09:45 AM |
how to remove velocity when mouse is disabled? | jvacare1 | Vizard | 2 | 02-18-2010 10:25 AM |
headlight defaults | michaelrepucci | Vizard | 3 | 08-22-2008 10:44 AM |