Re: [osg-users] [3rdparty] osg::image / Create a 3d image

2009-12-16 Thread Ulrich Hertlein
Hi Thomas, On 16/12/09 3:23 AM, Thomas Canipel wrote: //creation of the data int height=100; int width=100; int length=100; const long size = width*height*length; For RGB this needs to be (w*h*l)*3, ie. number-of-pixels * channels-per-pixel. unsigned short* data = (unsigned

[osg-users] [vpb] adding optional datasets to existing db

2009-12-16 Thread Christiansen, Brad
Hi all, A quick comment first, it has been a couple of years since I have used osgdem, and it is great to see it is going so well (as VPB). Thanks Robert. I have been experimenting with the various options for patching an existing db. One of things I need to be able to is to add more optional

[osg-users] [vpb] dynamic overlays on geocentric db, any suggestions?

2009-12-16 Thread Christiansen, Brad
Hi All, I need to implement a dynamic 'drawing' overlay that is rendered onto a model created using vpb. Has anyone tackled this so far? My first thought is to use the osgSim Overlay as I have used this to do the same thing on a flat world. Should this work for a geocentric model? My first

Re: [osg-users] QUAD_BUFFER Stereo on Vista

2009-12-16 Thread Kim Bale
Hi Teodor, I'm not sure if this is a common problem, but in the company I work for we have never been able to get quad buffered stereo to work in a window in Vista (fullscreen is fine). We've come to the conclusion that it is a driver issue and reported it to nVidia, but thus far there there

Re: [osg-users] Text Crash On Main Thread While DB Pager Unrefs Font From Temp Object Cache

2009-12-16 Thread Ryan H. Kawicki
More generally I'm not convinced that we need to deprecate the none ref versions. I'd be inclined towards just documenting that multi-threaded reads should use the Ref versions. It might not be convincing to have to go back to the code base and remove these unsafe sections of code, but

Re: [osg-users] Question regarding Culling issue in the SceneView

2009-12-16 Thread Robert Osfield
Hi J-S, Viewer::updateTraversal() and CompositeViewer::updateTraversal() both traverse the scene graph and explictly camera's update callbacks. What these updateTraversal() methods do is switch of the traversal of the camera's subgraph when the camera subgraphs are traversed, so the children

Re: [osg-users] OSG QT

2009-12-16 Thread Robert Osfield
Hi Samuel, On Tue, Dec 15, 2009 at 9:00 PM, Samuel Grant gr...@novatechnologies.net wrote: Getting unresolved reference errors when trying to build OSG into QT. All stemming from the OSG libs? Any thoughts? Are you linking your app to the OSG??? Go check there aren't errors about not

Re: [osg-users] [3rdparty] OSG Volume / Transfer Function

2009-12-16 Thread Robert Osfield
Hi Thomas, On Tue, Dec 15, 2009 at 7:58 PM, Thomas Canipel thomas.cani...@gmail.com wrote: I am actually trying to understand the OSG Volume Example, The alpha coefficient allow me to play with the extinction coefficient, but have problem to use the transfer function. What does represent

Re: [osg-users] file extension alias

2009-12-16 Thread Robert Osfield
On Tue, Dec 15, 2009 at 11:23 PM, Jan Pečiva pec...@fit.vutbr.cz wrote: I like Coin (Open Inventor clone, OSG competitor) since: 1. it has intuitive consistent API and excellent design IMHO, Inventor has a terrible design for a scene graph, the state system breaks the ability to have a high

Re: [osg-users] [vpb] dynamic overlays on geocentric db, any suggestions?

2009-12-16 Thread Robert Osfield
Hi Brad, osgSim::OverlayNode does work for whole earth databases. Have a look at the osgsimulation example for an example of this in action. Robert. On Wed, Dec 16, 2009 at 9:19 AM, Christiansen, Brad brad.christian...@thalesgroup.com.au wrote: Hi All, I need to implement a dynamic

Re: [osg-users] Text Crash On Main Thread While DB Pager Unrefs Font From Temp Object Cache

2009-12-16 Thread Robert Osfield
Hi Ryan, On Wed, Dec 16, 2009 at 9:43 AM, Ryan H. Kawicki ryan.h.kawi...@boeing.com wrote: It might not be convincing to have to go back to the code base and remove these unsafe sections of code, but by having a set of documentation is really not going to help eighty or ninety percent of the

Re: [osg-users] QUAD_BUFFER Stereo on Vista

2009-12-16 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2009-12-16 10:28, Kim Bale wrote: It would be interested to know if there are many people on the list having this issue actually since there seems to be a lot of bods working with stereo here. Yep, but not all are such masochists as to use

[osg-users] osgSim problem

2009-12-16 Thread İsmail Kurnaz
Hi, I start to study openscenegraph. I try to do tutorials. On Basic Tutorials 7 that Finding and Manipulating a Switch and DOF Node I couldn't run the codes wihich I download from the site. Winding Nodes worked but Manipulating a Switch and DOF Node didn't work. I think mistake about osgSim.

Re: [osg-users] QUAD_BUFFER Stereo on Vista

2009-12-16 Thread Jean-Christophe Lombardo
Jan Ciger wrote: Yep, but not all are such masochists as to use Vista for graphics work :) That problem looks like a driver issue, indeed. However, I vaguely recall that in Windows the stereo had to be enabled in two places - first checkbox turned on the quad buffer support and the other stereo

Re: [osg-users] file extension alias

2009-12-16 Thread Jan Pečiva
Robert Osfield wrote: On Tue, Dec 15, 2009 at 11:23 PM, Jan Pečiva pec...@fit.vutbr.cz wrote: I like Coin (Open Inventor clone, OSG competitor) since: 1. it has intuitive consistent API and excellent design IMHO, Inventor has a terrible design for a scene graph, the state system

Re: [osg-users] QUAD_BUFFER Stereo on Vista

2009-12-16 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2009-12-16 12:44, Jean-Christophe Lombardo wrote: Actually, to enable openGL stereo display you have turn off the 3D stereoscopic Driver... (see Display Settings on http://www.nvidia.com/object/quadro_pro_graphics_boards.html) Usability you

Re: [osg-users] QUAD_BUFFER Stereo on Vista

2009-12-16 Thread Teodor Hanchevici
Thank you all for your insight. I have followed all the instructions on NVIDIA page to enable the stereo, and then I have tried the osgstereoimage with --window option and it worked fine in a 800x800 window. Cheers, Teodor -- Read this topic online here:

Re: [osg-users] OSG QT

2009-12-16 Thread Samuel Grant
Yeah, as far as I can tell, the OSG libs are on the link path... This happens even when trying to compile the 'QOSGWidget' without any mods (other than making sure it points to my OSG dir). --Sam -- Read this topic online here:

Re: [osg-users] OSG QT

2009-12-16 Thread Teodor Hanchevici
Hi Sam, did you use moc to generate QT code from header files? Cheers, Teodor -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=21571#21571 ___ osg-users mailing list

Re: [osg-users] file extension alias

2009-12-16 Thread Robert Osfield
Hi John, On Wed, Dec 16, 2009 at 12:15 PM, Jan Pečiva pec...@fit.vutbr.cz wrote: We can never agree in the discussion. Inventor became de-facto standard for visualization and simulations for its design that was revolutionary in 90's. Inventor was the defacto standard in the 90's for scientific

Re: [osg-users] OSG QT

2009-12-16 Thread Samuel Grant
calin wrote: Hi Sam, did you use moc to generate QT code from header files? Cheers, Teodor In examining the output from the compile, it appears that the header files get moc'ed. Also I get a few moc-prefixed CPP files in my source dir from some of the QOSGWidget headers.

Re: [osg-users] QUAD_BUFFER Stereo on Vista

2009-12-16 Thread Teodor Hanchevici
Hi there, OK, after some fiddling around I was able to make the application run by setting the following in the environment: OSG_STEREO ON OSG_STEREO_MODE QUAD_BUFFER In my code I have the following: osg::DisplaySettings::instance()-setStereo(true);

Re: [osg-users] Question regarding Culling issue in the SceneView

2009-12-16 Thread Jean-Sébastien Guay
Hi Colin, I tried adding an update callback to the top level camera and that did work. I checked the code and it does call accept: 346: _camera-accept(*_updateVisitor.get()); So it should work correctly (as of 2.8.2) Sorry, I was mistaken in saying that the cameras did not get the update

Re: [osg-users] Question regarding Culling issue in the SceneView

2009-12-16 Thread Jean-Sébastien Guay
Hi Robert, What these updateTraversal() methods do is switch of the traversal of the camera's subgraph when the camera subgraphs are traversed, so the children won't be traversed. This is done so that the scene graphs aren't traversed multiple times per frame, but... I believe in your case

Re: [osg-users] OSG 2.8.2 compile error...

2009-12-16 Thread Markus Lacay
Thanks Alberto! This helped. More specifically, disabling this option helped to allow osgUtil to build. (building osg 2.9.6) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=21577#21577 ___ osg-users

Re: [osg-users] QUAD_BUFFER Stereo on Vista

2009-12-16 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2009-12-16 14:56, Teodor Hanchevici wrote: Hi there, OK, after some fiddling around I was able to make the application run by setting the following in the environment: OSG_STEREOON OSG_STEREO_MODE QUAD_BUFFER In my code I

Re: [osg-users] QUAD_BUFFER Stereo on Vista

2009-12-16 Thread Teodor Hanchevici
Hi Jan, I commented off the line osg::DisplaySettings::instance()-setStereoMode(osg::DisplaySettings::StereoMode::QUAD_BUFFER); and unset OSG_STEREO in the environment, leaving only OSG_STEREO_MODE as QUAD_BUFFER. This generated a lot of OpenGL errors and the app did not render stereo.

Re: [osg-users] QUAD_BUFFER Stereo on Vista

2009-12-16 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2009-12-16 16:18, Teodor Hanchevici wrote: Hi Jan, I commented off the line osg::DisplaySettings::instance()-setStereoMode(osg::DisplaySettings::StereoMode::QUAD_BUFFER); and unset OSG_STEREO in the environment, leaving only OSG_STEREO_MODE

Re: [osg-users] file extension alias

2009-12-16 Thread Robert Osfield
Hi John et. al, On Wed, Dec 16, 2009 at 1:34 PM, Robert Osfield robert.osfi...@gmail.com wrote: To be clear automatically setting ReaderWriter::_supportedExtensions from osgDB won't be generally be safe.   For specific plugins it might be possible to use it, and for these I would recommend you

Re: [osg-users] Question regarding Culling issue in the SceneView

2009-12-16 Thread Robert Osfield
Hi Colin, Your analysis of the what is required is spot on, the only little change I've made to it is to remove the (osg::Node node = *_camera.get()); as one can simple use the _camera ref pointer directly thus: // traverse the scene graph to generate the rendergraph. // If the camera

Re: [osg-users] Frustum/Culling issue with PagedLod

2009-12-16 Thread Vincent Bourdier
(20091216) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] [3rdparty] osg::image / Create a 3d image

2009-12-16 Thread Thomas Canipel
yes the allocate Image is not necessary it is override by the setImage(), I was missing the size of the channel ;) Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=21588#21588

Re: [osg-users] [3rdparty] osg::image / Create a 3d image

2009-12-16 Thread Thomas Canipel
In order to use a limit of 255, I needed to use GL_UNSIGNED_BYTE (char) Code: int height=100; int width=100; int length=100; const long size = width*height*length*3; unsigned char* data = (unsigned char*)calloc(size,sizeof(unsigned char));

[osg-users] Load file from URL link

2009-12-16 Thread Danny Lesnik
Hi, Is there any way to read node file using osgDB::readNodeFile method from URL? For example http://localhost/1.3DS Thank you! Cheers, Danny -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=21590#21590

[osg-users] Problem with using static initializers to preload plugins

2009-12-16 Thread Paul Martz
Hi Robert and all -- As you know, I have a private nodekit that uses the .osgb extension. In order to avoid collisions with the upcoming new OSG binary format, I've added a static initializer to the nodekit to force load my .osgb plugin. As we've discussed previously, this is what I need to

Re: [osg-users] Optimal Rendering setup

2009-12-16 Thread Mark Jones
I've generated 2 textures, (started using osgprerender) and I can get those two textures and blend them together (although not using a shader), just a textenv: Code: osg::StateSet* pTextureState= new osg::StateSet; osg::TexEnv *texenv = new osg::TexEnv(osg::TexEnv::ADD);

Re: [osg-users] Python users

2009-12-16 Thread Massimo Di Stefano
Hi Jean-Sébastien, thanks! running the latest notes from the wiki main page all works fine. now i'm exploring the example code. a question : have you never tried to add a python osgviewer inside a PyQt4 (or wx-python) gui ? thanks, Massimo. Il giorno 15/dic/2009, alle ore 18.47,

Re: [osg-users] Python users

2009-12-16 Thread Jean-Sébastien Guay
Hello Massimo, running the latest notes from the wiki main page all works fine. now i'm exploring the example code. Good to know you're getting better success now. have you never tried to add a python osgviewer inside a PyQt4 (or wx-python) gui ? No, sorry. If you try it let me know, I

Re: [osg-users] [3rdparty] OSG Composer released

2009-12-16 Thread James Bradbury
Hi, ... i am trying to animate a solidworks model based on real position translation data and was looking at osg composer to do this, is there anyway of moving a part from a solidworks assembly using a script? i.e. to move leg 10cm in x plane, 5 in y and 0 in z Thank you! Cheers, j

Re: [osg-users] osgSim problem

2009-12-16 Thread Brendan Ledwich
Hi İsmail, Are you linking against osgSim.lib or osgSimd.lib as well as core osg? In Visual Studio you should be able to find them in you project's properties under Linker-Input-Additional Dependancies. Cheers, Brendan -- Read this topic online here:

Re: [osg-users] dynamic QuadTree on spherical terrain

2009-12-16 Thread Torben Dannhauer
Hi, How is it possible to manage forest in osgEarth, i haven't found any clue at it's project page. Can you give me a hint? Thank you! Cheers, Torben -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=21597#21597