Re: [osg-users] Setting alpha channel in Frag Shader does not work.

2009-03-12 Thread Joseba
http://forum.openscenegraph.org/viewtopic.php?t=1776 J. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=8420#8420 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegr

[osg-users] ProxyNode and output to .IVE

2009-03-12 Thread Steven Saunderson
I'm generating a scene and writing it to disk for later use. I wish to import some sub-scenes (IVE files) at run-time. To achieve this I'm using ProxyNodes specifying the sub-scene filename. One problem is that the full filename is stored in the OSG file I generate but not the IVE file. If I

Re: [osg-users] second newbie question reiterated withdrawLin (UNCLASSIFIED)

2009-03-12 Thread Ulrich Hertlein
Hi Daniel, On 13/3/09 3:34 AM, Konkle, Daniel T AMRDEC/Dynetics wrote: The strange thing is that the first triangle that I draw is the wrong color and the second triangle is the correct color and they are both drawn from the same geode. ... osg::Vec3Array* tri = new osg::Vec3Array;

Re: [osg-users] tire Skid Marks

2009-03-12 Thread Ulrich Hertlein
On 13/3/09 3:30 AM, Claudio Arduino wrote: Hi, I need to place tire skid mark on track surface when my car brake. the mark must to remain on the track for the lifetime of application. How i can make this? The way I once did it was just polygons splatted onto the ground geometry (using intersec

Re: [osg-users] Qt4.5 problem

2009-03-12 Thread Martin Beckett
Thanks - I have upgraded Virtualbox The default qt-sdk-win-opensource-2009.01.bin (qt4.5) for Linux doesn't include opengl and you can't build it without a licence key (!??) I hit another problem using -graphicssystem opengl on windows. It seems that every time OSG does a repaint, the message goe

Re: [osg-users] second newbie question reiterated withdrawLi(UNCLASSIFIED)

2009-03-12 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Another thought...if you do have lighting enabled, your lighting normals on the "black" triangle could be facing the opposite direction from the light source which might explain the black color. It might also explain why when you fiddle with the matrix transform, the triangle color shows up (i.e. t

Re: [osg-users] second newbie question reiterated withdrawLi(UNCLASSIFIED)

2009-03-12 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Are you rendering with lighting enabled or disabled? I notice that along with setting the color array, you are setting a normal array in your code below. Normally (no pun intended) you supply a normal array if lighting is enabled... -Shayne -Original Message- From: osg-users-boun...@lis

Re: [osg-users] problem with color change in osgText

2009-03-12 Thread Terry Welsh
Thanks Jason. That did the trick. The geometry that was having trouble had no color array, but it had a Material applied to it. I don't know why the Material color was being replaced by another object's vertex color, but I'll try to figure it out in 6 weeks after my project is done and there is

Re: [osg-users] problem with color change in osgText

2009-03-12 Thread Jason Beverage
Hi Terry, I'm not sure if this is your issue, but make sure that any Geometry objects you are rendering have a color array associated with them. If you just specify a vertex array for instance and forget to set a color array, you can see that type of issue. Thanks! Jason On Thu, Mar 12, 2009 a

[osg-users] problem with color change in osgText

2009-03-12 Thread Terry Welsh
I have one of those obscure state problems that's probably related to lazy state sorting. Some of my objects on screen take the color of the text that is on screen. If I comment out line 1732 in osgText/Text.cpp the problem goes away: //glColor4f(colorMultiplier.r()*_color.r(),colorMultiplier.g(

[osg-users] DrawImplementation issue with Intel video card.

2009-03-12 Thread hui
Hi, I meet a problem in function drawImplementation(osg::RenderInfo& renderInfo) const Actually the code works find with nvidia and ati video card, just when I run it in intel 965GM, it get problem. Here is the code: void SubmeshDrawable::drawImplementation(osg::RenderInfo& renderInfo) const

[osg-users] Setting alpha channel in Frag Shader does not work.

2009-03-12 Thread Steven Powers
Camera Set up: Code: _image = new osg::Image(); _image->allocateImage(_camera->getViewport()->width(),_camera->getViewport()->height(), 1, GL_RGBA, GL_FLOAT); } _image->setInternalTextureFormat(GL_RGBA32F_ARB); _image->s

Re: [osg-users] Bug in RenderBin (?)

2009-03-12 Thread Christof Krüger
I'll be able to test it tomorrow and will inform you about the outcome. Thanks for your help so far! I'd be very surprised if this didn't fix it. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=8405#8405

Re: [osg-users] [build] Building from CMAKE on Windows - missing PNG_PNG_INCLUDE_DIR

2009-03-12 Thread Andrew
It's probably due to this 'code' in Find3rdpartyDependencies.cmake. IF(ZLIB_FOUND) FIND_DEPENDENCY(PNG png.h "libpng;libpng13" ${OSG_3RDPARTY_BIN} "D") IF(PNG_FOUND) #forcing subsequent FindPNG stuff to not search for other variables kind of a h

Re: [osg-users] [build] Building from CMAKE on Windows - missing PNG_PNG_INCLUDE_DIR

2009-03-12 Thread Andrew
That is the whole point of my post... Clicking on the advanced view and there is no PNG_LIBRARY or PNG_PNG_INCLUDE_DIR listed although there is , for example, a JPEG_INCLUDE_DIR listed. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=8402#8402

Re: [osg-users] 2.8 OpenThreads linker errors on Mac 10.5

2009-03-12 Thread frangossauro
I have the same problem that you But now it's everything fine (i've got others link errors, but in osg.framework, not in OpenThreads) I just followed this guide http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/MacOSX10.5 And changed the MAC OS X Deployment Target to

Re: [osg-users] division by zero in osgParticle/FluidProgram.cpp

2009-03-12 Thread Csaba Halász
On Thu, Mar 12, 2009 at 6:03 PM, Robert Osfield wrote: > HI Csaba, > > I don't have any strong opinions on these issues, as I'm not very > familiar with the code, and haven't seen problems first hand with the > code segments your pointing out so don't have any extra insight to > provide.  I don't

Re: [osg-users] division by zero in osgParticle/FluidProgram.cpp

2009-03-12 Thread Robert Osfield
HI Csaba, I don't have any strong opinions on these issues, as I'm not very familiar with the code, and haven't seen problems first hand with the code segments your pointing out so don't have any extra insight to provide. I don't know if you are directly seeing bugs, or just come across potential

Re: [osg-users] [build] Building from CMAKE on Windows - missing PNG_PNG_INCLUDE_DIR

2009-03-12 Thread David Callu
Hi Andrew Just check the 'Show Advanced Values' check box on the top right of cmake window. HTH David 2009/3/12 Andrew > I am building the 2.8.0 Windows VS 2005 projects using CMAKE 2.6 and I get > these (expected) messages in the CMAKE GUI log Window > > Could NOT find CURL (missing: CURL_L

Re: [osg-users] Qt4.5 problem

2009-03-12 Thread David Callu
Hi Martin With the last version of Virtual Box 2.1, you can enable 3D acceleration. HTH for your test with -graphicssytem opengl. Cheer David 2009/3/12 Martin Beckett > Installed Qt4.5/Osg2.8.0 on Ubuntu in a VM and tested on that. > with --QOSGWidget the osgviewerQT runs but doesn't redraw at

Re: [osg-users] memory management incompatibility? (SOLVED)

2009-03-12 Thread Kim C Bale
Moji the ...Great...? Regards, Kim the Fabulous. (sorry childish, couldn't resist) From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Mojtaba Fathi Sent: 12 March 2009 14:38 To: OpenSceneGraph Users Subject: [osg-users]

Re: [osg-users] second newbie question reiterated withdrawLi (UNCLASSIFIED)

2009-03-12 Thread Konkle, Daniel T AMRDEC/Dynetics
Classification: UNCLASSIFIED Caveats: NONE If i remove the matrix transform that performs the rotation for the the right triangle, i get the correct color on my triangle. i don't understand why. help. > -Original Message- > From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-

[osg-users] [build] Building from CMAKE on Windows - missing PNG_PNG_INCLUDE_DIR

2009-03-12 Thread Andrew
I am building the 2.8.0 Windows VS 2005 projects using CMAKE 2.6 and I get these (expected) messages in the CMAKE GUI log Window Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Could NOT find PNG (missing: PNG_LIBRAR

Re: [osg-users] second newbie question reiterated withdrawLin (UNCLASSIFIED)

2009-03-12 Thread Konkle, Daniel T AMRDEC/Dynetics
Classification: UNCLASSIFIED Caveats: NONE I thought that this code in drawLines sets the color. The strange thing is that the first triangle that I draw is the wrong color and the second triangle is the correct color and they are both drawn from the same geode. i'm totally confused. > //

[osg-users] tire Skid Marks

2009-03-12 Thread Claudio Arduino
Hi, I need to place tire skid mark on track surface when my car brake. the mark must to remain on the track for the lifetime of application. How i can make this? with overlay node? with stencil ? Someone can send me a example code? please help... thanks!

Re: [osg-users] division by zero in osgParticle/FluidProgram.cpp

2009-03-12 Thread Csaba Halász
On Thu, Mar 12, 2009 at 5:04 PM, Tomlinson, Gordon wrote: > Read this page > http://www.openscenegraph.org/projects/osg/wiki/MailingLists/SubmissionsProtocol Looks the same as last time :D I haven't made a submission, because I was hoping for some discussion and a more sophisticated fix than jus

Re: [osg-users] Extending the osgViewer::StatsHandler graph

2009-03-12 Thread Alex French
Ah, good to see there's interest in this. Looking at your explanation, Robert, it looks like this might be doable without too much effort. Maybe I'll give it a shot. -Alex -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=8383#8383

Re: [osg-users] second newbie question reiterated with drawLine(UNCLASSIFIED)

2009-03-12 Thread Tomlinson, Gordon
You do not show how you set the color and material on the triangles If this is not specified then you will pickup what ever the last color and/or material that was used by Opengl Gordon Product Manager 3d __ Gordon Tomlinson Email : gtomlin

Re: [osg-users] division by zero in osgParticle/FluidProgram.cpp

2009-03-12 Thread Tomlinson, Gordon
Read this page http://www.openscenegraph.org/projects/osg/wiki/MailingLists/SubmissionsProtocol Gordon Product Manager 3d __ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com

[osg-users] second newbie question reiterated with drawLine (UNCLASSIFIED)

2009-03-12 Thread Konkle, Daniel T AMRDEC/Dynetics
Classification: UNCLASSIFIED Caveats: NONE Any insight would be welcome. So I'm drawing several triangles on my scene. here is the code that draws the first 2. I'm reusing the first same geode. The strange thing is that the 'right triangle' is a different color (black) than the 'left triang

Re: [osg-users] division by zero in osgParticle/FluidProgram.cpp

2009-03-12 Thread Csaba Halász
On Thu, Mar 5, 2009 at 4:16 AM, Csaba Halász wrote: > Hi! > > If wind_accel has zero length, then line 43 > >  double critical_dt2 = relative_wind.length2()/wind_accel.length2(); > > will attempt a divide by zero. A simple fix would be to check for zero > but that would still leave the possibility

Re: [osg-users] order independent transparency (OIT) and OSG

2009-03-12 Thread Andrew
Ok, thanks for the information -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=8379#8379 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-u

Re: [osg-users] Mouse events are default in OpenScenegraph

2009-03-12 Thread Robert Osfield
Hi Rajesh? Please sign with your name so we know who to address, On Thu, Mar 12, 2009 at 3:37 PM, Rajesh.R wrote: > Does openscenegraph handles mouse motion events by default? Even when I am > commenting  the mouse handlers in the OpenSceneGraph samples, scene is still > accepting the mouse eve

Re: [osg-users] [3rdparty] osgCuda: Using CUDA in osg - Problem with Threading

2009-03-12 Thread Robert Osfield
Hi Mick, On Thu, Mar 12, 2009 at 2:51 PM, Mick wrote: > Oh, we did not know... We chose the name "pipe" because the part which > runs on the GPU based on CUDA, for example, is organized more in a > pipeline structure than in a graph-structure. > > Right now seems to be a good time to change the n

Re: [osg-users] second newbie question (UNCLASSIFIED)

2009-03-12 Thread Brian R Hill
Daniel, We need to see what drawLines( tri, 0 ) is doing. 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, this e-mail shall not operate to bind CSC to any

[osg-users] second newbie question (UNCLASSIFIED)

2009-03-12 Thread Konkle, Daniel T AMRDEC/Dynetics
Classification: UNCLASSIFIED Caveats: NONE In insight would be welcome. So I'm drawing several triangles on my scene. here is the code that draws the first 2. I'm reusing the first same geode. The strange thing is that the 'right triangle' is a different color (black) than the 'left triangl

Re: [osg-users] Mesh generation using Vertex Buffer and Index Buffer in OpenSceneGraph

2009-03-12 Thread Brian R Hill
Rajesh, Seach through the examples for DrawElements. 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, this e-mail shall not operate to bind CSC to any orde

[osg-users] Mouse events are default in OpenScenegraph

2009-03-12 Thread Rajesh.R
Does openscenegraph handles mouse motion events by default? Even when I am commenting the mouse handlers in the OpenSceneGraph samples, scene is still accepting the mouse events. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=8373#8373 _

Re: [osg-users] need openvrml lib files(vs8.0)

2009-03-12 Thread Tomlinson, Gordon
Just follow the instructions here, I know it works as I did this yesterday http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecific s/VisualStudio/VisualStudioPlugins Gordon Product Manager 3d __ Gordon Tomlinson Email :

Re: [osg-users] Qt4.5 problem

2009-03-12 Thread Martin Beckett
Installed Qt4.5/Osg2.8.0 on Ubuntu in a VM and tested on that. with --QOSGWidget the osgviewerQT runs but doesn't redraw at all, there is no mouse movement. With adaptor widget the model displays correctly. It doesn't seem possible to run "-graphicssytem opengl" in a VM (at least in Virtualbox)

Re: [osg-users] need openvrml lib files(vs8.0)

2009-03-12 Thread Serge Lages
Hi Iwren, Search on the list for a message named "OpenVRML and Windows", you'll find the version number to compile and a patch to make it compile with VS8. Good luck ! 2009/3/12 lwren > Hi all, > I need openvrml library files(.lib and .dll), but i failed to complie > it on vs8.0 for lacki

[osg-users] need openvrml lib files(vs8.0)

2009-03-12 Thread lwren
Hi all, I need openvrml library files(.lib and .dll), but i failed to complie it on vs8.0 for lacking of boost. I'll be very grateful if anybody would kindly send me a copy of these library file complied on vs8.0. Thanks so much.___ osg-users

Re: [osg-users] VBOs not actually used?

2009-03-12 Thread Paul Melis
Thrall, Bryan wrote: Paul Melis wrote on Thursday, March 12, 2009 9:33 AM: Hi, While trying to debug a collegue's code that uses a dynamically updated color array on a Geometry that uses VBOs I'm getting confused about VBO support in OSG 2.8. Given the attached simple .o

Re: [osg-users] [3rdparty] osgCuda: Using CUDA in osg - Problem with Threading

2009-03-12 Thread Mick
Hi Robert. Robert Osfield wrote: > ...I'm curious about the name, osgPipe, why Pipe? SGI used to use the > name Pipe in the context of graphics hardware/graphics contexts... Oh, we did not know... We chose the name "pipe" because the part which runs on the GPU based on CUDA, for example, is or

Re: [osg-users] VBOs not actually used?

2009-03-12 Thread Thrall, Bryan
Paul Melis wrote on Thursday, March 12, 2009 9:33 AM: > Hi, > > While trying to debug a collegue's code that uses a dynamically updated > color array on a Geometry that uses VBOs I'm getting confused about VBO > support in OSG 2.8. > Given the attached simple .osg file (a single colored quad, fla

Re: [osg-users] plugin to load png and jpg images problem

2009-03-12 Thread Guy
Hi Adrien, Try to build the png lib from it's sources and then build the plugin with the library you have created. If you want to send me your email, I can send you this library I build with the vs8.0 (2005) compiler. Guy. Hello ! I have installed Visual Studio 2005 and osg 2.8 in debug and

Re: [osg-users] glActiveTextureARB in OSG

2009-03-12 Thread Thrall, Bryan
Großer Martin wrote on Thursday, March 12, 2009 7:20 AM: > Hello Robert, > > first ist works fine with setActiveTextureUnit(0)! Now I would like to > specify my request. I create my Scene and build on my scenegraph and > render my scene with frame(). I use a gtk embedded viewer like the > osgview

Re: [osg-users] VBOs not actually used?

2009-03-12 Thread Paul Melis
Paul Melis wrote: Paul Melis wrote: Similarly, the attached c++ test case is more in line with our original code. It uses a color array that is updated each frame. The array is flagged as dirty with a call to dirty(), but here also, no VBOs seem to get used. Forgot to mention that the original

Re: [osg-users] VBOs not actually used?

2009-03-12 Thread Paul Melis
Paul Melis wrote: Similarly, the attached c++ test case is more in line with our original code. It uses a color array that is updated each frame. The array is flagged as dirty with a call to dirty(), but here also, no VBOs seem to get used. Forgot to mention that the original symptom we had was

[osg-users] memory management incompatibility? (SOLVED)

2009-03-12 Thread Mojtaba Fathi
Hi again As expected, that was my fault. I found the problem and now everything is fine. Regards, Moji the Great --- On Thu, 3/12/09, Mojtaba Fathi wrote: From: Mojtaba Fathi Subject: [osg-users] memory management incompatibility? To: osg-users@lists.openscenegraph.org Date: Thursday, March 12

[osg-users] VBOs not actually used?

2009-03-12 Thread Paul Melis
Hi, While trying to debug a collegue's code that uses a dynamically updated color array on a Geometry that uses VBOs I'm getting confused about VBO support in OSG 2.8. Given the attached simple .osg file (a single colored quad, flagged to not use display lists, but to use VBOs) I can see with

[osg-users] Mesh generation using Vertex Buffer and Index Buffer in OpenSceneGraph

2009-03-12 Thread Rajesh.R
Assume that I have a Vertex Buffer and Index Buffer, Using OpenSceneGraph, Can I render a mesh, Similar to the way, we use glVertexBuffer and glIndexBuffer and glDrawElements in OpenGL, to render a mesh. or Using glVertex3fv in the following way Code: glBegin(GL_TRIANGLES); for (i = 0;

[osg-users] plugin to load png and jpg images problem

2009-03-12 Thread Adrien Joly
Hello ! I have installed Visual Studio 2005 and osg 2.8 in debug and release version. The problem is that I can't load jpg and png images in debug mode (work in release mode). The program is launched but no image appear where it should do. I have this message : "Warning: Could not find plugin

Re: [osg-users] Release schedule for OpenSceneGraph-2.8.1

2009-03-12 Thread Andy Skinner
I definitely want to give the 2.8.0 trunk a try, and will try to do it in relatively soon. It might be next week. andy ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.

Re: [osg-users] Non emissive ParticleSystem and lighting

2009-03-12 Thread Christophe.medard
Hi All, Anybody having an elegant hint for 3. ??? Christophe - Original Message - From: Christophe.medard To: osg-users@lists.openscenegraph.org Sent: Friday, March 06, 2009 4:07 PM Subject: [osg-users] Non emissive ParticleSystem and lighting A patch solution could be introduced to

Re: [osg-users] JavaOsg

2009-03-12 Thread Rafa Gaitan
Hi Gerrick, They are hand written, and is not complete of course, only the parts that we need for the project, but you can do many things using them. About osgswig, I was thinking in use it, but is best supported for python (even swig has better support for python). But of course could be a good

Re: [osg-users] glActiveTextureARB in OSG

2009-03-12 Thread Großer Martin
Hello Robert, first ist works fine with setActiveTextureUnit(0)! Now I would like to specify my request. I create my Scene and build on my scenegraph and render my scene with frame(). I use a gtk embedded viewer like the osgviewerGTK-Example. After the rendering I use a own "render to texture clas

Re: [osg-users] error on kernel32.dll

2009-03-12 Thread Robert Osfield
Hi Sara, On Thu, Mar 12, 2009 at 11:58 AM, Sara wrote: > hi Robert, > variables were all set, I believe, correctly, Your posted code segment was in error. Perhaps it was just a copy and paster into email error... but it is wrong in the email. The last line should be return viewer.run(); Or

Re: [osg-users] error on kernel32.dll

2009-03-12 Thread Alberto Luaces
Hi Sara, El Jueves 12 Marzo 2009ES 12:58:04 Sara escribió: > "viewer.setSceneData (osgDB:: readNodeFile (" cow.osg "));" this fails typically when if your program can't find the file cow.osg. Make sure it is in your working directory and make sure that the code reads "cow.osg", not " cow.osg ".

Re: [osg-users] Textures getting invisible on some system.

2009-03-12 Thread Robert Osfield
Hi Umit, To see what the OSG is doing to find the plugins + files enable verbose debug info in a terminal via: set OSG_NOTIFY_LEVEL=DEBUG The run your app/osgviewer on your models. osgviewer mymodel.3ds And have a look at the output. The paths it searches should all be listed. Robert.

Re: [osg-users] [3rdparty] osgCuda: Using CUDA in osg - Problem with Threading

2009-03-12 Thread Robert Osfield
Hi Mick, On Thu, Mar 12, 2009 at 11:34 AM, Mick wrote: > By the way: as I already mentioned in the first post the osgCuda ist based on > a kit which we > call osgPipe. In the near future it should not be too difficult to add OpenCL > with the help of the > community. I'm curious about the name

Re: [osg-users] error on kernel32.dll

2009-03-12 Thread Ümit Uzun
Hi Sarah; Have you tried look examples which all comes with OSG package? If you look, it will be much better for you. Regards. 2009/3/12 Sara > hi Robert, > variables were all set, I believe, correctly, > the error of the kernel on me by the staff of "viewer.setSceneData (osgDB:: > readNodeFil

Re: [osg-users] error on kernel32.dll

2009-03-12 Thread Sara
hi Robert, variables were all set, I believe, correctly, the error of the kernel on me by the staff of "viewer.setSceneData (osgDB:: readNodeFile (" cow.osg "));" -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=8342#8342 ___

Re: [osg-users] Textures getting invisible on some system.

2009-03-12 Thread Ümit Uzun
Hi Can & Robert; I have set all paths like OSG_LIB_PATH or etc correctly. Robert I mean model is loaded without textures. But strangely when I switch to OSG 2.7 from OSG 2.8 on NVIDIA graphics carded system, textures can be loaded. Thanks. 2009/3/12 Robert Osfield > HI Umit, > > What do you m

Re: [osg-users] error on kernel32.dll

2009-03-12 Thread Robert Osfield
HI Sara, I'm surprised this even compiles... the return(); certainly doesn't look sensible. Robert. On Thu, Mar 12, 2009 at 11:44 AM, Sara wrote: > hi, I entered a new, I have problems configuring OSG with VisualStudio, in > release of a draft cov.osg example: > # include > # include > int

[osg-users] error on kernel32.dll

2009-03-12 Thread Sara
hi, I entered a new, I have problems configuring OSG with VisualStudio, in release of a draft cov.osg example: # include # include int main (int, char **) ( osgViewer:: Viewer viewer; viewer.setSceneData (osgDB:: readNodeFile ( "cow.osg")); viewer.run return (); ) I error on kernel32.dll --

Re: [osg-users] Textures getting invisible on some system.

2009-03-12 Thread Robert Osfield
HI Umit, What do you mean be "getting invisible". Do you simply mean that the model loads without the textures? Or do strange artifacts occur when viewing the model that the textures come and go in some way? Robert. On Thu, Mar 12, 2009 at 11:28 AM, Ümit Uzun wrote: > Hi All, > > I have a ROO

Re: [osg-users] [3rdparty] osgCuda: Using CUDA in osg - Problem with Threading

2009-03-12 Thread Mick
Hi Robert. Robert Osfield wrote: > > I do hope OpenCL fairs a bit better in this respect. > By the way: as I already mentioned in the first post the osgCuda ist based on a kit which we call osgPipe. In the near future it should not be too difficult to add OpenCL with the help of the communi

Re: [osg-users] Bug in RenderBin (?)

2009-03-12 Thread Robert Osfield
On Thu, Mar 12, 2009 at 11:20 AM, Paul Melis wrote: > What was the use case for the bin names again? I mean, as there are already > bin numbers that uniquely identify a bin are the names merely descriptive? The bin number controls the high level ordering, but the RenderBin itself provides the con

Re: [osg-users] Textures getting invisible on some system.

2009-03-12 Thread Can T. Oguz
Hi Ümit, Did you make sure that all configurations had OSG_FILE_PATH and OSG_LIBRARY_PATH configured correctly? Regards, Can 2009/3/12 Ümit Uzun > Hi All, > > I have a ROOM 3ds model which I attached. This model's textures sometimes > getting invisible on different graphics card and different

Re: [osg-users] Bug in RenderBin (?)

2009-03-12 Thread Paul Melis
Robert Osfield wrote: Hi David, On Thu, Mar 12, 2009 at 10:46 AM, David Callu wrote: What about the case of register two prototype with the same name. There are any warning message for the user. I fix this like that There is only ever supposed to be one prototype per binName, and the

Re: [osg-users] Bug in RenderBin (?)

2009-03-12 Thread Robert Osfield
Hi David, On Thu, Mar 12, 2009 at 10:46 AM, David Callu wrote: > What about the case of register two prototype with the same name. There are > any warning message for the user. > I fix this like that There is only ever supposed to be one prototype per binName, and the std::map ensures this is th

Re: [osg-users] Simple question: How to set the icon that willbe used when a viewer is realized?

2009-03-12 Thread David Callu
Hi Matt Can you put your submissions in osg-submissions mailing list. Take a look to submissions protocolfor more detail. Cheer David Callu 2009/3/11 Matt McPheeters > Hi Robert, > > These source files came from

Re: [osg-users] Bug in RenderBin (?)

2009-03-12 Thread David Callu
Hi Robert What about the case of register two prototype with the same name. There are any warning message for the user. I fix this like that void RenderBin::addRenderBinPrototype(const std::string& binName, RenderBin* proto) { RenderBinPrototypeList* list = renderBinPrototypeList(); if

Re: [osg-users] Bug in RenderBin (?)

2009-03-12 Thread Paul Melis
Paul Melis wrote: Robert Osfield wrote: HI David & Christof et. al, On Thu, Mar 12, 2009 at 10:13 AM, David Callu wrote: What is smells fishy is the use of "proto->className()" to identify the renderBin prototype to remove in removeRenderBinPrototype(); Well spotted David, the addRen

Re: [osg-users] glActiveTextureARB in OSG

2009-03-12 Thread Robert Osfield
Hi Martin, On Thu, Mar 12, 2009 at 10:36 AM, Großer Martin wrote: > I'd like to use a OSG class. But I don't know which class I can use. > There are no way to change the active texture in osg or can I reset the > opengl state machine? After the rendering ( frame() ) the active texture > is not TE

Re: [osg-users] Bug in RenderBin (?)

2009-03-12 Thread Paul Melis
Robert Osfield wrote: HI David & Christof et. al, On Thu, Mar 12, 2009 at 10:13 AM, David Callu wrote: What is smells fishy is the use of "proto->className()" to identify the renderBin prototype to remove in removeRenderBinPrototype(); Well spotted David, the addRenderBinPrototype()

Re: [osg-users] glActiveTextureARB in OSG

2009-03-12 Thread Großer Martin
Hello Robert, I'd like to use a OSG class. But I don't know which class I can use. There are no way to change the active texture in osg or can I reset the opengl state machine? After the rendering ( frame() ) the active texture is not TEXTURE0_ARB, but that is what I need. Cheers, Martin Am Mitt

Re: [osg-users] Bug in RenderBin (?)

2009-03-12 Thread Robert Osfield
HI David & Christof et. al, On Thu, Mar 12, 2009 at 10:13 AM, David Callu wrote: > What is smells fishy is the use of "proto->className()" to identify the > renderBin prototype to remove in removeRenderBinPrototype(); Well spotted David, the addRenderBinPrototype() correctly uses binName, while

Re: [osg-users] Bug in RenderBin (?)

2009-03-12 Thread David Callu
Hi Paul, Hi Christof What is smells fishy is the use of "proto->className()" to identify the renderBin prototype to remove in removeRenderBinPrototype(); void RenderBin::removeRenderBinPrototype(RenderBin* proto) { RenderBinPrototypeList* list = renderBinPrototypeList(); if (list && pr

Re: [osg-users] order independent transparency (OIT) and OSG

2009-03-12 Thread Mathias Fröhlich
Hi, On Thursday 12 March 2009 00:12, Andrew wrote: > I was wondering if OIT (order independent transparency) as mentioned in > this presentation about OIT and OSG has been implemented or made > available... > > http://www.slideshare.net/acbess/order-independent-transparency-presentatio >n Not tha

Re: [osg-users] Bug in RenderBin (?)

2009-03-12 Thread Paul Melis
Christof Krüger wrote: I'm using the current 2.8.0 stable release. I used the 'Browse Source' to check the current trunk version of RenderBin.cpp and I see no change since. The actual crash occurs later in static object destruction when s_renderBinPrototypeList is destructed itself. I don't un

Re: [osg-users] Bug in RenderBin (?)

2009-03-12 Thread Christof Krüger
I'm using the current 2.8.0 stable release. I used the 'Browse Source' to check the current trunk version of RenderBin.cpp and I see no change since. The actual crash occurs later in static object destruction when s_renderBinPrototypeList is destructed itself. I don't understand enough of osg t

Re: [osg-users] ArcBall Rotation

2009-03-12 Thread Rosario Leonardi
Rajesh.R ha scritto: Where can I find ArcBall rotation implementation. I tried to find in Web. But could not succed. Even samples in SDK do not have any arc ball sample. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=8305#8305 __

Re: [osg-users] order independent transparency (OIT) and OSG

2009-03-12 Thread Robert Osfield
HI Andrew, Have a look at the osgdepthpeeling example. Robert. On Wed, Mar 11, 2009 at 11:12 PM, Andrew wrote: > I was wondering if OIT (order independent transparency) as mentioned in this > presentation about OIT and OSG has been implemented or made available... > > http://www.slideshare.net

Re: [osg-users] Mac OSX NVIDIA GLSL bug w/ Uniform arrays broken

2009-03-12 Thread Robert Osfield
HI Davis, Sorry to hear that you are hitting up against a driver bug. It does seem that NVidia on Macs is a bit of second class citizen, feedback from Mac users (I've seen it first hand as well) is that ATI drivers are better that NVidia drivers, with is rather than the reverse of Windows/Linux.

Re: [osg-users] osgCuda: Using CUDA in osg - Problem with Threading

2009-03-12 Thread Robert Osfield
HI Mick, On Wed, Mar 11, 2009 at 9:24 PM, Mick wrote: > Unfortunately these calls are all done by the main thread. All the allocated > memory (by cudaMalloc) is bound to the thread which allocated it (in a > multithreaded application this is the GraphicsThread). The CUDA API says > explicitly tha

Re: [osg-users] stopping an asynchronous viewer

2009-03-12 Thread Robert Osfield
Hi Cory, On Wed, Mar 11, 2009 at 8:24 PM, Cory Riddell wrote: > If I started the viewer with the run() method (in a separate thread), is > it sufficient to call viewer->setDone(true) to stop it? Do I have to > call viewer->stopThreading() after calling setDone? Setting viewer->setDone(true) shou

Re: [osg-users] Extending the osgViewer::StatsHandler graph

2009-03-12 Thread Robert Osfield
Hi Alex, There are three parts to stats - the stats storage, gathering and the stats display. The osg::Stats class is a thread safe container for storing collected stats data, and various OSG classes can have Stats objects attached to them, such as osg::Camera and osg::View. The various traversa

Re: [osg-users] switch between two camera

2009-03-12 Thread Roland Smeenk
benbao wrote: > what is the best way to switch between 2 cameras to render? > Each camera corresponding to a point of view, I need to render only one > camera at once. > You can add different osg::CameraViews to a scene and use the CameraViewSwitchManipulator to toggle between predefined cam

Re: [osg-users] Bug in RenderBin (?)

2009-03-12 Thread Paul Melis
Christof Krüger wrote: Hi, I'm new to OpenSceneGraph and not sure if I get everything right. I get crashes with Visual Studio 2005 static build after the main function returns. The crash occurs while the static s_renderBinPrototypeList is destructed. While debugging, I have found something su

Re: [osg-users] OpenFlight Models?

2009-03-12 Thread Volker Walkiewicz
Hi Jason, We have a few relatively small demo terrains in OpenFlight format for download: http://www.triangraphics.de/index.php?1=Download&l=eng The Boston model is a small urban city model. You can use them for demonstration purposes but not commercially. If you should need anything larger,

[osg-users] memory management incompatibility?

2009-03-12 Thread Mojtaba Fathi
Hi all I'm using OSG 2.8 dll's for VS80 in my application. After some malloc/realloc and free operations, I get messages like this Free Heap block ... modified at ... after it was freed. I think the problem arises from memory management incompatibility between my app and OSG dll's. Is there any