![]() |
#7
|
|||
|
|||
Hi,
1) Vizard does not currently have shadow lighting, so the shading of objects stays the same regardless of what other objects are between it and the light source. 2) The problem is that mouse navigation is enabled on the main viewpoint. So the jumpiness is caused by the default mouse navigation fighting with your mouse navigation over control of the viewpoint. 3) You should probably use the vizact library for this. Create an action that perfroms the first two animations, and use a callback to deteremine when to perform the last part. Code:
#Create the action once GoAndSpin = vizact.sequence(vizact.goto(0.3,0.5,0.2,0.1),vizact.spinto(0,1,0,0,2,viz.TIME)) #Later in the code add the action to the object arrowOrangeGlTemp.add(GoAndSpin) #Use callback to determine when action is finished def ActionEnd(obj,action,pool): if action == GoAndSpin: arrowResultant.translate(posBlueArrow.get()) arrowResultant.rotate(45,0,0) arrowResultant.scale(1,1,0.1) arrowResultant.visible(1) arrowResultant.size(1,1,1,2,viz.TIME) viz.callback(viz.ACTION_END_EVENT,ActionEnd) |
|
|