![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				Modifying transform node in C++ extension
			 
			
			
			Hi, 
		
		
		
		
		
		
		
		
	
	I need to modify the position and orientation of a 3D model in an C++ extension. Tried to pass a model and a transform node (created by Transform = vizmat.Transform() ) to the extension. Have tried something like this: int HybridTrackingExt::modifyNode(viz:  ata &data){ osg::Node* osg_root = data.getPointer<osg::Node>("osg_root"); if(osg_root != NULL) { std::cout << "Node found!" << std::endl; osg::MatrixTransform* mt = static_cast<osg::MatrixTransform*>(osg_root); if(mt) { _transform.makeTranslate( osg::Vec3(3.0f, 0.0f, 0.0f)); mt->setMatrix(_transform); } } return 0; } Unfortunately, this didn't work. How could a transform a 3D model using an extension? regards, Rafael  | 
![]()  | 
	
	
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| intersense.dle extension | kopper | Vizard | 4 | 07-12-2010 08:47 AM | 
| linear transform in 2D screen space | stefs | Vizard | 1 | 10-09-2009 11:15 AM | 
| tracker coordinates transform | Charlotte Li | Vizard | 1 | 05-18-2009 03:38 PM | 
| Modifying Vizinfo to Support Re-parenting Tip | Gladsomebeast | Vizard | 0 | 12-16-2008 06:34 PM | 
| Documentation for coding a new render node? | reedev | Plug-in development | 2 | 10-30-2008 11:06 AM |