Re: [osg-users] connected shapes demo...

2008-10-01 Thread J.P. Delport
hello, you can connect transforms together in a parent child fashion, this is what a scene graph is for. Try make yourself an example with the following structure: root | transform1 -- shape1 | transform2 -- shape2 | transform3 -- shape3 transform1 is child of root shape1 and transform2 are

Re: [osg-users] [resolved] frame control and callback

2008-10-01 Thread Robert Osfield
Hi Matthieu, SingleThreaded is not necessarily more safe than multi-threaded, both are perfectly safe if you don't abuse the constraints relating to threading model you are using. SingleThreaded has the fewest constraints so you can often get away with usage models that really aren't good

Re: [osg-users] Problems integrating MFC example with existing application

2008-10-01 Thread Robert Osfield
Hi Jesper, I'm not a windows developer so can't help with MFC specific issues, but I'll try to comment on the OSG specific questions: On Tue, Sep 30, 2008 at 3:32 PM, Jesper D. Thomsen [EMAIL PROTECTED] wrote: When debugging the application I noticed that the

Re: [osg-users] useCursor

2008-10-01 Thread Robert Osfield
Hi Paul, It does sound a like race condition. osgViewer::GraphicsWindowX11 does maintain two Display handles to the X server to enable the graphics thread and the main thread to both safely make X11 calls, perhaps this isn't being managed correctly in your case. BTW, you can switch off the

Re: [osg-users] [osg-submissions] View Dependent Shadow maps(LispSM)

2008-10-01 Thread Wojciech Lewandowski
Hi Adrian, I suppose that pluging the LightNode as parent or earlier sibling of ShadowedScene should work. OSG handles LightNodes, ClipNodes and TexGenNodes in such a way that last such node encounterd in traversal will be used for whole render stage during rendering traversal. So there is a

Re: [osg-users] DatabasePager - A little confused

2008-10-01 Thread Robert Osfield
Hi Alan, For the most part you should never need to touch the DatabasePager even when you are using paged database, the osgViewer will create and manage the DatabasePager for you when you have paged databases, all automatically without any need for intervention. There are no OSG examples

Re: [osg-users] vpb: Spherical terrains?

2008-10-01 Thread Robert Osfield
Hi Alejandro, VPB developed focused on earth data, so --geocentric automatically sets up the earth sizes, so I guess this is probably where things go adrift. I haven't personally worked with non earth data yet, but it should be possible to add better accounting of non earth data, although I

Re: [osg-users] DatabasePager - A little confused

2008-10-01 Thread Chris Denham
Hello, I'm not sure I completely understand the question here, so I hope this answer is not too far off the point.. However, while this is fresh in my head, I just spent some time puzzling over PagedLOD and ProxyNode because I couldn't find any good examples. I think my initial confusion

Re: [osg-users] Problems integrating MFC example with existing application

2008-10-01 Thread Simon Hammett
2008/9/30 Simon [EMAIL PROTECTED] Yup, the mfc example is broken. Doh, ignore me. Just problems with loading plugins, it fails silently... Mind you the MFC version keeps flashing the screen black when resizing whilst the one I wrote which uses setUpViewerAsEmbeddedInWindow doesn't. If you

Re: [osg-users] [osg-submissions] View Dependent Shadow maps(LispSM)

2008-10-01 Thread Jean-Sébastien Guay
Hello Wojtek, Adrian, Lets imagine following case: suppose that such the same light will get used by lighting and shadow computation. It may bring some discrepancies if happens to be preceded by some trransformation. When used with lighting it will be premultiplied by inverse model view but

Re: [osg-users] vpb: Spherical terrains?

2008-10-01 Thread Jean-Sébastien Guay
Hi Robert, Alejandro, I haven't personally worked with non earth data yet, but it should be possible to add better accounting of non earth data, although I can't say without reviewing the data more closely how transparently we can archive this. Perhaps a --geoecentric-moon etc could be done

Re: [osg-users] segfault: osgDB::DatabasePager::FindCompileableGLObjectsVisitor::apply

2008-10-01 Thread Melchior FRANZ
* Melchior FRANZ -- Saturday 27 September 2008: yes. Meanwhile I switched back to OSG revision 8779 and the problem is gone. No, just got it again with that revision. So the bug is very likely in FlightGear, as I don't think I had problems with revisions around that time. m.

[osg-users] How to add UserData to .osg and .ive files

2008-10-01 Thread Brian R Hill
I'm trying to add user data (text) to nodes and write them out as .osg/.ive. Any suggestions on how I can do this? Brian ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] How to add UserData to .osg and .ive files

2008-10-01 Thread Serge Lages
Hi, If you only need to set text, use the descriptions fields or the name instead of the UserData, it will be written to the IVE or OSG file without problem. Cheers, On Wed, Oct 1, 2008 at 3:41 PM, Brian R Hill [EMAIL PROTECTED] wrote: I'm trying to add user data (text) to nodes and write

Re: [osg-users] How to add UserData to .osg and .ive files

2008-10-01 Thread Brian R Hill
Serge, Thanks, I was just looking into using the description when I got your message. Brian [EMAIL PROTECTED] wrote: - To: OpenSceneGraph Users osg-users@lists.openscenegraph.org From: Serge Lages [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] Date: 10/01/2008 09:55AM Subject: Re:

Re: [osg-users] connected shapes demo...

2008-10-01 Thread James Moliere
J.P. Thanks for the advice. I believe I see how to connect objects together and will hand over a sample if I can get one going. I'm sorta in disbelief that an example like this doesn't seem to exist. James J.P. Delport wrote: hello, you can connect transforms together in a parent child

Re: [osg-users] segfault: osgDB::DatabasePager::FindCompileableGLObjectsVisitor::apply

2008-10-01 Thread Robert Osfield
On Wed, Oct 1, 2008 at 2:07 PM, Melchior FRANZ [EMAIL PROTECTED] wrote: * Melchior FRANZ -- Saturday 27 September 2008: yes. Meanwhile I switched back to OSG revision 8779 and the problem is gone. No, just got it again with that revision. So the bug is very likely in FlightGear, as I don't

Re: [osg-users] How to add UserData to .osg and .ive files

2008-10-01 Thread Brian R Hill
I'm looking into this. I'm guessing there might be issues with embedded quotes and possibly brackets {} (at least with the .osg files). Brian [EMAIL PROTECTED] wrote: - To: OpenSceneGraph Users osg-users@lists.openscenegraph.org From: Paul Melis [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED]

Re: [osg-users] How to add UserData to .osg and .ive files

2008-10-01 Thread Paul Melis
Just out of curiousity, is arbitrary data handled correctly for these fields? I.e. could you abuse it to store binary data? If not, you can always do something like base64-encoding first, of course ;-) Paul Serge Lages wrote: Hi, If you only need to set text, use the descriptions fields or

Re: [osg-users] Reminder: OSG training in Austin, TX

2008-10-01 Thread Cliff Taylor
Hi Paul, How often do you guys do these training sessions? I doubt my company will want to send me this time, but it might be worth sending a few of us in the future if these sessions will continue to be offered. For that matter, how often do you do the OpenGL training? I have a

Re: [osg-users] How to add UserData to .osg and .ive files

2008-10-01 Thread Robert Osfield
On Wed, Oct 1, 2008 at 3:34 PM, Brian R Hill [EMAIL PROTECTED] wrote: I'm looking into this. I'm guessing there might be issues with embedded quotes and possibly brackets {} (at least with the .osg files). The .osg serialization should handle this without problem, including embedded . Robert.

Re: [osg-users] connected shapes demo...

2008-10-01 Thread Tomlinson, Gordon
Why should there be an example of this ? You're the 1st person to this ask for particular exact usage, that I have seen on this list. As to examples of using just transforms there are many and they are also covered in most of the tutorials online and into the Guide to OSG written by Paul Martz

Re: [osg-users] Reminder: OSG training in Austin, TX

2008-10-01 Thread Paul Martz
Hi Paul, How often do you guys do these training sessions? I doubt my company will want to send me this time, but it might be worth sending a few of us in the future if these sessions will continue to be offered. For that matter, how often do you do the OpenGL training? I have

Re: [osg-users] About the DICOM loader

2008-10-01 Thread Iván Macía
Hi Robert, To update the info on the topic, it seems that ITK is starting to support GDCM 2.x. It is in the ITK CVS at a very preliminary stage yet (they say not to use it yet but for experimentation) but has not been merged yet as it does not compile with VS6. They are even thinking on dropping

[osg-users] How do I Subclass a file loader?

2008-10-01 Thread brettwiesner
Hi, I've got a requirement to ship certain 3rd party model data only in an encrypted format. So I wrote my own loader that does the encryption/ decryption but uses the IVE loader for everything. This works except for files that reference other files. The master file is encrypted, but the

Re: [osg-users] How do I Subclass a file loader?

2008-10-01 Thread Thrall, Bryan
brettwiesner wrote on Wednesday, October 01, 2008 11:02 AM: I've got a requirement to ship certain 3rd party model data only in an encrypted format. So I wrote my own loader that does the encryption/ decryption but uses the IVE loader for everything. This works except for files that reference

Re: [osg-users] connected shapes demo...

2008-10-01 Thread Jean-Sébastien Guay
Hello James, It's such a fundamental aspect of a scenegraph. From all the example's I've seen in osg, everything is put on the root level. There's no concept of a local coordinate system based on some (root) object. Of course there is. MatrixTransform:

Re: [osg-users] How do I Subclass a file loader?

2008-10-01 Thread brettwiesner
Bryan, Thanks for the reply. See inline... You could implement your own loader with a different file extension (say, .enc) that does the en/decryption and then calls the IVE loader to load the resulting data. The curl loader does something like this. This is what I did originally. There

Re: [osg-users] About the DICOM loader

2008-10-01 Thread Robert Osfield
Hi Ivan, Thanks for the update. On the OSG side I've written a DCMTK based OSG dicom loader, it's still not finished as I keep encountering dicom files that break the assumptions made in the plugin about the nature of dicom files - it is a bit of long haul trying to get my head around all the

Re: [osg-users] How do I Subclass a file loader?

2008-10-01 Thread Robert Osfield
Hi Brett, A number of the plugins support reading a writing from istream/ostream which means you can implement your std::streambuffer and attach to the stream and then pass this to the plugin. This technique allows you to do items like compression/decompression/encription/decription. Have a

Re: [osg-users] openGL extensions

2008-10-01 Thread Ben Axelrod
Hi Jean, Thanks for the list of extensions that you test for in the ShadowMap. However, I have a graphics card that meets those requirements yet still does not render ShadowMap shadows. Can you tell me if any of these extensions look like the 'smoking gun' as to why this card does not

Re: [osg-users] openGL extensions

2008-10-01 Thread Jean-Sébastien Guay
Hi Ben, GL_ARB_fragment_shader In order to use the shadow fragment shader, you need this one too. If it's not supported by your card, osgShadow::ShadowMap (and most shadow techniques) can do a fixed function fallback. To see if this works for you, you can call shadowMap-clearShaderList()

Re: [osg-users] connected shapes demo...

2008-10-01 Thread Tomlinson, Gordon
It's such a fundamental aspect of a Scenegraph. From all the example's I've seen in osg, everything is put on the root level. There's no concept of a local coordinate system based on some (root) object. That's an incorrect assumption, just because a couple of samples just put the data at the

[osg-users] Geometry merging problem

2008-10-01 Thread Bilal Zeidan
Hi all, I am trying to merge two geometry objects that have two different textures by using the merging function: bool Optimizer::MergeGeometryVisitor::mergeGeometry(osg::Geometry lhs,osg::Geometry rhs) After calling this function, one of these objects looses its own texture. In fact it

Re: [osg-users] How do I Subclass a file loader?

2008-10-01 Thread brettwiesner
Hey Robert, I'm confused about what you mean here. Many plugins have read/ write methods that take istreams/ ostreams (ReaderWriterIVE being one of them). However, since I can't subclass them I can't attach to the stream. For example, in ReaderWriterIVE::writeNode() a std::ofstream is

Re: [osg-users] How do I Subclass a file loader?

2008-10-01 Thread Thrall, Bryan
brettwiesner wrote on Wednesday, October 01, 2008 3:27 PM: Hey Robert, I'm confused about what you mean here. Many plugins have read/ write methods that take istreams/ ostreams (ReaderWriterIVE being one of them). However, since I can't subclass them I can't attach to the stream. For

Re: [osg-users] Geometry merging problem

2008-10-01 Thread Paul Martz
A single Geometry can only have one StateSet and can't change OpenGL state within a Geometry, so I'm not sure how you expected this to work. Other than building a texture atlas, your best bet would be to leave them as two separate Geometries. -Paul Hi all, I am trying to merge two

[osg-users] very simple ortho problem

2008-10-01 Thread thomas weidner
Hi, i'm quite new to OSG and try to write some simple tasks. In the code below i tried ortho projection, but not matter if I put the triangle in the XY or XZ plane,if i attach the_geode or trans as scene data,nothing gets displayed. the corresponding code in pure GL works without any problem.

[osg-users] osgPPU osgShadow

2008-10-01 Thread Michael Guerrero
Hi guys, I've recently delved into osgPPU and am loving it. I have a scene beautifully rendering with HDR. However, when I tried adding osgShadow ShadowMap to the scene I had conflicts. I don't yet know exactly what is going just yet but I was wondering if anyone has had success combining these

Re: [osg-users] very simple ortho problem

2008-10-01 Thread Paul Martz
Have you looked at the examples? I'm sure there's an ortho example somewhere. Try searching the code. It _does_ work (I used it in an RTT example recently), so this is almost certainly a bug in your code. Viewer::run() adds a camera manipulator under the hood, which is changing your view matrix,

Re: [osg-users] very simple ortho problem

2008-10-01 Thread thomas weidner
On Wed, 1 Oct 2008 18:21:29 -0600 Paul Martz [EMAIL PROTECTED] wrote: Thanks for the quick answer. :-) Have you looked at the examples? I'm sure there's an ortho example somewhere. Try searching the code. It _does_ work (I used it in an RTT example recently), so this is almost certainly a bug