![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Hi,  
		
		
		
		
		
		
		
		
	
	I am trying to add Node3D objects to vizdlg panels and am experiencing some difficulty. The objects are set to spin in the panel. However, after rotating a certain amount, the objects seem to be culled from the panel and fail to be rendered. So, the object completes most of its spin, disappears for a few seconds, and reappears later. I have tried enabling depth testing, disabling culling and nothing seems to help. Is this a clipping plane issue, or a culling issue? Any help is much appreciated, thank you.  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			The following code shows how to add a spinning model to a panel. Let us know if this helps to resolve the issue with your own code: 
		
		
		
		
		
		
		
		
	
	Code: 
	import viz
import vizinfo
import vizact
import vizdlg
viz.go()
viz.addChild('piazza.osgb')
avatarPanel = vizinfo.InfoPanel('Avatar Panel',align=viz.ALIGN_LEFT_BOTTOM,fontSize=22,icon=False)
avatarFiles = ['vcc_male.cfg','vcc_female.cfg','vcc_male2.cfg','pigeon.cfg']
    
for i,filename in enumerate(avatarFiles):
    
    if i == 3:
        scale = [130] * 3
    else:
        scale = [45] * 3
        
    avatar = viz.addAvatar(filename,scale=scale,euler=[i*90,0,0])
    avatar.addAction(vizact.spin(0,1,0,45))
    avatar.enable(viz.DEPTH_TEST,op=viz.OP_ROOT)
    avatar.state(1)
    subPanel = vizdlg.Panel(layout = vizdlg.LAYOUT_VERT_CENTER, border= False)
    subPanel.setMinSize([100,0])
    subPanel.addItem(avatar)
    avatarPanel.addItem(subPanel,align=viz.ALIGN_CENTER)
 | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Thank you! I did not end up using this code but it was still very useful. My problem was the different nodes in the panel were children from another model. I ended up switching the exact child node and got it working fine.
		 
		
		
		
		
		
		
		
		
	
	 | 
![]()  | 
	
	
| Tags | 
| gui, node3d, panel, vizdlg | 
| Thread Tools | |
| Display Modes | Rate This Thread | 
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| limiting sepia post-process effect to selected node3d objects | pitbool | Vizard | 2 | 02-23-2016 04:05 PM | 
| Trouble picking text3d objects | Salvar | Vizard | 4 | 12-01-2010 04:07 PM | 
| Iterate through node3d children | migoloco | Vizard | 2 | 09-22-2010 04:43 PM | 
| Semi-circle array containing target and distractor objects | ptjt255 | Vizard | 3 | 08-04-2009 04:09 AM | 
| Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 12:01 PM |