Re: [osg-users] Implementing clone() on class derived from osg::Geometry and osg::MatrixTransform

2011-12-12 Thread Filip Arlet
Hi, clone method is virtual and should return osg::Object*. you can dynamic cast (or even static cast if you are sure) to PiGeometry*. How can I force the program to call PiFaceGeometry::clone() if this is only a child of object, on which I called clone()? I am sorry If this question is

Re: [osg-users] Updated to OSG 3.0.0 - asGroup() returning zero.

2011-12-12 Thread Alberto Luaces
Shawn Kennedy writes: Hi, We use OSG for one of our products, and I recently upgraded it from 2.6.0 to 3.0.0. We are now running into a problem where a Node-asGroup call which once returned non-zero is now returning zero. I'm having difficulty debugging the issue and I'm wondering if

Re: [osg-users] Texture image memory leak issue

2011-12-12 Thread Filip Arlet
Hi, if you check your program on memory leaks (for example with visual leak detector) and don't find any leaks, it's probably fine. The problem is in memory management. There are many things that can cause increasing memory: 1) Creating any type of object or buffer on GPU is slow operation, so

Re: [osg-users] Building

2011-12-12 Thread Marius Kintel
On Dec 10, 2011, at 23:01 PM, Michael W. Hall wrote: I have taken the OSGViewerQT example program and have tried to break it into a nice example for myself. I did something similar and put it here: https://github.com/kintel/QOsgWidget Since it's a Qt app, it uses qmake, but apart from that I

Re: [osg-users] OSG and OpenGL rendering does not coincide

2011-12-12 Thread Sergey Polischuk
Hi IIRC osg by default tweaks projection matrix depending on window aspect ratio, you can set desired behavior with camera-setProjectionResizePolicy(...) Also you can check if viewport is actually same (there can be some difference because of window decoration or something) 01.12.2011, 23:33,

Re: [osg-users] (no subject)

2011-12-12 Thread Sergey Polischuk
Hi, Short answer: there are no simple way, You should get all drawables, grab all primitivesets and set instance count for them, write shaders that make use of instanceID to calculate vertex position. also with instanced drawing you should disable display lists, so for performance reasons make

Re: [osg-users] User clip planes and shaders

2011-12-12 Thread Sergey Polischuk
Hi If you need to get same result as opengl FFP, you should add following line in your vertex shader: gl_ClipVertex = gl_ModelViewMatrix * gl_Vertex; IIRC you need #version 120 to use this. Then all clip planes enabled via glEnable would work with shaders 07.12.2011, 22:36, Dave Jones

[osg-users] Creating flare or shining star with osg

2011-12-12 Thread tolga yılmaz
Hi all; After several tries to post this mail to the group, i dont take it long: I am developing a flight simulation. For some reason i have to create a chaff flare just like an F-16 throws. It should be too bright but doesnt has to lighten another objects in the scene. Smoke trail animation path

Re: [osg-users] window position and size

2011-12-12 Thread Guy Volckaert
you caj also use the environment variable OSG_WINDOW, e.g.: set OSG_WINDOW = 40 40 640 480 Note: space delimited. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44341#44341 ___ osg-users mailing

Re: [osg-users] Texture image memory leak issue

2011-12-12 Thread Poirier, Guillaume
Thanks for your input. I've upgraded from OSG 2.9.8 to 3.0.1 and the issue seems to be gone... -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Filip Arlet Sent: December-12-11 3:56 AM To:

Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-12-12 Thread Ethan Fahy
Object rotation is the last piece of this puzzle. When on object is placed on a geocentric terrain using the methods outlined in this thread, the object always appears to be oriented correctly upwards with respect to the center of the earth. However I'm not sure how it is being oriented with

[osg-users] attachMoveCallback memory leak?

2011-12-12 Thread Gianni Ambrosio
Hi All, testing my code I realized the following code generates memory leaks. Code: osgWidget::Canvas w(test); w.attachMoveCallback(); BOOST_CHECK_EQUAL(true, false); If I remove the attachMoveCallback() line I don't have leaks. Lookig at OSG code it seems the callback object is insert

Re: [osg-users] Setting modelview matrix withviewer.getCamera()-setViewMatrix(modelViewMatrix) not working

2011-12-12 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Jaun, A couple of suggestions here... 1) look at the source code for setViewMatrixAsLookAt(...) to understand what it is doing with the input to create the view matrix. It calls a method makeLookAt(...) which creates an orthonormal basis in the rotation portion of the matrix from the

[osg-users] Bugs on Mac OS X (Lion)

2011-12-12 Thread Tobias Ottenweller
Hello everyone, I've found three bugs while using OpenSceenGraph while running on Mac OS X Lion (10.7.2). I'm posting them all in this message. Hopefully this is ok. 1 - osgViewer::Viewer Setting up a viewer without calling 'setUpViewOnSingleScreen()' will display the current scene on

Re: [osg-users] [vpb] Placing an object on a UTM file generated with osgdem

2011-12-12 Thread Chris 'Xenon' Hanson
On 12/12/2011 8:37 AM, Ethan Fahy wrote: Object rotation is the last piece of this puzzle. When on object is placed on a geocentric terrain using the methods outlined in this thread, the object always appears to be oriented correctly upwards with respect to the center of the earth.

Re: [osg-users] Reading osg files with images and xml files from archives on Android

2011-12-12 Thread Thomas Hogarth
Hi Again 2. I use osgDB XmlPasser quite a bit for simple meta data stuff. Is there a way to read an xml file from and archive? I usually read my xml files like so So I solved one of my problems, I used the present 3d plugin as inspiration to write a simple plugin to wrap loading xmlinput

Re: [osg-users] Reading osg files with images and xml files from archives on Android

2011-12-12 Thread Jean-Sébastien Guay
Hi Tom, I now just have the issue that images referenced by .osg files are not loaded from the archive, anyone have any advice? The images are referenced relative to the .osg e.g. image\\diffuse.png Have you seen Terry Welsh's thread on developing a virtual file system plugin so that a zip

[osg-users] osg threading model

2011-12-12 Thread Vijeesh Theningaledathil
Hi, Excuse me for posting this question as I'm just a beginner in the computer graphics. Which threading model will give the best performance in a dual core computer with Nvidia Quadro graphics card. Also I have a doubt regarding the makeRotate for camera rotation. If I use pitch,roll, yaw