WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-28-2009, 08:58 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The original OSGExp exporter uses a Z-up convention, as opposed to the Y-up convention Vizard uses. The version of the exporter available on our site will export the model using the Y-up convention and name the root node __VIZARD_NODE__. When loading a model in Vizard, if this name is not present, then it will assume the model is using a Z-up convention and insert a transform node to rotate the model into a Y-up convention.

If you detach one of the children from the parent, then the transformation won't be applied to the node, and it will go back to using a Z-up convention.

Other than re-exporting your models, you could create a group node that contains the transformation from Z-up to Y-up (rotate 90 degrees along x-axis) and insert the children underneath this group node.

I could also provide you with the code that is used within our exporter that converts the model from Z-up to Y-up. Using this code you can write a small program that batch converts all your models. This code was written specifically for OSGExp, so it might not work correctly on models that were exported from other programs. Let me know if you want to try this out.
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Collision detection with specific models just alex Vizard 1 02-06-2009 11:02 AM


All times are GMT -7. The time now is 07:21 AM.


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