Re: [osg-users] PSSM OpenGL Extensions

2008-06-04 Thread Adrian Egli OpenSceneGraph (3D)
Hi Alejandro, the PSSM is based on GLSL shaders and no other specials. how did you fixed it on the NVidia GeForce 7300LE card? it would be important to get more detail in the problem you got. regards 2008/6/4 Alejandro Segovia <[EMAIL PROTECTED]>: > Hello list. > > I wanted to ask if anyone kno

Re: [osg-users] kdtree example

2008-06-04 Thread Adrian Egli OpenSceneGraph (3D)
Hi all, It's really good news this morning in this mailing list / forum. The kdTree implementation would help us to speed up any intersection tests against line, spheres and or geometries. So may we should only thing streight forward for line intersection tests and it's speed up for intersection

Re: [osg-users] Writing to Collada files

2008-06-04 Thread Forum Dude
Hi again! It's a versioning problem. I upgraded to OSG 2.5.1 (I used 2.5.0 before) and it works now! Thanks for your help, though! Rick ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users

Re: [osg-users] Writing to Collada files

2008-06-04 Thread Forum Dude
Hi Paul, thanks for your replies. I tried "osgconf teapot.dae out.dae" and it simply says: Warning: Could not find plugin to write nodes to file "out.dae". I also tried to load another file format "osgconf teapot.obj out.dae" and then it says: Warning: Error in writing to "out.dae". Nothing more s

Re: [osg-users] 3Dconnexion manipulator

2008-06-04 Thread Mike Weiblen
osgVRPN provides camera manipulator and transform node, which can be controlled by 3Dx devices or other 6DOF controllers. You could easily lift the essential code directly if you dont want to use VRPN; see TrackerTransform and TrackerManipulator at http://osgtoy.svn.sourceforge.net/viewvc/osgtoy/o

Re: [osg-users] Plugins dae Not Compiling

2008-06-04 Thread Steven Thomas
You're using the OSG 2.4 release then with DOM 2.1? Due to some breaking changes in the DOM, OSG didn't work with the latest version of the DOM (2.0 and up) until sometime in early May. Seems like we just missed the OSG 2.4 release. You have a few options. Checkout the latest OSG from svn, which u

[osg-users] Plugins dae Not Compiling

2008-06-04 Thread Fred Zyda
Hello Everyone, I'm trying to get OSG to compile with Collada on a Windows box under Visual Studio 2005 and I can't get Plugins dae to compile. I keep getting the following errors: Error1error C2512: 'daeURI' : no appropriate default constructor available c:\OpenSceneGraph-2.4.0\

Re: [osg-users] Writing to Collada files

2008-06-04 Thread Paul Martz
Another thought: What happens if you simply do this? osgconv teapot.dae out.dae If this works and your app fails on the equivalent operation, then it is some kind of bug in your app. I know this works with cessna.osg as input... -Paul > -Original Message- > From: [EMAIL PROTECTED]

Re: [osg-users] OpenGL commands

2008-06-04 Thread Paul Martz
This _might_ be covered in the FAQ on the wiki, not sure... Did you check there? Regardless, certainly one way to do this is to attach a DrawCallback to a Drawable in your scene, then execute your OpenGL commands from the callback. See the osgcallback example for how to create and attach your own

Re: [osg-users] Community Documentation Initiative [Was: Too much support!!!!!]

2008-06-04 Thread Paul Melis
Smeenk, R.J.M. (Roland) wrote: Note that there already exist an example page with screenshots and some descriptions here http://www.openscenegraph.org/projects/osg/wiki/Support/UserGuides/Examples Hmm, so there now are two pages. One at Support/UserGuides/Examples that has screenshots for

[osg-users] OpenGL commands

2008-06-04 Thread Hugo Juarez Corrá
Hi All, Can I use OpenGL commands directly on osgViewer (without a wrapper)?? I don't want create an object that inherits osg::Drawable to render my OpenGL commands. I would like use osgViewer just to render my OpenGL commands, is it possible? Thanks in advance, Hugo.

Re: [osg-users] Writing to Collada files

2008-06-04 Thread Paul Martz
I can write to DAE just fine using current svn head. The fact that your messages are coming out in the wrong order is very strange. I suggest you use a debugger. Set breakpoints at the DAE readNode and writeNode entry points and examine stack traces, etc.. -Paul > > Hi, > > I'm having probl

[osg-users] Build from svn in Cygwin still tries to build osgviewerWX but no WX

2008-06-04 Thread Brian Keener
Updated from svn and did a build in Cygwin and if I select to build Examples it tries to build osgviewerWX even though Wx is not installed and the path it shows in ccmake is D:WxWidgets... I tried changing the setting in ccmake to whatever-NOTFOUND but it still insisted so I built without exam

[osg-users] Writing to Collada files

2008-06-04 Thread Forum Dude
Hi, I'm having problems writing Collada files. This is what I'm doing (I'm reading a Collada file and then try to save it again): - source code // Attempt to load file into scene. string fileName(arguments[1]); notify(INFO) << "Loading " << fileName << "...\n"; ref_ptr scene = readNodeFil

Re: [osg-users] finding normal of models

2008-06-04 Thread Gordon Tomlinson
HI A loaded model/node really does not in itself have a normal, its surfaces/tris etc that make up a model will have (or should have ) normal's. So sorry its not possible to retrieve a nodes normal's. In all my years of being involved with vis-sim, you really have to know before hand how your

Re: [osg-users] kdtree example

2008-06-04 Thread Robert Osfield
Hi Stephan, On Wed, Jun 4, 2008 at 5:15 PM, Stephan Maximilian Huber <[EMAIL PROTECTED]> wrote: > perhaps can help as a reference. I > used it for my own work, and it worked as advertised. As a header-only lib > it was easy to integrate. Thanks the link. Jus

[osg-users] finding normal of models

2008-06-04 Thread CG
Hi, Is it possible to retrieve the Normal of a loaded node (i.e. an aircraft in openflt format)? I need to find out the normal to compute the forward and right axis to construct my rotation matrix to rotate the aircraft correctly in every tick. Right now, when I roll my aircraft to 90 degrees

Re: [osg-users] kdtree example

2008-06-04 Thread Jean-Sébastien Guay
Hi Robert, My plan is to have a kdtree pointer on osg::Drawable. My initial though would be to have users manually assign created kdtree's to osg::Drawable, and update these when geometry is updated. One could possible do this within a dirty mechanism in Drawable a bit like bounding boxes are

Re: [osg-users] kdtree example

2008-06-04 Thread Stephan Maximilian Huber
Hi Robert, perhaps can help as a reference. I used it for my own work, and it worked as advertised. As a header-only lib it was easy to integrate. cheers, Stephan ___ osg-users mailing list osg-users@lists.opens

Re: [osg-users] kdtree example

2008-06-04 Thread Robert Osfield
Hi J-S, My plan is to have a kdtree pointer on osg::Drawable. My initial though would be to have users manually assign created kdtree's to osg::Drawable, and update these when geometry is updated. One could possible do this within a dirty mechanism in Drawable a bit like bounding boxes are curr

Re: [osg-users] kdtree example

2008-06-04 Thread Jean-Sébastien Guay
Hi Robert, Is it not possible to do anything under the cover of darkness :-) Well, not when it's in a public SVN server anyways... :-) I requested the code from Adrian and he's kindly provided it this morning so I've begun review of it. The code itself will serve as a useful reference, but

[osg-users] Fluid Friction

2008-06-04 Thread Max Bandazian
I've been attempting to use osg particle systems, and I believe I've encountered either a bug or some undocumented behavior with fluid friction. Using, for instance, a particle system configured to look smoke-plume-like, and using a ModularProgram with a FluidFrictionOperator, I am finding that so

Re: [osg-users] osgscreencapture example

2008-06-04 Thread Robert Osfield
Hi J-S, On Wed, Jun 4, 2008 at 4:10 PM, Jean-Sébastien Guay <[EMAIL PROTECTED]> wrote: > Again about new examples. :-) I saw the osgscreencapture example that was > recently added. Observant once more :-) osgscreencapture example was written to test out use of double buffer PBO's for readback of

Re: [osg-users] kdtree example

2008-06-04 Thread Robert Osfield
Hi J-S, On Wed, Jun 4, 2008 at 3:56 PM, Jean-Sébastien Guay <[EMAIL PROTECTED]> wrote: > I saw you started work on an osgkdtree example. Are you planning on doing > that from scratch? Is it not possible to do anything under the cover of darkness :-) I have indeed begun work towards adding kd-tre

Re: [osg-users] Node traversal order -or- how to handle multipleprojective textures?

2008-06-04 Thread Jason Ziglar
You figured out what I meant well enough. :) Setting the renderbin order appears to be a valid solution to my problem. Thanks! Jason Paul Martz wrote: It's not clear to me what you are trying to do, what is already working, and what you need help with, BUT... It sounds like you've got some g

[osg-users] PSSM OpenGL Extensions

2008-06-04 Thread Alejandro Segovia
Hello list. I wanted to ask if anyone knows what OpenGL extensions are used by the PSSM shadow technique shipped with OSG 2.4. I'm having a hard time using PSSM shadows on low end video cards such as the NVIDIA GeForce 7300LE, while the same code runs great on a GeForce 8600GT. On the low end vid

[osg-users] osgscreencapture example

2008-06-04 Thread Jean-Sébastien Guay
Hello Robert, Again about new examples. :-) I saw the osgscreencapture example that was recently added. Would you like me to use the WindowCaptureCallback from that example as a starting point for the screenshot handler I was planning to write for integration into the stock osgViewer event h

[osg-users] kdtree example

2008-06-04 Thread Jean-Sébastien Guay
Hello Robert, I saw you started work on an osgkdtree example. Are you planning on doing that from scratch? A while ago, Adrian Egli made a kd-tree implementation for OSG, which is very fast. He kindly agreed that I use it in my Masters project, and I thought I would be able to get it integra

Re: [osg-users] Node traversal order -or- how to handle multipleprojective textures?

2008-06-04 Thread Paul Martz
It's not clear to me what you are trying to do, what is already working, and what you need help with, BUT... It sounds like you've got some geometry that you're rendering possibly multiple times (because it has multiple parents), and you want to enforce a render order on the parents of that node. I

Re: [osg-users] Node traversal order -or- how to handle multiple projective textures?

2008-06-04 Thread Jason Ziglar
And the actual image would be useful, I'd imagine. Jason Ziglar wrote: I'm trying to have multiple projective texture shaders running within a scene graph. The projective texturing is projecting images captured from a set of cameras onto a single world model, with some overlap between camera

[osg-users] Node traversal order -or- how to handle multiple projective textures?

2008-06-04 Thread Jason Ziglar
I'm trying to have multiple projective texture shaders running within a scene graph. The projective texturing is projecting images captured from a set of cameras onto a single world model, with some overlap between cameras. The current configuration is shown in the attached image. Each project

Re: [osg-users] Unable to find plugin

2008-06-04 Thread Vincent Bourdier
Thanks Jean-Sébatien, I'm currently downloading the good 3dParties from SVN... it looks better :) I'll try to compile just after. Thanks for theses good indications Vincent. 2008/6/4 Paul Melis <[EMAIL PROTECTED]>: > Jean-Sébastien Guay wrote: > > Hello Vincent, >> >> I didn't found some osg

Re: [osg-users] Unable to find plugin

2008-06-04 Thread Paul Melis
Jean-Sébastien Guay wrote: Hello Vincent, I didn't found some osgbd_ttf.dll in the plugins... in 2.2, 2.4, 2.5.1 What is the plugin which define it ? I think Paul made a small mistake, it's not osgdb_ttf.dll, it's osgdb_freetype.dll that you're looking for. This should exist to be able to

Re: [osg-users] Unable to find plugin

2008-06-04 Thread Jean-Sébastien Guay
Hello Vincent, Ok, right it is not in the .dll list... But how to compile it ? I have tried to add freetype in the Cmake2.6 configuration, but when I compile OSG 2.5.1 freetype is not int the list... ? I can get if from 2.2 but I don't think it is the best way... As has been discussed a lo

Re: [osg-users] [VPB] vpbmaster doesn't exit on Win32

2008-06-04 Thread Glenn Waldron
fwiw, this problem seems to have mostly evaporated on my end. I'm sorry that I cannot be more specific as to when -- at one point I did an SVN update and it started working. I say "mostly" only b/c there are still issues shutting down after a CTRL-C sometimes ... but that's not quite as much of a c

Re: [osg-users] Unable to find plugin

2008-06-04 Thread Paul Martz
In cmake, supply correct values for all the "FREETYPE_" variables. Then regenerate your project files. When you reload the project in Visual Studio (I'm assuming you're using Visual Studio), the freetype plugin will be one of the projects in the list. If this isn't working, go back and make sure

Re: [osg-users] Unable to find plugin

2008-06-04 Thread Vincent Bourdier
Ok, right it is not in the .dll list... But how to compile it ? I have tried to add freetype in the Cmake2.6 configuration, but when I compile OSG 2.5.1 freetype is not int the list... ? I can get if from 2.2 but I don't think it is the best way... Thanks, Regards, Vincent. 2008/6/4 Jean-Séba

Re: [osg-users] Random crash running with osg

2008-06-04 Thread Vincent Bourdier
Hi thanks, It just test it and it works well... So i'll try to find the bug, using other ways. Regards, Vincent 2008/6/4 J.P. Delport <[EMAIL PROTECTED]>: > Hi, > > just guessing, but maybe see this: > > > http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=319

Re: [osg-users] Multiple Viewers, Multiple Scenes, Texture::setUnRefImageDataAfterApply()

2008-06-04 Thread Robert Osfield
Hi Alan, You can still use osgUtil::SceneView if you wish, it's kept around for backwards compatibility. However, you should be able to get things working with osgViewer by using a shared GraphicsWindowEmbedded. As for gluSaleImage taking time - basically the OSG hasn't change in this respect si

Re: [osg-users] Unable to find plugin

2008-06-04 Thread Jean-Sébastien Guay
Hello Vincent, I didn't found some osgbd_ttf.dll in the plugins... in 2.2, 2.4, 2.5.1 What is the plugin which define it ? I think Paul made a small mistake, it's not osgdb_ttf.dll, it's osgdb_freetype.dll that you're looking for. This should exist to be able to load ttf fonts. I juste ha

Re: [osg-users] Unable to find plugin

2008-06-04 Thread Vincent Bourdier
I didn't found some osgbd_ttf.dll in the plugins... in 2.2, 2.4, 2.5.1 What is the plugin which define it ? I juste have an error on compilation of osgwrapper_osgDB.dll. Any idea ? Thanks, Vincent 2008/6/4 Paul Melis <[EMAIL PROTECTED]>: > Vincent Bourdier wrote: > > (Re) Hi, >> >> From os

Re: [osg-users] problem with osg 2.4 stable release

2008-06-04 Thread Jean-Sébastien Guay
Hello David, i have a osgdb_png.dll file which is the result of the compilation and i can see in the visual studio ouput window that the dll is called anytime i try to read a png and then unloaded after the operation The PNG plugin, like some others, has a dependency on an external DLL, name

Re: [osg-users] Multiple Viewers, Multiple Scenes, Texture::setUnRefImageDataAfterApply()

2008-06-04 Thread Alan Ott
I actually did try this last night, after I sent the email. I subclassed Texture2D and overrode apply() to call the base apply(), then unref the image. This makes the image unref work, but I'm still seeing some anomalies (unrelated, I'm assuming now, but before, I blemed them on running out of

Re: [osg-users] Multiple Viewers, Multiple Scenes, Texture::setUnRefImageDataAfterApply()

2008-06-04 Thread Alan Ott
Robert Osfield wrote: Hi Alan, The memory difference is almost certainly down to the different in Texture unref after apply which is probably not working because of your viewer setup. Robert, While the unref of course makes me able to use less memory, _not_ using the unref is where I obse

Re: [osg-users] Unable to find plugin

2008-06-04 Thread Paul Melis
Vincent Bourdier wrote: (Re) Hi, From osg 2.2 to 2.4 and 2.5.1, I've a warning on loading data : "Could not find plugin to read object from file [...]\arial.ttf " How can I solve it ? It depends on what is the problem. Things to check: - Did the ttf plugin compile successfully? If not, check

Re: [osg-users] Random crash running with osg

2008-06-04 Thread J.P. Delport
Hi, just guessing, but maybe see this: http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=319895 and also search the list for this link, there was some discussion on this. jp Vincent Bourdier wrote: Hi With osg 2.5.1 I've aldready the same crash "vector iterator

[osg-users] Unable to find plugin

2008-06-04 Thread Vincent Bourdier
(Re) Hi, >From osg 2.2 to 2.4 and 2.5.1, I've a warning on loading data : "Could not find plugin to read object from file [...]\arial.ttf " How can I solve it ? thanks. Regards, Vincent ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Random crash running with osg

2008-06-04 Thread Vincent Bourdier
Yes, in release it crashes too... Thanks for tour help, I'll investigate this problem. Regards, Vincent. 2008/6/4 Robert Osfield <[EMAIL PROTECTED]>: > Hi Vincent, > > I think you'll need to investigate this further yourself as you have > the source code and all the data that reproduces the

Re: [osg-users] Random crash running with osg

2008-06-04 Thread Robert Osfield
Hi Vincent, I think you'll need to investigate this further yourself as you have the source code and all the data that reproduces the crash. Start by printing out the contents of the Switch node that is where the crash is occurring. Also try out a release build, does this crash? Is there a chan

Re: [osg-users] Random crash running with osg

2008-06-04 Thread Vincent Bourdier
Hi With osg 2.5.1 I've aldready the same crash "vector iterator not dereferencable" stack : >msvcp80d.dll!std::_Debug_message(const wchar_t * message=0x103f3d50, const wchar_t * file=0x103a0478, unsigned int line=1463) Ligne 23C++ osg37-osgd.dll!std::_Vb_reference > >::_Getptr() L

Re: [osg-users] problem with osg 2.4 stable release

2008-06-04 Thread Robert Osfield
Hi David, Have a search through the recent achives w.r.t png plugin. The png plugin doesn't have any code changes to between 2.2 and 2.4 so it must be just a build issue/dependency isse. W.r.t getImage, my guess is that your paged database has unref on apply enabled, and a bug fix since 2.2 has

Re: [osg-users] problem with osg 2.4 stable release

2008-06-04 Thread David _
Hi Robert sorry for not being more clear i´m using vista 32bits, visual studio 8.0 sp1 i compile the 3rd parties dependencies with the package in the svn, and the gdal lib is from fwtools 2.1 package i have a osgdb_png.dll file which is the result of the compilation and i can see in the visu

Re: [osg-users] problem with osg 2.4 stable release

2008-06-04 Thread Robert Osfield
Hi David, It'd be useful if you to say what platform you are using/how you built the OSG + dependencies, and clarify the problem with loading files. As the texture no longer having the image, is this after loading? After rendering? Do you have Texture::setUnrefImageAfterApply(bool) enabled? Rob

[osg-users] problem with osg 2.4 stable release

2008-06-04 Thread David _
Hi i´m trying to pass our project to the new 2.4 from the 2.2 version. Right now i´ve found 2 problems 1) With osg 2.2 and pageLOD objets, we were getting the images out from the textures with something like this osg::StateSet *ss = data->GetStateSet(); osg::Texture2D *texture = (osg:

Re: [osg-users] Random crash running with osg

2008-06-04 Thread Robert Osfield
On Wed, Jun 4, 2008 at 10:40 AM, Mathias Fröhlich <[EMAIL PROTECTED]> wrote: > Did you ever try compiling under linux using the _GLIBCXX_DEBUG define? No I have never tried this, yet... thanks for the pointer. ___ osg-users mailing list osg-users@lists.o

[osg-users] OpenSceneGraph social gathering in Oxford, 9th-13th June?

2008-06-04 Thread Robert Osfield
Hi All, Next week I'm doing training at a company in Oxford, from Monday 9th through to Friday 13th...of June. The company have suggested a social evening and they are up for the idea of opening it out to others who use the OpenSceneGraph in the local area. I aware of couple of different groups

Re: [osg-users] Random crash running with osg

2008-06-04 Thread Mathias Fröhlich
Robert, On Wednesday 04 June 2008 11:35, Robert Osfield wrote: > I really can't help much with your invalid iterator. It could be > unrelated to the bug fix already checked in w.r.t bounding volume > update, or it could be already fixed. > > The SVN and 2.5.1 contain a number of fixes so I'd rec

Re: [osg-users] Random crash running with osg

2008-06-04 Thread Vincent Bourdier
Right, Thanks a lot. I'm downloading 2.5.1 release. Regards, Vincent 2008/6/4 Robert Osfield <[EMAIL PROTECTED]>: > Hi Vincent, > > I really can't help much with your invalid iterator. It could be > unrelated to the bug fix already checked in w.r.t bounding volume > update, or it could be

Re: [osg-users] Random crash running with osg

2008-06-04 Thread Robert Osfield
Hi Vincent, I really can't help much with your invalid iterator. It could be unrelated to the bug fix already checked in w.r.t bounding volume update, or it could be already fixed. The SVN and 2.5.1 contain a number of fixes so I'd recommend try updating the OSG before you do anything else as ch

Re: [osg-users] Random crash running with osg

2008-06-04 Thread Vincent Bourdier
Hi robert, Thanks, I'll try this I get a new error, without any modification in the code : "invalid iterator range" and the stack trace : >msvcp80d.dll!std::_Debug_message(const wchar_t * message=0x00f557d8, > const wchar_t * file=0x00f5464c, unsigned int line=1029) Ligne 23C++ >

Re: [osg-users] Random crash running with osg

2008-06-04 Thread Robert Osfield
Hi Vincent, This may be an issue with multiple computeBounds() running in a parallel. In the SVN version and 2.5.0/2.5.1 there is an call to sceneData->getBound() that does the initialization of the bounding volume while the code is still single threaded - something that should have been done for

Re: [osg-users] 3Dconnexion manipulator

2008-06-04 Thread Robert Osfield
Hi Monia, You have several options open to you: 1) Write a custom CameraManipulator along the lines of one of the existing ones in src/osgGA 2) Not use a CameraManipulator on the view and use a Camera update callback to set the ViewMatrix once per frame 3) Set the Camera's ViewMatrix dir

[osg-users] Random crash running with osg

2008-06-04 Thread Vincent Bourdier
Hi All, Running my application, I get a random crash I cannot identify. The error is : "vector iterator not dereferencable" Bu I've no vector in my code, So I gess it is in osg where the crash append. Maybe I make something wrong in my code, but I've no idea where or what the bug can be... The a

Re: [osg-users] 3Dconnexion manipulator

2008-06-04 Thread monia hamdi
Hi, I want to set the Camera's ViewMatrix manually myself given the SpaceNavigator data. Thanks --- En date de : Mer 4.6.08, Robert Osfield <[EMAIL PROTECTED]> a écrit : De: Robert Osfield <[EMAIL PROTECTED]> Objet: Re: [osg-users] 3Dconnexion manipulator À: [EMAIL PROTECTED], "OpenSceneGraph U

Re: [osg-users] 3Dconnexion manipulator

2008-06-04 Thread Robert Osfield
Hi Monia, It's not clear what you actually want to do with your system - is it that you want objects in the scene controlled by the SpaceNavigator or is that you don't want the usual CameraManipulator but set the Camera's ViewMatrix manually yourself given the SpaceNavigator data? Robert. On Wed

Re: [osg-users] Multiple Viewers, Multiple Scenes, Texture::setUnRefImageDataAfterApply()

2008-06-04 Thread Robert Osfield
Hi Alan, The memory difference is almost certainly down to the different in Texture unref after apply which is probably not working because of your viewer setup. Are you using the GraphicsWindowEmbedded feature? Is each of the viewers using its own GraphicsWindowEmbedded? If so make sure they s

[osg-users] 3Dconnexion manipulator

2008-06-04 Thread monia hamdi
Hi , I have a SpaceNavigator device and I succeeded to get the translation and the quaternion matrix. In my application, I have a camera manipulator (using mouse and keyboard) and I want to add the spaceNavigator. in each frame, the quat  matrix and the translation vector are updated. Would you