View Single Post
  #7  
Old 08-08-2005, 10:09 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
4)I'll have to see a screenshot to understand what is going on there. But my guess is you have a problem with the draw order. Transparent objects should always be rendered after opaque objects. Also, rendering complex objects with transparency will usually create some weird artifacts also.
Reply With Quote