WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   OpenSceneGraph Version (https://forum.worldviz.com/showthread.php?t=6087)

saket 12-10-2017 10:26 AM

OpenSceneGraph Version
 
Which version of open-scene-graph does Vizard 5 use?

I am developing a model which loads correctly in native open-scene-graph Viewer 3.4.1 but fails to load in Vizard 5.

Jeff 12-10-2017 07:35 PM

Vizard 5 uses OpenSceneGraph 3.1

Veleno 12-11-2017 04:21 PM

Hi Saket,
Are you working out of 3ds Max or another program?

The ideal viewer for Vizard models is Inspector, which can be found in the "bin" folder of Vizard's install directory, typically "C:\Program Files\WorldViz\Vizard5\bin\Inspector.exe". Inspector uses the same code-base as Vizard, so its preview will be much more accurate to the final result than anything developed externally.

Exporting from Max:
3DS Max is currently the program with the greatest amount of workflow support, and is what we use internally. Max users should typically be using our own exporter found on our tools & plugins download page:
http://www.worldviz.com/virtual-reality-software-tools/

People using the plugin should also grab the settings preset file from this guide on storing and loading presets:
http://kb.worldviz.com/articles/2571

Vizard R5 Shader:
Vizard also has a custom shader (vizFX) developed separately from the core OpenSceneGraph project, so this also makes native previewers inaccurate for testing models intended for Vizard. THis can mainly be used by exporting from Max with the "Export Material Description" option enabled. In some cases, the shader will also work with FBX exports, though this workflow is mainly tested with models out of Max.

Details on the shader can be found here:
http://docs.worldviz.com/vizard/Shaders_3DS_Max.htm

To see models with the VizFX shader applied in Inspector, make the "effects" button is enabled in the bottom right. This toggles between viewing with the old FFP approach and the current shader. The current shader has better capabilities for things like reflections, normal maps and shadow-casting realtime lights.

Models intended for the shader should be added into code using vizfx.addChild() instead of viz.add().

saket 12-11-2017 11:12 PM

Hello Veleno,

I am using VirtualPlanetBuilder/osgdem to build large scale terrain database.

http://www.openscenegraph.org/index....planet-builder
https://github.com/openscenegraph/VirtualPlanetBuilder

I tried loading the generated model in Inspector. These were my observation
osgt [only terrain]: loads in inspector and displays correctly
osgt [terrain+texture]: the region covered by texture is not displayed properly
osgb/ive : fails to load in inspector

However all of these models load perfectly in OpenSceneGraph 3.4.1 .

saket 12-12-2017 04:43 AM

I tried installing Open Scene Graph version 3.1.0 and 3.1.10 and opening the model from it.
Model loads perfectly in 3.1.10 but gives the same error with version 3.1.0 which it gives in Vizard Inspector which is :

InputStream: Failed to read from stream. At osgTerrain::Terrain osg::Node

If it helps in providing any suggestion.

saket 05-09-2018 11:39 PM

Bumped into this after a long time. Maybe the solution would be useful for someone else.

The issue was resolved using VirtualPlanetBuilder 0.9.11 over Lubuntu 12.04 on which it compiled perfectly without errors and the resultant models loaded perfectly in Vizard 5.0


All times are GMT -7. The time now is 01:53 PM.

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