[osg-users] [osgPlugins] Visual C++ Runtime Error in osg 2.9.9 ive uncompress

2010-09-23 Thread Florian Kolbe
Hi, I got a (sporadic) MS VC Runtime Error (MS VS 2008, Config RelWithDebInfo) in OSG 2.9.9 as follows. The file was created with: Code: osgconv abc.dae abc.ive -O compressed Callstack of the runtime error: Code: > > osgdb_iverd.dll!ive::DataInputStream::DataInputStream(std::basic

[osg-users] osgWidget

2010-09-23 Thread lucie lemonnier
Hi, I use VRJuggler and OSG to create an application on a VR system and I want to use osgWidget. But VRJuggler uses osgUtil::SceneView instead of osgViewer, I wanted to know if it is possible to use osgWidget with osgUtil::SceneView? Thank you! Cheers, lucie -- Read this topic

Re: [osg-users] Load texture in *.obj

2010-09-23 Thread John Kush
Thank very much! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31959#31959 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce

[osg-users] [osgPPU] CubeMap reflection

2010-09-23 Thread Vincent Honnet
Hi, I'm not very experienced with shaders and I'm trying to write a reflection shader for the cubemap exemple. I tried to compute the normals and so on, but I don't get the result I'm expecting. Do have someone a shader (and the modified c++ source code) that is working in this demo ? Thanks

Re: [osg-users] Load texture in *.obj

2010-09-23 Thread John Kush
Thank very much! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31960#31960 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce

Re: [osg-users] Load texture in *.obj

2010-09-23 Thread Javier Taibo
If you build your models in Maya, you can try the Maya2OSG exporter in http://maya2osg.sourceforge.net Texture coordinates and texture transformations are exported to OSG file. Best regards, Javier Taibo. On Thu, Sep 23, 2010 at 12:10 AM, John Kush wrote: > Hi, > > I'm loading a sphe

[osg-users] Remove textures and texture coorindates.

2010-09-23 Thread Joakim Simonsson
Hi, Is this the correct way to do it? Remove all textures from a StateSet: ss->getTextureAttributeList().clear(); ss->getTextureModeList().clear(); Remove all texture coordinates from a Geometry: geometry->getTexCoordArrayList().clear(); -- Joakim Simonsson

Re: [osg-users] Efficient representation of triangulation.

2010-09-23 Thread Robert Osfield
Hi Giulio, On Wed, Sep 22, 2010 at 5:41 PM, Giulio De Vecchi wrote: > Hi, >  in my application I have a numerical module that create 3d objects and their > meshing (triangulation). What I would like to do is to render these objects > in the fastest possible way. Something like: >  - write in a

Re: [osg-users] [osgPlugins] Visual C++ Runtime Error in osg 2.9.9 ive uncompress

2010-09-23 Thread Robert Osfield
Hi Florian, Does the problem exist when using models form the standard OpenSceneGraph-Data set? i.e. osgconv cow.osg cow.ive -O compressed I have just done this test on my Linux system and it works fine, and I'm able to run "osgviewer cow.ive" just fine. FYI, very little has changed with the .i

Re: [osg-users] Efficient representation of triangulation.

2010-09-23 Thread Alberto Luaces
"Giulio De Vecchi" writes: > Hi, > in my application I have a numerical module that create 3d objects and > their meshing (triangulation). What I would like to do is to render these > objects in the fastest possible way. Something like: > - write in a raw array the list of the vertex of the t

Re: [osg-users] Remove textures and texture coorindates.

2010-09-23 Thread Robert Osfield
Hi Joakim, I have never personally attempted to do these specific steps, but I guess it should work if non const get methods for the containers are available. Have you tried it? Robert. On Thu, Sep 23, 2010 at 9:04 AM, Joakim Simonsson wrote: > > Hi, > > Is this the correct way to do it? > > R

Re: [osg-users] [osgPlugins] Collada Plugin problem with SketchUp exported models...

2010-09-23 Thread Florian Kolbe
Hi, the current Code 2.9.9 uses daeReader::findInvertTransparency to determine transparency inversion. I am currently facing issues with missing transparancy on some of the objects I am exporting from SketchUp. Though I dought this is the issue, I was wondering if daeReader::findInvertTransp

[osg-users] OpenSceneGraph 2.9.9 problem with *.osgb

2010-09-23 Thread John Ivar Haugland
I compiled OpensceneGraph 2.9.9 (Visual Studio 2010, x64), and tried the following command osgconv cow.osg cow.osgb osgviewer cow.osgb The cow.osgb file is created but it is not possible to read it in again. The error message is InputStream: Failed to read from stream. At osg::Group osg::Group os

Re: [osg-users] Remove textures and texture coorindates.

2010-09-23 Thread Joakim Simonsson
On Thu, 23 Sep 2010 10:22:30 +0200, Robert Osfield wrote: Hi Joakim, I have never personally attempted to do these specific steps, but I guess it should work if non const get methods for the containers are available. Have you tried it? Yes, it is the non-const get methods. It seems to w

Re: [osg-users] OpenSceneGraph 2.9.9 problem with *.osgb

2010-09-23 Thread Robert Osfield
Hi John, Thanks for the testing, I've just reproduced this regression. I will dig into see where things went wrong. Robert. On Thu, Sep 23, 2010 at 9:49 AM, John Ivar Haugland wrote: > I compiled OpensceneGraph 2.9.9 (Visual Studio 2010, x64), and tried the > following command > > osgconv cow.

Re: [osg-users] Instanced geometry using a (non power of two)texture1D like a vertex buffer.

2010-09-23 Thread Juan Hernando
Hi Jordi, I think the problem is in this line of code in your vertex shader: vec4 pos= gl_Vertex+ vec4(texture1D(texturePos,(float(gl_InstanceID)/nInstances)).xyz,0.); I think that texels are placed in the [0..1] range using their centers and not the left edge as your code assumes. That means

Re: [osg-users] Instanced geometry using a (non power of two)texture1D like a vertex buffer.

2010-09-23 Thread Jordi Torres
Hi Juan, +0.5 did the trick! Anyway I will make tests with texelFetch1D and TBO's looking for a better performance. Thank you for the tips. Muchas gracias!! 2010/9/23 Juan Hernando > Hi Jordi, > I think the problem is in this line of code in your vertex shader: > > vec4 pos= gl_Vertex+ > vec4(

Re: [osg-users] Efficient representation of triangulation.

2010-09-23 Thread Giulio De Vecchi
Thanks a lot! Giulio -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31973#31973 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-op

Re: [osg-users] [osgPlugins] Visual C++ Runtime Error in osg 2.9.9 ive uncompress

2010-09-23 Thread Florian Kolbe
Hi Robert, thanks for the quick reply. For now, I am suspecting memory exhaustion since I just got the following crash as well (call stack does not seem to be very complete any more...). What speaks for this, it doesn't happen alle of the time... The scene graph has 7e6 vertices, Physical RAM

Re: [osg-users] Rotate camera around the scene in osgViewer - simple way?

2010-09-23 Thread Werner Modenbach
Hi Dženan, I don't know if it is still of interest for you. If not, maybe someone else can profit. Here is my solution for turning the camera arround the scene: osg::Vec3 achse; osg::Matrix rotation_matrix(view->trackball->getRotation()); if (orientation == Horizontal) { ac

Re: [osg-users] osgWidget

2010-09-23 Thread Jean-Sébastien Guay
Hello Lucie, I use VRJuggler and OSG to create an application on a VR system and I want to use osgWidget. But VRJuggler uses osgUtil::SceneView instead of osgViewer, I wanted to know if it is possible to use osgWidget with osgUtil::SceneView? I don't think anyone has done it yet. osgWidget::

Re: [osg-users] osgWidget

2010-09-23 Thread lucie lemonnier
Hi, In fact, I succeed to display widgets with osgUtil::SceneView replacing the first parameter "osgViewer::View" by 0 in osgWidget::WindowManager. I use my application in an immersive system (two screens) but my problem is that the widgets appears in each window representing each screen of my

Re: [osg-users] [osgPlugins] Collada Plugin problem with SketchUp exported models...

2010-09-23 Thread Florian Kolbe
Hi, OK, this works for me, I could do a submission at some point. My knowledge is: 1. invert for Google SketchUp <= 7.0 2. don't invert for Google SketchUp >= 7.1 3. findInvertTransparency does not always yield correct results Something along the lines (code for determining version not included):

Re: [osg-users] osgWidget

2010-09-23 Thread Jean-Sébastien Guay
Hello Lucie, In fact, I succeed to display widgets with osgUtil::SceneView replacing the first parameter "osgViewer::View" by 0 in osgWidget::WindowManager. I use my application in an immersive system (two screens) but my problem is that the widgets appears in each window representing each sc

Re: [osg-users] Application Verifier failure (on Windows) with getSampleOpenGLContext(...)

2010-09-23 Thread Jesper D. Thomsen
I did a further bit of testing, and it seems to be a driver-related problem. On the single ATI machine (winXP) I have available osgviewer runs fine under application verifier. On my main development machine (Vista64, FX2700M) I am able to get osgviewerd.exe to pass Application Verifier if I drop

Re: [osg-users] osgWidget

2010-09-23 Thread Jeremy Moles
9On Thu, 2010-09-23 at 09:30 +0200, lucie lemonnier wrote: > Hi, > > I use VRJuggler and OSG to create an application on a VR system and I want to > use osgWidget. But VRJuggler uses osgUtil::SceneView instead of osgViewer, I > wanted to know if it is possible to use osgWidget with osgUtil::Scen

Re: [osg-users] osgWidget

2010-09-23 Thread Jean-Sébastien Guay
Hi Jeremy, In fact, I had always lamented the WindowManager's need for a View pointer, but I needed to use it for picking and so it developed thusly. I can look at replacing this dependency with manually running an intersector from the camera. If this is the only need for a View, it should b

Re: [osg-users] osgWidget

2010-09-23 Thread Jeremy Moles
On Thu, 2010-09-23 at 10:32 -0400, Jean-Sébastien Guay wrote: > Hi Jeremy, > > > In fact, I had always lamented the WindowManager's need for a View > > pointer, but I needed to use it for picking and so it developed thusly. > > I can look at replacing this dependency with manually running an > i

[osg-users] [osgPlugins] How to use PlugIns

2010-09-23 Thread Tomas Longo
Hi @ all, i have a question about the use of a plugin after it was build. Do I have to rebuild OSG in some manner or how do I notify OSG that there´s a plugin? In my case I need the collada PlugIn. Thanks in advance. Cheers, Tomas -- Read this topic online here: http://forum.op

Re: [osg-users] OpenFlight: Reading the "Extension Record"

2010-09-23 Thread Brad Colbert
Paul, Thanks so much. That helps point me in the right direction. Hopefully adding the code will be straight forward. -B > -Original Message- > From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- > boun...@lists.openscenegraph.org] On Behalf Of Paul Martz > Sent: Wedne

Re: [osg-users] osgWidget

2010-09-23 Thread lucie lemonnier
Hi, Thank you Jean-Sébastien for your devices. Indeed, I put the WindowManager's ortho camera under the root of my scene graph. With VRJuggler, I can't access to the cameras because the cameras aren't included in the scene graph. So I don't know how to do this. Would you have other suggestions?

Re: [osg-users] [osgPlugins] How to use PlugIns

2010-09-23 Thread Gordon Tomlinson
You have to build and its dependencies http://www.openscenegraph.org/projects/osg/wiki/Support/KnowledgeBase/Collada __ Gordon Tomlinson gor...@gordontomlinson.com IM: gordon3db...@3dscenegraph.com www.vis-sim.com

Re: [osg-users] OpenSceneGraph 2.9.9 problem with *.osgb

2010-09-23 Thread Robert Osfield
Hi John, et. al, On Thu, Sep 23, 2010 at 10:11 AM, Robert Osfield wrote: > Thanks for the testing, I've just reproduced this regression.  I will > dig into see where things went wrong. I've spent the whole day chasing this problem down. Turned out to be an issue of double setting of an id map w

Re: [osg-users] [osgPlugins] How to use PlugIns

2010-09-23 Thread Tomas Longo
hhh, thank you very much for your ultra lightspeed fast reply :D This is what I was looking for!!! Thanks. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31991#31991 ___ osg-users mailing list

[osg-users] Creating a Visible Pivoting Vector/Cylinder

2010-09-23 Thread Richard Redding
Hi, I'm looking to write the code for a vector/a small diameter cylinder to pivot from the bottom, and traces to different points at the top with relation to data collected by a user interface device. Specifically I am tracking an IR LED with OSG in a cubic set space and would like a visible ve

Re: [osg-users] osgWidget

2010-09-23 Thread Jean-Sébastien Guay
Hello Lucie, Indeed, I put the WindowManager's ortho camera under the root of my scene graph. With VRJuggler, I can't access to the cameras because the cameras aren't included in the scene graph. So I don't know how to do this. Would you have other suggestions? The SceneView has a getCamera(

Re: [osg-users] Creating a Visible Pivoting Vector/Cylinder

2010-09-23 Thread Tom Pearce
Hi Richard, Here's what I would do to start: 0) Read the QuickStartGuide if you haven't already. 1) Make two Geodes, one with a Cylinder as the Drawable, and the other with a Cone, (these are convenience classes which the osg provides) and add each Geode as the child of a MatrixTransform or Po

Re: [osg-users] CompositeViewer issues

2010-09-23 Thread Brad Huber
Robert, Attached is a simple stripped down app that demonstrates the problem. The program creates two windows (2 views total). The 1st has a HUD and the 2nd doesn't. Resizing the 2nd window causes the HUD in the first window to resize (it shouldn't). I am reliably producing this bug on my Win7

[osg-users] OSG 2.9.9 - Problem building osgSim

2010-09-23 Thread Erin Morrow
Hi, When building 2.9.9 the following warnings/errors are generated: 1>SphereSegment.cpp 1>.\SphereSegment.cpp(1368) : warning C4091: '' : ignored on left of 'double' when no variable is declared 1>.\SphereSegment.cpp(1368) : error C2143: syntax error : missing ';' before 'constant' 1>.\SphereS

Re: [osg-users] OSX Install Locations

2010-09-23 Thread David Guthrie
2.8.3 and older use. /Library/Application Support/OpenSceneGraph/PlugIns/osgPlugins-{version}/ In your case {version} will be 2.9.9. I'm not sure that changed in 2.9.x, but I would try that. ... Thank you! Cheers, David -- Read this topic online here: http://forum.openscenegr

[osg-users] isCurrent() doesn't really work.

2010-09-23 Thread David Guthrie
I was looking at the isCurrent call and way contexts and made current and released. isCurrent is not virtual, and simply checks to see if the thread on which the context was made current matches the current thread. Every OpenGL api I've looked at provides a way to get a handle to the active co

Re: [osg-users] OpenSceneGraph 2.9.9 problem with *.osgb

2010-09-23 Thread John Ivar Haugland
Robert, I did an svn update. Yes, this did indeed fix the problem! Excellent!! Good to have a working binary file format again :) Thanks a lot for a very nice visualization library and all the hard work! John Ivar Haugland On Thu, Sep 23, 2010 at 6:15 PM, Robert Osfield wrote: > Hi John, et.

Re: [osg-users] OSG 2.9.9 - Problem building osgSim

2010-09-23 Thread Erin Morrow
Hi, So this issue (and many others) arises from the GL.h file that QT installs in place of the default windows version. Reverting to the "vanilla" GL.h file fixes it. Does anyone understand why QT does this and are there any tips for making QT play nice with OSG? Thank you! Cheers, Erin

[osg-users] Build error on OS X in examples_osgviewerCocoa

2010-09-23 Thread Eduardo Poyart
Hello, I've sent this e-mail to osg-users@lists.openscenegraph.org but I didn't receive it on the list. I'm re-sending it just in case. Here is my problem: When building OpenSceneGraph on OS X 10.6.4 and creating application bundles, I have the error below, on the examples_osgviewerCocoa target.

Re: [osg-users] Problem with samples

2010-09-23 Thread Farshid Lashkari
Hi, I've also been experiencing the fullscreen issue with nVidia cards on Windows 7. Just wanted to let you know that I found a workaround. When creating the OpenGL context, I changed the swap method from WGL_SWAP_EXCHANGE_ARB to WGL_SWAP_COPY_ARB. This completely solved the issue for me. Hopefu

Re: [osg-users] Windows 7 Aero Color Scheme issue

2010-09-23 Thread Magnus Kessler
On Thursday 08 July 2010, Martin Naylor wrote: > Hi, > Yeah its certainly Aero... > I two have the same issue, disabling Aero sorts its out, but mine is on a > single screen. > Alt-Tab will make it work as well. > Have a look here http://www.opengl.org/pipeline/article/vol003_7/ > > Are we using G