Hi Dirk,

Thanks so much for the patch! I got the dailybuild from 04 Dec 05, and there is
an improvement - at least now I get a window rendered, with the VR Juggler
avatar, in release versions! However, as soon as the volume object comes in
sight (it is by default a little off, so the avatar has to be moved a little
back until it starts being rendered) it crashes again.

I took some screenshots as well, to hopefully explain my problem better. I also
tried to move makeVolume so it's a class method, so now everything is in
OpenSGNav.cpp. Also, I should node that I have made the volume node to be a
child of the torus node - if this line mModelRoot->addChild(cModelRoot); is
commented, torus is rendered no problem. Here is the source

http://www.smilen.net/VolrenJuggler/Volren04JugglerSend.zip

So, in debug version, it crashes at a white screen:
http://www.smilen.net/VolrenJuggler/Volren04Juggler_crash_dbg.png

resulting with the following window trace
http://www.smilen.net/VolrenJuggler/windowTrace04_debug.txt

and the stack trace
http://www.smilen.net/VolrenJuggler/stacktrace04_debug.TXT

For debug, I get the message WARNING: TextureChunk::initialize: 3D textures not
supported for this window! which is the same that I get when I run
simpleVolumeNodeRender in Debug mode (Release versions do not have this
problem) - So I ran some tests on the regular VolRen examples and included them
below.

In any case, the stack trace in debug mode shows the crash at exactly the same
point FieldContainerPtrBase+0x29, though now, for instance
osg::Slicer::getSlicingDirection shows up in the trace.

The same program, in release version, crashes only when the volume comes into
the scene:
http://www.smilen.net/VolrenJuggler/Volren04Juggler_crash_rel.png

resulting with the following window trace
http://www.smilen.net/VolrenJuggler/windowTrace04_release.txt

and the stack trace (having of course only one line, no symbols - so I cant get
any more information from this) says it crashes at
OSGSystem!osg::FieldContainerPtr::FieldContainerPtr+0x6:
http://www.smilen.net/VolrenJuggler/stacktrace04_release.TXT

As the tests from the regular VolRen examples below will show, using the
DVRSimpleShader in debug mode results with TextureChunk::initialize: 3D
textures not supported for this window! so, as I ran these tests, I figured
that DVRMtexLUTShader works fine for me in debug mode (although it takes like 4 seconds to render a frame), so I tried to make a version that uses this shader,
in hope to skip the crash, but still the same. The source is here:

http://www.smilen.net/VolrenJuggler/Volren05JugglerSend.zip

It behaves the same as the Volren04Juggler, so the same screenshots from above
are valid, and the traces are here:

http://www.smilen.net/VolrenJuggler/windowTrace05_debug.txt
http://www.smilen.net/VolrenJuggler/stacktrace05_debug.TXT
http://www.smilen.net/VolrenJuggler/windowTrace05_release.txt
http://www.smilen.net/VolrenJuggler/stacktrace05_release.TXT

Just a wild guess - maybe in a VR Juggler context, it is not obvious to the
rendering system which way the slices should be oriented - since for instance,
they would have to be oriented differently if say you have to render for 6
screens (the slice orientation should change?) - although here I use the
standalone.jconf so I render for only one screen??

Well, it started going somewhere, but not there yet - so hope I will get some
more help to make this example work :)

Immense thanks
smilen

---------
PS: Screenshots from regular VolRen examples:

TestSimpleVolumeNodeRender (uses DVRSimpleShader)

in Debug - white box, textures not supported message
http://www.smilen.net/VolrenJuggler/SimpleVolRenDebug.png

in Release = all is fine
http://www.smilen.net/VolrenJuggler/SimpleVolRenRel.png


TestVolumeShadersRender

in Debug for DVRSimpleShader - white box, no message
http://www.smilen.net/VolrenJuggler/ShaderTest_SimpleShader_dbg.png

in Debug for DVRMtexLUTShader - all fine, takes a lot of time to render
http://www.smilen.net/VolrenJuggler/ShaderTest_MtexLUTShader_dbg.png

in Release for DVRSimpleShader - all fine
http://www.smilen.net/VolrenJuggler/ShaderTest_SimpleShader_rel.png

in Release for DVRMtexLUTShader - all fine
http://www.smilen.net/VolrenJuggler/ShaderTest_MtexLUTShader_rel.png




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to