|
#1
|
|||
|
|||
Import viewpoint from 3rd party software
Is there an option to import the viewpoint that's used in a 3d design sofware, especially Sketchup, in Vizard?
I wonder how I can setup the corresponding viewpoint for an experiment using a vizcave powerwall. |
#2
|
|||
|
|||
It looks like there is a transform node called 'skp_camera_Last_Saved_SketchUp_View' that shows up in the collada model exported from Sketchup. However, you could also navigate in Inspector and then right click and copy the camera's position and euler values. If you are using vizcave powerwall code directly without vizconnect then set the CaveView position to place the user at a specific location in the scene. See the section on viewpoint movement in the vizcave documentation for more information.
|
#3
|
|||
|
|||
You are right, there is a node called 'skp_camera_Last_Saved_SketchUp_View'. But I don't know how to extract the camera's position and euler values from this node. Can you tell me how to do this?
|
#4
|
|||
|
|||
I would suggest setting up the viewpoint in Inspector. It looks like the saved view from SketchUp may not be scaled and rotated correctly according to Vizard's coordinate system.
|
#5
|
|||
|
|||
It would be great if I could try to apply the view from SketchUp to the model in Vizard as I need the same viewpoint from which the model was exported. Also, it looks like the saved view is displayed in the right way in Inspector in my case. Can you provide the Vizard code for getting the camera's position and euler values from this node?
|
#6
|
|||
|
|||
First get a handle to the transform node and then you can get its position and orientation:
Code:
model = viz.addChild('model.dae') viewNode = model.getTransform('skp_camera_Last_Saved_SketchUp_View') pos = viewNode.getPosition(viz.ABS_GLOBAL) ori = viewNode.getEuler(viz.ABS_GLOBAL) |
#7
|
|||
|
|||
Thanks Jeff, that did the job for me!
|
Tags |
powerwall, sketchup, viewpoint |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Regarding Viconnect viewpoint | rajnishv | Precision Position Tracker (PPT) | 3 | 03-20-2017 11:03 PM |
Regarding viewpoint with vizconfig,addFloatRangeItem&Storing viewpoint in PREFERENCES | rajnishv | Vizard | 0 | 06-27-2016 03:57 AM |
moving at different speeds | Saz | Vizard | 8 | 06-07-2011 05:02 AM |
Arrington - Ethernet ViewPoint Client | jaclyn.bill | Vizard | 3 | 10-23-2009 10:43 AM |