WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1  
Old 07-17-2007, 05:30 PM
theuberk theuberk is offline
Member
 
Join Date: Jul 2007
Posts: 44
3ds pivot points

Hi,

I've been trying to move some cars (saved as a .3ds files) in vizard. I can successfully move the car and rotate the wheels but the problem lays in the center of rotation. The wheels on some cars do not appear to be rotating around the center of the wheel like they would in the real world.

I checked the pivot points in 3ds max 8 and noticed that this was the problem. The pivot points were not centered to the object. So I moved the pivot points in 3ds max to the center of the wheels and re-exported the models, but this seemed to have no effect, the wheels still rotated around the original incorrect pivot points.

Any suggestions?
Reply With Quote
  #2  
Old 07-18-2007, 12:04 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

If you are working with 3dsmax, I recommend using the OSGExporter that will export the model into Vizards native format. You can find it on our downloads page.

To rotate the wheels are you using the getChild() command on the car model? If so, you need to make sure that the child you are getting is located below any transform that is being applied to the wheel. This will ensure that the rotations applied to the child are in its local coordinate system.
Reply With Quote
  #3  
Old 07-18-2007, 09:56 PM
theuberk theuberk is offline
Member
 
Join Date: Jul 2007
Posts: 44
Thanks! This seems to have solved the pivot point problem. I can't be 100% sure though because not all my materials are being exported. I think the problem is that my materials are all sub-materials of one large super-material. The sub-materials are given indexes and the faces of the mesh are all assigned a material index. Only the material with the first index is being loaded in vizard. Any ideas?
Thanks,
Rob
Reply With Quote
  #4  
Old 07-19-2007, 11:48 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Are you still exporting to the 3ds format or are you using the osg exporter?
Reply With Quote
  #5  
Old 07-19-2007, 11:58 AM
theuberk theuberk is offline
Member
 
Join Date: Jul 2007
Posts: 44
I'm using the OSG exporter. All the materials will export correctly when I use the 3ds format.

Last edited by theuberk; 07-19-2007 at 12:03 PM.
Reply With Quote
  #6  
Old 07-19-2007, 12:55 PM
Veleno Veleno is offline
WorldViz Team Member
 
Join Date: Sep 2005
Posts: 148
Hi, theuberk.

Please attach a screenshot of the OSG export settings you are using.
Reply With Quote
  #7  
Old 07-19-2007, 02:14 PM
theuberk theuberk is offline
Member
 
Join Date: Jul 2007
Posts: 44
The image is attached
Attached Thumbnails
Click image for larger version

Name:	exportSettings.JPG
Views:	1258
Size:	58.3 KB
ID:	180  
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:25 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC