WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-30-2016, 05:10 AM
Patrick Patrick is offline
Member
 
Join Date: Oct 2016
Posts: 13
STL-Import

Hey,

i got the following problem. In my Vizard program i want to import a STL data created by Matlab. I did this via the viz.addChild Function.
In addition i have a Grabber tool implemented via vizconnect.
When i start the program, the STL-imported data is fixed to the upper "left corner of my frontview. When i turn right or left it disappears but it follows me when i walk around and as soon as i start looking in my initial direction its there fixed again. So i wonder why cant i fix it to a set point in the world, instead of my view or especially why it is fixed to my view? Also my hand (grabing tool) disappears when i hover over the imported "form"

Greetings
Attached Files
File Type: zip virtueller_roboter.zip (5.1 KB, 816 views)

Last edited by Patrick; 11-30-2016 at 05:16 AM.
Reply With Quote
  #2  
Old 11-30-2016, 11:36 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The scale of the model may not be correct in Vizard. Open up the model in Inspector and look at the bounding box dimensions in the status bar at the bottom of the window. Does that look correct?
Reply With Quote
  #3  
Old 12-01-2016, 01:41 AM
Patrick Patrick is offline
Member
 
Join Date: Oct 2016
Posts: 13
Thats the screenshot from the inspector
it looks like the Box to move the quader is at its lower left out of the quader. Is there a way to move it to the actual figure?
Attached Thumbnails
Click image for larger version

Name:	STL-Inspector.png
Views:	677
Size:	189.3 KB
ID:	873  

Last edited by Patrick; 12-01-2016 at 01:50 AM.
Reply With Quote
  #4  
Old 12-01-2016, 11:30 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The model units in Inspector and Vizard are in meters. It looks like the model needs to be scaled down by a factor of 1000 or 100. Most likely the original model units were in mm or cm. You can scale the model and move the geometry to the world origin in Inspector. Then save it out with the changes.
Reply With Quote
  #5  
Old 12-05-2016, 07:17 AM
Patrick Patrick is offline
Member
 
Join Date: Oct 2016
Posts: 13
Thanks for the help, worked properly
So my problem is that the STL data has "wrong" parameters?
It kinda bothers me tho that i always have to scale down every STL data down to make it work properly in my World. Isnt there a possibility that the STL data comes scaled in the right way already or is that a matter of setting up the STL data?
Reply With Quote
  #6  
Old 12-05-2016, 01:08 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
I'm not sure if there's anything wrong with the data. If different units of measurement are used between software there must be a conversion to account for this. You maybe able to scale it before exporting. Besides scaling in Inspector, you can also scale a model in the Vizard code.
Reply With Quote
  #7  
Old 12-06-2016, 01:05 AM
Patrick Patrick is offline
Member
 
Join Date: Oct 2016
Posts: 13
Alright then ill see if i can optimize it any further otherwise it works with that aswell
Thanks a lot for the help
Reply With Quote
Reply

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
Import viz from c++ Ciccio Vizard 4 06-07-2016 03:21 PM
reagrding closing the output window console of vizard rajnishv Precision Position Tracker (PPT) 1 04-27-2016 03:25 AM
Unable to draw EyeLink drift correction to screen chris2307 Vizard 6 08-18-2014 02:22 PM
Best way to import map data from 3ds Max v-Salik Vizard 6 04-09-2010 04:40 AM
Pick porblem with arrays shivanangel Vizard 3 08-27-2007 10:10 AM


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


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