Re: [osg-users] [osgPPU] Running the processor between pre-render and main render

2009-08-11 Thread Miika Aittala
Alright, thanks. At least I know what it's about now, it was driving me crazy because I had no idea whether it was because of me or osgPPU or OSG itself. I guess I'll have to try and hack together something that sort of circumvents the more elegant structures of OSG to handle this for the time

Re: [osg-users] PolytopeIntersector distance and Transform

2009-08-11 Thread Peter Hrenka
Hi Andrew, Andrew Cunningham schrieb: Hi Peter, Did you ever work up a fix for this? ... I had a partial fix which helped as long as there is no projection involved. Unfortunately that is probably the main use-case... I think the proper way to do this involves storing the inverse matrices

Re: [osg-users] [osgPPU] Running the processor between pre-render and main render

2009-08-11 Thread J.P. Delport
Hi, Miika Aittala wrote: Ok, here's a little example (code is attached). Sorry if it's a bit contrived, I couldn't think of anything simple but illustrative. Basically it renders a cylinder with the following stages: 1) Render the cylinder to a texture from slaveCamera 2) Process the texture

[osg-users] about the bounding sphere of a geode computed by OSG

2009-08-11 Thread Gianluca Natale
Hi All, I'm having problem computing the global bounding sphere of my model. I debugged OSG (2.8.0) and discovered that the bounding sphere of a geode (BoundingSphere Geode::computeBound()) is computed as the bounding sphere of the bounding box that includes all its drawables !?! Why that?

Re: [osg-users] [osgPPU] Running the processor between pre-render and main render

2009-08-11 Thread Art Tevs
Hi Miika, miika wrote: Alright, thanks. At least I know what it's about now, it was driving me crazy because I had no idea whether it was because of me or osgPPU or OSG itself. I guess I'll have to try and hack together something that sort of circumvents the more elegant structures of OSG

Re: [osg-users] [HELP] Cull time in stats?

2009-08-11 Thread Andrew Burnett-Thompson
Hi there, Sorry to interrupt, I have a similar issue with a flat scene graph and it's on my Todo list to remove position attitude transforms and flatten them onto the Geodes. My application is a CAD style application, with a scene graph that consists of 300,000 objects, each object is 1x PAT, 1x

Re: [osg-users] [osgPPU] Running the processor between pre-render and main render

2009-08-11 Thread J.P. Delport
Hi Art, Art Tevs wrote: I am decided to work out some patch for osg to support this. OSG is capable of pushing and popping of texture attributes while traversing the graph. The same thing must also happen for the FBOs. Of course, some elegant solution which covers almost anything is better,

Re: [osg-users] about the bounding sphere of a geode computed by OSG

2009-08-11 Thread Simon Hammett
Calculating the perfect bounding sphere is an expensive operation. You need to calc the convex hull which is O(n log n). osg uses a fast approximation which is generally good enough. 2009/8/11 Gianluca Natale gianluca.nat...@adstorino.it: Hi All, I’m having problem computing the global bounding

Re: [osg-users] [osgPPU] Running the processor between pre-render and main render

2009-08-11 Thread Miika Aittala
J.P. Delport wrote: sorry, I have not had time to run your test app, just thinking out loud... what happens if stage 3 is again a pre-render RTT camera with the processor as a child and you then use the viewer camera only to display the final output quad? Have you tried commenting out

Re: [osg-users] about the bounding sphere of a geode computed by OSG

2009-08-11 Thread Gianluca Natale
I cannot completely agree. I mean that I know that the real perfect bounding sphere is computationally expensive, but in many cases (solid objects) it should be computed just once (since BoundingSphere node::getBound() checks if the bounding sphere has been already computed), when the object is

Re: [osg-users] about the bounding sphere of a geode computed by OSG

2009-08-11 Thread Tomlinson, Gordon
Like ALL scene graphs out there the OSG uses an approximation ( for Scenegraph performance reasons) to produce a bounding sphere that is ensured to encompass all its children but not necessarily tightly, and this is fine for 99% of bounding sphere usage in a scene graph If you want a tight and

Re: [osg-users] about the bounding sphere of a geode computed by OSG

2009-08-11 Thread Tomlinson, Gordon
This is how it is in OSG and all other Scene graphs I have ever worked with and I have work with most Without meaning to sound rude, I would say Get used to it in OSG as it not likely to change in how's its done Gordon Product Manager 3d

[osg-users] Get the top coordonates from screen of an object

2009-08-11 Thread Adrien Joly
Hi, I'm trying to put a text on the top of a node, a sort of caption. This caption can be added for mutliple objects without being stacked with other captions. My idea is to add those caption to the global scene by getting the coordinates of the top of the followed node and project the text on

[osg-users] [build] Need help including COLLADA support

2009-08-11 Thread Wally Atkins
Hi, I am having issues with adding the DAE (Collada) plugin to my project. I have been following the step-by-step instructions located here: http://www.openscenegraph.org/projects/osg/wiki/Support/KnowledgeBase/Collada I'm using VC++ 2008 Express Edition I have downloaded and built the Collada

Re: [osg-users] [build] Need help including COLLADA support

2009-08-11 Thread Roland Smeenk
dfu23 wrote: http://www.openscenegraph.org/projects/osg/wiki/Support/KnowledgeBase/Collada Maybe there's fault in that documentation or the way the CMake file configuration works. There have been some changes to the CMake files after this wiki page was written. dfu23 wrote: I'm

[osg-users] Turning off main osgViewer camera

2009-08-11 Thread jake chambers
Hi, I have an application where I setup a normal osgViewer view with setUpViewOnSingleScreen(). This works fine. I also create an FBO camera to which I add my scene. When I want to take a screenshot of the application I call osgviewer-setSceneData(myFBOCamera) and render via

Re: [osg-users] Turning off main osgViewer camera

2009-08-11 Thread J.P. Delport
Hi, have a look at the osgautocapture example. Set the main camera to render offscreen, pbuffer. jp jake chambers wrote: Hi, I have an application where I setup a normal osgViewer view with setUpViewOnSingleScreen(). This works fine. I also create an FBO camera to which I add my scene.

Re: [osg-users] Turning off main osgViewer camera

2009-08-11 Thread J.P. Delport
Hi, sorry I might have answered too fast. What do you want the main camera to render when you are taking screenshots? What is it rendering when when you only attach the FBO camera? AFAIK you still need to call viewer frame() to trigger the FBO, but you can make the main camera just render

Re: [osg-users] Turning off main osgViewer camera

2009-08-11 Thread Brian R Hill
Try setting the main camera node mask to 0 when you don't want it to render and 0x when you do. Brian This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content,

[osg-users] viewer.frame() rendering not complete

2009-08-11 Thread Rabbi Robinson
Hi, I have a code that creates a temporary viewer and uses it to render one frame and copy from the color buffer to an image. When I call viewer.frame() the rendered image is only half done. Is there anyone to tell the viewer to complete a frame, save it and close itself? Thank you! Cheers,

[osg-users] viewer invisible?

2009-08-11 Thread Rabbi Robinson
Hi, How can I set a viewer invisible for RTT? Thank you! Cheers, Rabbi -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16084#16084 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] [build] Need help including COLLADA support

2009-08-11 Thread Wally Atkins
Currently I have this structure: Code: Z:\OpenSceneGraph-2.8.1\ - 3rdParty\ - applications\ - bin\ - CMakeFiles\ - CMakeModules\ - collada-dom-2.2\ - collada-dom\ - dom\ - fx\ - ... - doc\ - examples\ - include\ - lib\ - OpenScenGraph\ - packaging\

Re: [osg-users] viewer invisible?

2009-08-11 Thread Jean-Sébastien Guay
Hi Rabbi, How can I set a viewer invisible for RTT? This is an FAQ. Create a pbuffer graphics context. Please search the archives for more details. J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com

Re: [osg-users] [build] Need help including COLLADA support

2009-08-11 Thread Wally Atkins
I have tinkered a little bit further and set a bunch of the COLLADA_*_LIBRARY values manually and appear to have gotten further. The only thing that it is saying now is: Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR) Should I add these entries? -- Read

Re: [osg-users] [build] Need help including COLLADA support

2009-08-11 Thread Roland Smeenk
Hi wally, Which of the COLLADA_* values are filled in by CMake initially? And after you specify the proper COLLADA_DOM_ROOT manually? In your case COLLADA_DOM_ROOT should point to Z:/OpenSceneGraph-2.8.1/ collada-dom-2.2/dom -- Roland -- Read this topic online here:

[osg-users] [osgPPU] X-ray Design use of OsgPPU

2009-08-11 Thread Bob Youmans
Hi, I'm trying to come up with a design using OSG to build what i'm calling an X-ray viewer. Basically i have relatively simple geometry, a shell or skin of a vehicle and then the interior. I want to view the interior as penetrated by the X-rays, which is based on a thickness calculation and

Re: [osg-users] viewer.frame() rendering not complete

2009-08-11 Thread Maxime BOUCHER
wrote: Hi, I have a code that creates a temporary viewer and uses it to render one frame and copy from the color buffer to an image. When I call viewer.frame() the rendered image is only half done. Is there anyone to tell the viewer to complete a frame, save it and close itself?

Re: [osg-users] viewer.frame() rendering not complete

2009-08-11 Thread Rabbi Robinson
Hi, I save it in a file. The problem is with frame(). If I call viewer.run() and hit Esc to quit the viewer the image is complete. Thank you! Cheers, Rabbi -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16092#16092

[osg-users] Material editor/designer?

2009-08-11 Thread Simon Hammett
Anybody know of a osg compatible material editor/designer? Repeating the edit/compile/link/curse cycle is starting to get a little tedious. I'm sure I saw a post about one not so long ago, but I'm damned if I can find it now. tia. -- http://www.ssTk.co.uk

Re: [osg-users] FBOs without color or depth attachments /DrawBuffer/ ReadBuffer

2009-08-11 Thread Mathias Buhr
Hi Wojciech, I was browsing/searching the mailing list and found this topic. A question is interspersed below. Am 07.08.09 18:52, schrieb Wojciech Lewandowski: Hi Robert and J-S and all interested, I have prepared the code for the proposal. There was a bunch of changes to

Re: [osg-users] [osgPPU] Running the processor between pre-render and main render

2009-08-11 Thread Art Tevs
Hi Miika, J.P., ok, after hours of thinking and studying of OSG's source code, I have to admit, that this would not be an easy task to solve that issue. The problem is that, even if I am able to restore any FBO attribute, FBOs used by cameras will break the whole thing down :( Imagine this

Re: [osg-users] Get the top coordonates from screen of an object

2009-08-11 Thread Andrew Thompson
Hi Adrien, I'm afraid I don't have an answer for you, but I am about to attempt to do the same thing, so would be interested to hear the answer. Any ideas OSG community? Thanks, Andrew -- Read this topic online here:

Re: [osg-users] [osgPPU] X-ray Design use of OsgPPU

2009-08-11 Thread Art Tevs
Hi Bob, huh, I would say it depends on your implementation. Currently the way you describe it requires a volumetric rendering approach. The thickness calculation seems to be the most tricky part. If you have your volume data, then use osgVolume for that (I haven't tested it, so I do not know

Re: [osg-users] line intersection performance

2009-08-11 Thread Andrew Burnett-Thompson
This is an old thread I found when I was searching. It may not be in the forums so I have included the original text below as a quote. I am trying to implement something like this, in order to compute hit tests on a line. I don't need to know which objects intersected the line, or get a list of

Re: [osg-users] Using OSGShadow to compute and return a shadow map in a texture or bitmap

2009-08-11 Thread Andrew Thompson
I realise this is a bit of a complicated question, but does anyone have any ideas if this is possible with OSG? Cheers, Andrew -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16099#16099 ___

Re: [osg-users] ShaderGen and GL3

2009-08-11 Thread Paul Martz
Jean-Sébastien Guay wrote: Still, your visitor is interesting, extending it would be good, and testing it by having OSG create a GL3 context (perhaps even GL3.1 so that it errors out when using deprecated functionality) would be even better. I've given this some thought, and tried to write

[osg-users] 360 degree screen captures

2009-08-11 Thread Wally Atkins
I am interested in creating a small OSG programs that will read in a model of whatever type and then render screen captures that would mimic a 360 rotation around the model. I would imagine this would be rather simple to write but my days of writing C++ are rusty at best and my initial attempts

Re: [osg-users] line intersection performance

2009-08-11 Thread Jean-Sébastien Guay
Hello Andrew, I am trying to implement something like this, in order to compute hit tests on a line. I don't need to know which objects intersected the line, or get a list of objects/intersections out, just need to know Is there an intersection or not. The original posts are included below.

Re: [osg-users] about the bounding sphere of a geode computed by OSG

2009-08-11 Thread Paul Martz
Gianluca Natale wrote: I cannot completely agree. I mean that I know that the real perfect bounding sphere is computationally expensive, but in many cases (solid objects) it should be computed just once But in many other cases (dynamic geometry) it must be computed each frame. So it really

[osg-users] Using shared OpenGL contexts

2009-08-11 Thread Raphael Sebbe
Hi, Is it possible in OSG to use shared opengl contexts that are created outside of OSG, and yet declare to OSG that they are sharing their texture spaces (and VBO, etc)? I searched the documentation, but could not find a way to do that. Thank you, Raphael

Re: [osg-users] [osgPPU] X-ray Design use of OsgPPU

2009-08-11 Thread Bob Youmans
Hi, for the thickness it's actually a fixed data for the geometry (not really thickness). It's only thickness in the analogue of the x-ray model. It's geometry dependent data, and for starting out adding this data item and/or having only the one value will do. I'm just looking for the best

Re: [osg-users] Get the top coordonates from screen of an object

2009-08-11 Thread Jean-Sébastien Guay
Hi Adrien, I'm trying to put a text on the top of a node, a sort of caption. This caption can be added for mutliple objects without being stacked with other captions. My idea is to add those caption to the global scene by getting the coordinates of the top of the followed node and project

Re: [osg-users] PolytopeIntersector distance and Transform

2009-08-11 Thread Andrew Cunningham
Hi Peter, I have no time to work on this either at the moment. I will just avoid the scale transforms and scale the objects 'manually'. Andrew -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16108#16108

Re: [osg-users] [osgPlugins] Current state of Collada importer

2009-08-11 Thread Michael Irby II
Hi rosme, I have been looking for the things you are working also. Is it possible for you to ship me the files you have. If so that would be great. ... Thank you! Cheers, Michael -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16109#16109

Re: [osg-users] [osgPPU] X-ray Design use of OsgPPU

2009-08-11 Thread Art Tevs
Hello, ryoumans wrote: for the thickness it's actually a fixed data for the geometry (not really thickness). It's only thickness in the analogue of the x-ray model. It's geometry dependent data, and for starting out adding this data item and/or having only the one value will do. I'm

Re: [osg-users] [osgPPU] X-ray Design use of OsgPPU

2009-08-11 Thread Paul Sherman
Hello, Pardon me if I am jumping into the middle of this conversation, but XRay rendering has been done before. Look at shader examples from NVidia and others for volumetric fog and adapt them accordingly. The basic approach is to use the depth buffer and subtraction to render thickness

Re: [osg-users] Hello from New Orleans

2009-08-11 Thread Paul Martz
I updated this page with the PDF of Wang Rui's presentation. I strongly encourage everyone to take a look at the OSG In Chine presentation. It's amazing to see how big their OSG community is. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 Jean-Sbastien

Re: [osg-users] [osgPPU] X-ray Design use of OsgPPU

2009-08-11 Thread Bob Youmans
Hi, yes view dependent ok. imagine a vehicle, each geode is a panel and the panel has a thickness. i plan to set a distance for the x-ray and a viewing angle (about z, assume constant elevation (about x or y), render a frame and see what interior geometry fraction shows through by counting

[osg-users] runtime error

2009-08-11 Thread Rabbi Robinson
Hi, I am getting a lot of Warning: detected OpenGL error 'invalid value' after RenderBin::draw(,) at run time. Can someone tell me how to narrow it down? Thank you! Cheers, Rabbi -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16116#16116

[osg-users] [build] could you please tell me how to build osg as static library on win32

2009-08-11 Thread Choi Kwang-Yoon
my project environment visual studio 2008 professional openscenegraph 2.8.1 I have difficulties in building osg as static library on win32. please tell me how to build osg as static library on win32. thanks in advance;; -- Read this topic online here: