PDA

View Full Version : Osg model loading error


jai
02-04-2016, 11:54 AM
Hello Jeff,
I have created a .ive n a .osgb model using open scene graph 3.2.0. I am getting loading error in vizard. Pls help

Jeff
02-04-2016, 09:52 PM
Can you describe further how you created the model? Vizard 5 is based on OSG 3.1.

jai
02-05-2016, 03:34 AM
Model is created using VPB in .ive and .osgb format.
I can upload or mail you the model. Since Other sample data models of OSG even 3.4.0 is successfully loaded in vizard , i expect this one to work.

jai
02-07-2016, 10:20 PM
Hello Jeff,

Can you guide me where to upload this model?

jai
02-08-2016, 03:53 AM
Hello Jeff,

I re built the model using osg 3.0.1 . It at least does not give any error but It is rendering the model as expected where as model is opening nicely in inspector. please help

jai
02-08-2016, 04:12 AM
please find the model file attached.

Jeff
02-10-2016, 05:46 AM
It looks like the scale of the model is off. Vizard's unit of measurement is the meter and the modeling software probably uses something else. If you look in Inspector, the bounding box of the model is around 5000 x 300 x 5000 meters. Try scaling the model down in Vizard:

import viz
viz.go()

sample = viz.addChild('sample.ive')
sample.setScale([0.001]*3)

import vizcam
vizcam.PivotNavigate(distance=10)

jai
02-11-2016, 02:59 AM
thanks a lot Jeff. It helped.

jai
02-21-2016, 09:33 PM
Hello Jeff,

Can we use all osgviewer controls from Vizard ? kindly help in this regard

Jeff
02-22-2016, 12:13 PM
Can you describe what you're trying to do?

jai
02-22-2016, 08:25 PM
Hello Jeff,
I have created one osga model using open scene graph. I use to run this model using osgviewer . Same model I can use in vizard also. But, osgviewer provides so many controls perspective view,lights etc. by default over the model ; Can I achieve all the controls of osgviewer in Vizard?

Jeff
02-22-2016, 09:23 PM
I'm not familar with osgviewer so am not sure if all the same controls are available. You can also browse the scenegraph and view the model in Inspector (http://docs.worldviz.com/vizard/#Inspector.htm%3FTocPath%3DThe%20Vizard%20IDE%7CIn spector%7C_____1). Lights can be added in Vizard using a standard (http://docs.worldviz.com/vizard/#Light_basics.htm) or vizfx (http://docs.worldviz.com/vizard/#Effect_Lighting.htm) workflow.

jai
03-30-2016, 03:32 AM
Hello Jeff,

I want to run *.osg file which is built on osg version 3.0 using vizard.

As , vizard is also built over osg version 3.1.

Can we view osg file using osg kind of viewer in wizard.

We donot want to add the object as 3d object in vizard for this.

jai
03-30-2016, 04:35 AM
jeff,

Actually i can see all include and lib directories of osg in vizard directory.
Now, can i say import osg or import osgViewer in vizard ??
if not then please help me how can i call osgviewer in vizard

regards
Jai

Jeff
03-30-2016, 11:18 PM
What functionality do you need from osgviewer and what is the result you are looking for?

jai
03-31-2016, 01:12 AM
Hello Jeff,

One objective is simply to visualize anything model / format compatible to osgviewer.

Secondly, to visualize the other applications built over osg 3.0 using vizard.

jai
04-04-2016, 01:43 AM
jeff,

please, help me in calling viewer from vizrard?
secondly, can we have all controls like osg in vizard using viz.go for example
flight mode, drive, terrain etc modes?

if not how to go around this??

Jeff
04-04-2016, 09:11 AM
Sorry, it's not possible to use osgviewer from within Vizard. Inspector is the tool that's included with Vizard for viewing Vizard compatible models and browsing the scenegraph.

I'm not sure what you're referring to by flight mode and drive. If you're looking for different navigation techniques in Vizard, take a look at the vizconnect transports.

jai
04-05-2016, 01:55 AM
Jeff,

We have purchased a license copy of vizard.

Can you give me your personal id or someone's id who can help me with my questions?

Thanks
Jai

Jeff
04-05-2016, 10:17 AM
Yes, you can send an email to support@worldviz.com for further questions about this.