Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Vincent Bourdier
Hi, I'm the original poster, and the problem I had is that I cannot use a material, because it will modify the state set, that is common for a lot of other geodes... But thanks for the answers, maybe i'll have some kind of revelation with your help. Can't it be interesting for OSG to have a

Re: [osg-users] ArgumentParser issues on Windows?

2009-06-09 Thread Ümit Uzun
Hi Butler; It is well known problem :) I think your OSG system only compiled in release mode and you are trying to build this example in debug mode, so program throw bad_alloc exception. Try to build your example same build type as your OSG system. If it is released mode you build your example in

Re: [osg-users] Downloading Binaries

2009-06-09 Thread Alberto Luaces
Ok Christopher, I have almost the same system as you. Make sure that you are linking to the correct OpenGL library. To do so, in the building directory, execute ccmake . Then press t to go to advaced options and search for the following parameters: OPENGL_INCLUDE_DIR OPENGL_gl_LIBRARY

Re: [osg-users] [forum] Ray tracing

2009-06-09 Thread Robert Osfield
Hi Roland, When you say the program is jerking I presume you mean that the intersection traversals are taking long enough that they are breaking frame. The solution for faster intersection traversals is to use osg::KdTree's attached the the geometry leaves. You can hint to the OSG to build

Re: [osg-users] CPU usage

2009-06-09 Thread Mario Valle
Try Windows Performance Analysis Tools They use the kernel already in place hooks to collect statistics. http://msdn.microsoft.com/en-us/performance/cc825801.aspx http://blogs.msdn.com/pigscanfly/archive/2008/03/02/using-the-windows-sample-profiler-with-xperf.aspx

Re: [osg-users] ImageStream with different sized images

2009-06-09 Thread Robert Osfield
Hi Jason, Changing the size of an image will require creation of a new texture object, something that is not ideal as it could cause a stall in rendering. Would it be possible to use a different texture for the first image? Would it be possible to resize the image to the size of the movie?

Re: [osg-users] building 2.8.1 with dcmtk

2009-06-09 Thread Robert Osfield
Hi John, The CMakeCache.txt will contain both ITK and DCMTK if they are present on your system. The dicom plugin will build against DCMTK if all the required component are available. DCMTK_FOUND will be set to TRUE if it's found all the components. Looking at your email it looks like it can't

Re: [osg-users] 2.8.1 Image::readPixels and packing.

2009-06-09 Thread Robert Osfield
Hi Andrew, On Mon, Jun 8, 2009 at 11:49 PM, Andrew Cunninghamo...@a-cunningham.com wrote: Image::readPixels() resets the packing of it's Image to 1. It should either take a packing parameter or respect the existing packing by passing _packing to allocateImage Why? Is this just some

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Robert Osfield
Hi Vincent, On Tue, Jun 9, 2009 at 7:17 AM, Vincent Bourdiervincent.bourd...@gmail.com wrote: Can't it be interesting for OSG to have a setTransparency() method on a node ? using material or something else, but working in each case... The OSG's state handling is done with StateSet, you can

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Vincent Bourdier
Hi Robert, I am aware of the mess this is to implement... but I need it, and I cannot create my scene graph appropriately because it it generated by some exporter (osgExp) so I have to work with graphs I cannot control. I just was asking if there is an other solution I didn't tried, but I see

Re: [osg-users] Texture coords

2009-06-09 Thread Maxime BOUCHER
Shaitan wrote: Hi all, Sorry for not providing much information about the interest of changing text coords. Im working on animating avatar impostors for which im using a billboard with a texture (sprite) of an avatar. With OSG its easy to implement a special kind of billboard for managing

[osg-users] Segmentation Faults while file accessing (models) because of multiple threads?

2009-06-09 Thread Jonas Walti
Hi out there We render our OSG application with a render machine with multiple pipes (GPU). We use Equalizer (a parallel rendering api) to do this. Every pipe has its own viewer with its own OSG scene graph. We do now have the problem, that if we try to load models (all the scene graphs do

[osg-users] car lights

2009-06-09 Thread giavelli maxime
Hi, I realize a simulation of a Highway and when I press a key on the keyboard it changes from day to night. But I can not have a very realistic rendering at the lights of my car, for now just using multi-texturing. I want to have a light source for each light, but I know that thez

[osg-users] nVidia 185.5 Windows Drivers issues

2009-06-09 Thread Kim C Bale
Anybody else having issues with the 185.85 drivers for vista 32bit? I just had to roll mine back to 182.5 as they seem to have buggered up FBO support. I get an 'out of memory' ogl error and a INVALID_FRAMEBUFFER_OPERATION_EXT when I run osgPrerender Had the exact same problem a while

[osg-users] texturedShadow problem

2009-06-09 Thread Hadas Divip
Hi all, I'm working on inserting the shadow capability to our app. for learning purpose i created a small and simple program. if i don't add camera to the scene - i do see the shadow, but when I add a camera to the scene - i don't . I'm sure i'm missing something and/or doing something wrong

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Paul Speed
You could implement the full fixed function pipeline (the parts you need) in a custom shader with the addition of manually controlling transparency based on a uniform. Actually, a fragment shader may be all you need... which is probably a lot easier than a fixed function pixel shader. I've

Re: [osg-users] change the current state set in real time for a multipass renderer

2009-06-09 Thread Sebastien Nerig
understood! Thank you! Sebastien -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13762#13762 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Vincent Bourdier
Hi Paul, Shader can be a solution, but a shader is a part of the StateSet, and i'm looking at the best way to avoid using them. But i'll keep that in mind. Thanks. Regards, Vincent. 2009/6/9 Paul Speed psp...@progeeks.com You could implement the full fixed function pipeline (the parts you

Re: [osg-users] Segmentation Faults while file accessing (models) because of multiple threads?

2009-06-09 Thread Robert Osfield
Hi Jonas, When running on a multi-pipe machine I would recommend used osgViewer to do the multi-thread and multi-window work, it's designed to do this and will provide the best performance. Equalizer will be more suited for cluster work. Now I don't use Equaliizer, let alone use it the way you

Re: [osg-users] car lights

2009-06-09 Thread Pascal Lecocq
Hi Giavelli, As far I know, the best ways to overcome light source number limitation are either : - Do /n/ multipass rendering with additive blending as many time you need to render your /n*MAX_LIGHT_NUM /lights Be careful to framebuffer precision. or - Do all your light computations with

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Robert Osfield
Hi Vincent, On Tue, Jun 9, 2009 at 10:39 AM, Vincent Bourdiervincent.bourd...@gmail.com wrote: Shader can be a solution, but a shader is a part of the StateSet, and i'm looking at the best way to avoid using them. But i'll keep that in mind. StateSet's control state in the OSG, you can't not

[osg-users] Forward declared classes and ref_ptrs

2009-06-09 Thread Colin Steinberg
Hi all, to reduce compile time dependencies, I prefer using forward delcarations instead of #includes, where possible. This doesn't seem to work with osg::ref_ptr, which needs complete type informations. Is there a workaround to use ref_ptrs and as few include-files as possible? Greetings,

Re: [osg-users] Segmentation Faults while file accessing (models) because of multiple threads?

2009-06-09 Thread Jonas Walti
Hi robert I do agree with you, that for this topology, the multithreaded osgviewer would be the better approach. Our solution works fine on a multicluster topology but it would be nice to use the same application on an multipipe environment by just changing the Equalizers config file. That was

Re: [osg-users] Forward declared classes and ref_ptrs

2009-06-09 Thread Daniel Trstenjak
Hi Colin, to reduce compile time dependencies, I prefer using forward delcarations instead of #includes, where possible. This doesn't seem to work with osg::ref_ptr, which needs complete type informations. Is there a workaround to use ref_ptrs and as few include-files as possible? This

Re: [osg-users] Forward declared classes and ref_ptrs

2009-06-09 Thread Daniel Trstenjak
This should work: namespace osg { template typename T class ref_ptr; }; This seems to work as long you don't use the ref_ptr member inside of the header, and as long you don't use any of c++ default generated code (constructor, assignment operator) which uses the ref_ptr member.

Re: [osg-users] [forum] Ray tracing

2009-06-09 Thread Garrett Potts
Hello All: Also, just a question. Is this a custom graph or are you using the SceneGraph with static terrain objects,... etc. I had a custom scene graph and intersections were killing me but when I realized that the Intersect visitor sets a ACTIVE_CHILDREN for the traversal I used

Re: [osg-users] [osgOcean] problem with ocean surface in svn

2009-06-09 Thread Martin Scheffler
Hi Kim, I just ran into the same problem on our SuSE boxes. Will you take a look at that? Or do you have any pointers for me where to look? As osgOcean works perfectly fine under windows the best guess is to look for differences in the FFTW library, right? Has anyone got osgOcean running

Re: [osg-users] Forward declared classes and ref_ptrs

2009-06-09 Thread Martin Scheffler
I can only forward-declare ref-ptr members if I write the implementation of the class destructor in the cpp file. Try if that helps Cheers, Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13773#13773

Re: [osg-users] [osgOcean] problem with ocean surface in svn

2009-06-09 Thread Kim C Bale
Hi Martin, I've got a new release due imminently (fixing final bugs) which gets rid of the FFTW dependency. I should be able to test that theory after that. I believe Robert got osgOcean working on his linux box whatever flavour that is. And it runs on a Debian distribution in my lab here. I

Re: [osg-users] [3rdparty] [osgOcean] problem with ocean surface in svn

2009-06-09 Thread Martin Scheffler
Allright! Keep up the good work! Cheers, Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13775#13775 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] Load PlugIn Library in OsgDB::Registry

2009-06-09 Thread croperli
Hello All, Is there something wrong in OsgDB::Registry::LoadLibrary(std::string libname) when i load the .curl plugin in debug , it is shown that the .curl plugin con't be found.However,it works well in release mode. when i open osgDb_curld.dll in depends_22, msvcr80d.dll con't be found.The

Re: [osg-users] Load PlugIn Library in OsgDB::Registry

2009-06-09 Thread Ümit Uzun
Hi Croperli; Look at the http://www.skew-matrix.com/bb/viewtopic.php?f=8t=3 Troubleshooting the Build Did osgdb_curl.dll fail to link? OSG creates several libraries during a build. One of the libraries, osgdb_curl.dll, has a special dependency on Windows. During the OSG build, if this library

Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-09 Thread Christopher Wang
Hi, Thanks for all the help guys!! I have ccmake 2.6 patch 4 and for those values I got OPENGL_INCLUDE_DIR /usr/include OPENGL_gl_LIBRARY/usr/lib/w32api/libopengl32.a OPENGL_glu_LIBRARY /usr/lib/w32api/libglu32.a I'm sure I missing some stupid step,

Re: [osg-users] Texture coords

2009-06-09 Thread Joseba Rodriguez
Hi, Hi, Just an idea: have you taken a look at TexGen, I use it in projective texture mapping to automatically compute the texcoords, maybe you could use it too. I saw this feature, but i dont know exactly how could i apply it on this case... Perhaps it would worth having a look to

Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-09 Thread Christopher Wang
Hi, Grr, fixed it and still have an issue... ... Thank you! Cheers, Christopher -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13780#13780 ___ osg-users mailing list

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Jean-Sébastien Guay
Hi Vincent, I'm the original poster, and the problem I had is that I cannot use a material, because it will modify the state set, that is common for a lot of other geodes... You can clone the stateset and then each geode will have a unique one which you can modify. Or you can put the

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Vincent Bourdier
Hi Jean Sebastien, Thanks for the advice, I forgot the stateSet of the drawables ! Not sure this will be the solution, but it can helps a lot. Thanks everyone for your help. Regards, Vincent. 2009/6/9 Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com Hi Vincent, I'm the original

Re: [osg-users] multiple render targets / cameras

2009-06-09 Thread Jason Daly
Mike Wozniewski wrote: It's probably osgViewer::CompositeViewer that you want, not osgViewer::Viewer. There's an example in the source. That way you create two different osgViewer::Views, and each can have it's own manipulator. I'm not sure why you'd need a CompositeViewer if both cameras

Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-09 Thread Alberto Luaces
You'd better write what the fix was in order to help others in the future :) Regards, Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Multidisplay FBO performance

2009-06-09 Thread Thrall, Bryan
I have a multiple display system with an NVIDIA 8800 GT (driver version 181.20) that has performance problems when I use FBOs (see attached test case, modified from osgviewer.cpp). My draw times jump from about 7 milliseconds to 14, and my GPU times jump from less than 1ms to 7ms. The problem

Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-09 Thread Christopher Wang
Alberto Luaces wrote: You'd better write what the fix was in order to help others in the future :) Regards, Alberto ___ osg-users mailing list http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org --

[osg-users] Moving Line of sight

2009-06-09 Thread Roland Leitner
Hi all, I am working with a line of sight ray with start and end point in the world coordinate system. I meassure the distance between the start point of this ray and the first intersection with the scene, e.g. terrain. If the ray is fixed, everything is working well. Now I want to add the

Re: [osg-users] Layer Opacity using TexEnvCombine

2009-06-09 Thread Jason Beverage
Hi Jason, You're exactly right, if texture 1 has transparency, then I want texture 0 to show through no matter what. Doing something like the following on unit 0 works great in that case, but I also want to add in another scaling factor that will scale the alpha value of the texture from 0 to 1

[osg-users] Camera Placement Question: Geocentric reference

2009-06-09 Thread Allen Saucier
Hi all, I'm having difficulty moving a camera to a specific point to look at in a geocentric coordinate reference frame. I've got a geocentric point that I want my camera to look at and the point is in x,y,z form where x,y,z are in meters. I do not understand how to translate and rotate my

Re: [osg-users] Camera Placement Question: Geocentric reference

2009-06-09 Thread Ulrich Hertlein
On 09.06.2009 17:59 Uhr, Allen Saucier wrote: I've got a geocentric point that I want my camera to look at and the point is in x,y,z form where x,y,z are in meters. I do not understand how to translate and rotate my camera to this point. Is there a setByViewMatrix method in OSG any more?

Re: [osg-users] Multidisplay FBO performance

2009-06-09 Thread Wojciech Lewandowski
Hi Bryan, I have similar setup. 8800 GTS Windows XP 32 bit driver version. Drivers 185.85. Default (undefined USE_FBO) osgviewer cow.osg on two 1280x1024 screens runs at 600 hz. When graph stats are turned on (second 's' keypress) framerate drops to 60-70 hz. When running your modified

Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-09 Thread Robert Osfield
Hi Christopher, I can't help directly as I have no Cygwin/Mingw experience, but I can say there is a nightly build of both up on the OSG CDash page: http://www.cdash.org/CDashPublic/index.php?project=OpenSceneGraph There aren't any errors being reported for either Cygwin so it should be

Re: [osg-users] Moving Line of sight

2009-06-09 Thread Robert Osfield
Hi Roland, You'll need to recompute the position of the ray in world coordinates by taking the ray in local coords to the node and multiplying by the accumulated world matrix of the node in question. You can get the world matrices from any node by doing node-getWorldMatices(). Please note this

Re: [osg-users] Multidisplay FBO performance

2009-06-09 Thread Thrall, Bryan
Wojciech Lewandowski wrote on Tuesday, June 09, 2009 11:25 AM: I have similar setup. 8800 GTS Windows XP 32 bit driver version. Drivers 185.85. Default (undefined USE_FBO) osgviewer cow.osg on two 1280x1024 screens runs at 600 hz. When graph stats are turned on (second 's' keypress) framerate

Re: [osg-users] Transparency on geode and shared stateSet

2009-06-09 Thread Andrew Cunningham
Jason Daly wrote: Andrew Cunningham wrote: Adjusting the material color alpha will work for some geometries but I have other geometries where each vertex has a BIND_PER_VERTEX color ( think of a contour plot of a value), so I would still need to adjust the alpha of each vertex

Re: [osg-users] 2.8.1 Image::readPixels and packing.

2009-06-09 Thread Andrew Cunningham
Call it what you like (bug, not optimal behavior, I don't care) but I would expect that in a code snippet image-setPacking(4) image-readPixels(,,,) That the readPixels call would respect the the packing that you set in previous line.However Image::readPixels resets the packing to 1 That is a

Re: [osg-users] 2.8.1 Image::readPixels and packing.

2009-06-09 Thread Martin Beckett
loopless wrote: One solution would be to add a 'packing' parameter to readPixels. A better one might be for readPixels to read the current value of packing and reset it on exit. I haven't run into problems with this but it seems wrong that a readPixels() call should silently change a value

Re: [osg-users] Wiki spammer

2009-06-09 Thread Roland Smeenk
The wiki spamming still continues. Is there nobody available that can administer the wiki and remove the spammers? regards, Roland -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13800#13800 ___

Re: [osg-users] Cygwin Compile Question OSG 2.8.1Hi,

2009-06-09 Thread Alberto Luaces
Hi, El Martes 09 Junio 2009ES 15:21:42 Christopher Wang escribió: and for those values I got OPENGL_INCLUDE_DIR               /usr/include OPENGL_gl_LIBRARY                /usr/lib/w32api/libopengl32.a OPENGL_glu_LIBRARY               /usr/lib/w32api/libglu32.a take into account that Philip

[osg-users] [osgPlugins] FreeType plugin for Win64

2009-06-09 Thread Andrew Cunningham
I am able to build and use the FT plug-in on Win32 using VS 2005. Attempts to build the required FT libraries (starting from the FT 2.3.9 distro) on Win64 are proving very difficult as the FT headers have a number of unfortunate assumptions that sizeof(unsigned long) = sizeof(void *) Has

Re: [osg-users] Layer Opacity using TexEnvCombine

2009-06-09 Thread Jason Daly
Jason Beverage wrote: Hi Jason, You're exactly right, if texture 1 has transparency, then I want texture 0 to show through no matter what. Doing something like the following on unit 0 works great in that case, but I also want to add in another scaling factor that will scale the alpha value

Re: [osg-users] OSG BOF at SIGGRAPH 2009

2009-06-09 Thread Jean-Sébastien Guay
Hi Paul, Hi all -- This is an official Call for Participation. With SIGGRAPH 2009 only 2 months away, it's time to start organizing the BOF. Sign us up for a time slot, please. We've done some cool new stuff this year compared to last year, so we'd like to show you all what we've been up to

[osg-users] Preparing student's paper work about Delta3D/OSG

2009-06-09 Thread Ljubisa Gligorijevic
I have some paper work to do about Delta3D. More precisely, about the manner that the elements are selected for rendering, in which order, etc. I figured that Delta3D is using OSG. So, I need to study in deep the way the rendering is performed(culling, elements sorting, etc.). Since Delta3D is

Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-09 Thread Christopher Wang
Alberto Luaces wrote: Hi, El Martes 09 Junio 2009ES 15:21:42 Christopher Wang escribió: and for those values I got OPENGL_INCLUDE_DIR               /usr/include OPENGL_gl_LIBRARY                /usr/lib/w32api/libopengl32.a OPENGL_glu_LIBRARY               /usr/lib/w32api/libglu32.a

Re: [osg-users] master/slave camera question

2009-06-09 Thread Wyatt Earp
So... Let me see if I understand this... Assuming I pass no args to the app when I run it, the osgdistortion createDistortionSubgraph first creates a camera which will render the scene to a texture attached to an FBO before the main camera renders the scene. Then the hud camera is created to

Re: [osg-users] OSG BOF at SIGGRAPH 2009

2009-06-09 Thread Wang Rui
Hi Paul, There are also publications about OSG being writing (of course, in Chinese), which will be published by Tsinghua University Press at the end of this year. I would like to share more information and samples if it could be finished in time. :) Wang Rui 2009/6/10 Jean-Sébastien Guay

Re: [osg-users] [osgPlugins] FreeType plugin for Win64

2009-06-09 Thread Andrew Cunningham
With some fiddling of the FT headers I got the number of warnings in the FT Win64 build down to a plausible set and the osg text example works fine under Win64. If anyone is interested I can send the changed FT header file. -- Read this topic online here:

Re: [osg-users] [osgPlugins] FreeType plugin for Win64

2009-06-09 Thread Jean-Sébastien Guay
Hi Andrew, With some fiddling of the FT headers I got the number of warnings in the FT Win64 build down to a plausible set and the osg text example works fine under Win64. If anyone is interested I can send the changed FT header file. It would probably be even better to submit the changes

[osg-users] [vpb] a bug in vpb

2009-06-09 Thread wind
Hi, Robert, when i set my machine's virtual memory to a lower value for some test related to vpb, thousands of image files as input, then vpb jumps into this error: //system.cpp, Line 305, void eraseFrom(System::DatasetMap datasetMap) { for(TimeIteratorMap::iterator itr =