[osg-users] [3rdparty] osgWidget and rotation

2012-08-28 Thread Miguel Lokida
Hi, I want to use an osgWidget to draw a compass. So, I need to use the rotation. The problem is that the origin of the osgWidget is at the bottom left and not at the center of the widget. How can I specify the center of my widget (since set Origin only move the widget) in order to have a

Re: [osg-users] [3rdparty] osgWidget and rotation

2012-08-28 Thread Miguel Lokida
So i see what you mean. But how can I declare the position of my widget relative to the parented window ? Here's the code I use: [code] const unsigned int MASK_2D = 0xF000; // note: osgViewer::Viewer* ptrViewer; // note: osg::ref_ptrosg::Group _rootScene; // note:

Re: [osg-users] Multi GPU Rendering

2011-08-22 Thread Miguel Lokida
I have tested osgViewer on the pc with two GPU card, windows 7 and osg 2.8.3. When I display the statistics, I can see the 2 GPUs. And, If I move the scene from one screen to the other, I can see the load of the GPUs that change. But, I have some problem with the mouse. Sometimes, using the

Re: [osg-users] Multi GPU Rendering

2011-08-19 Thread Miguel Lokida
Hello, Thank you for your reply. I have one computer and inside, there's 2 GPU card with. Each GPU cards has 2 video outputs. I would like to use 4 screens (connected to the 2 GPU cards) and divide my camera viewport in 2. Like this, I could see my scene on 4 screens. I think that the firt

Re: [osg-users] Multi GPU Rendering

2011-08-19 Thread Miguel Lokida
Hi, For now, I haven't yet tested the multiGPU on the computer. It is a computer using windows 7 and 2 Nvidia GTX 590. The aim would be to use 2 or 3 pc with 2 GPU card in each and display the result on a display wall. I have seen the osgCluster example and it seems to be a good way. The

[osg-users] Multi GPU Rendering

2011-08-18 Thread Miguel Lokida
Hello, I would like to know if OSG can benefit of a PC with several GPU ? I mean, Can we say this part will be rendered by GPU 1 and the other by GPU 2 ? Thank you. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42112#42112

Re: [osg-users] Vertices Selection

2011-07-25 Thread Miguel Lokida
Hello, Thank you for this infomation. I'll watch this. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41600#41600 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] Vertices Selection

2011-07-22 Thread Miguel Lokida
Hi, I would like to know if it is possible to selects vertices of an osg::Geometry and to transform them (translation and rotation). I know that it is possible to select objects (osgpick example) but don-t know about vertices. Is there an example or documentation dealing with vertices

[osg-users] Dragger Selection and osgManipulator question.

2011-05-26 Thread Miguel Lokida
Hi, I look at the osgManipulator example and since I have not found any information about Dragger and Selection I have a question about this technique. So, in the osgManipulator example, we can move, rotate... some geometries. But, What I would like to know is what is affected by theses

Re: [osg-users] Bug in AutoTransform ?

2011-03-08 Thread Miguel Lokida
Hello, So no solution for this behavior ? This is really annoying because I thought block this problem by not putting the geometry if its size is zero, but now it affects another object that no longer appears. Solutions are welcome. Thank you. -- Read this topic online here:

Re: [osg-users] Bug in AutoTransform ?

2011-03-04 Thread Miguel Lokida
I have found the problem but don't know where it comes from. So I have this: Root - positionAttitudeTransform - Group - AutoTransform - Geode1 - Geode2 When geode2 has a bound radius that is equal to zero, then nothing is displayed.

Re: [osg-users] Bug in AutoTransform ?

2011-03-04 Thread Miguel Lokida
Hi Robert, For me, using viewer.getCamera()-setCullingMode( viewer.getCamera()-getCullingMode() ~osg::CullSettings::SMALL_FEATURE_CULLING); make no difference. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=37329#37329

Re: [osg-users] Bug in AutoTransform ?

2011-03-04 Thread Miguel Lokida
In fact, I use one geode to display an object and a second geode to display the trajectory of this object. When the object doesn't move, the trajectory as a zero bounding radius. Moreover, I can't know if my objects will move or not. So I can't know if their trajectories will have a zero

[osg-users] Bug in AutoTransform ?

2011-03-03 Thread Miguel Lokida
Hi, I use OpenSceneGraph 2.8.2 on windows xp. I have a scene graph in which I have severals geodes (quads). The camera looks them at the top in an orthographic view (tested also in a perspective view). I have this structure : Root - PositionAttitudeTransform1-AutoTransform1-Geode1 Root -

Re: [osg-users] Bug in AutoTransform ?

2011-03-03 Thread Miguel Lokida
It is a scene whith several postionAttitudeTransform-AutoTransform-geode in the same viewer and the same camera. I mean that when I set set AutoScaleToScreen(true) for the autoTransformNode, Geode (a quad geometry with coords Vec3(-20, 20, 20), Vec3(-20, -20, 20), Vec3(20, -20, 20), Vec3(20,

[osg-users] Culling mask problem.

2011-02-14 Thread Miguel Lokida
Hi, I use osg 2.8.2 and I would like an advice on the problem that block me. I have this graph: transform1 | |___ geode1 | |___ transform2 | |__geode2 So, I have set this: int inheritanceMask =

Re: [osg-users] Culling mask problem.

2011-02-14 Thread Miguel Lokida
Hi Robert, (I have modified my graph in my last post because it was not clearly displayed.) So, I understand what you mean. I have made such graph because geode 2 follow geode1 transformations. I will try the solution to make geode1 and geode2 independents. Thank you. -- Read

[osg-users] SetTrackNode + nodeMask + parentalNodePaths = problem

2010-06-30 Thread Miguel Lokida
Hello, Here 's my problem. I have a scene with the root node, objectA and objectB. objectB is the child of objectA. I use setNodeMask for visibility. I use a nodeTrackerManipulator to follow objects. objectA and objectB are not visible at the beginning and, I would like the

[osg-users] OSG 2.8.2 X server crashed on Linux

2010-04-20 Thread Miguel Lokida
Hello, Here's my problem. I develop an application using OSG 2.8.2 under windows and Linux. On windows all is OK. But with Linux I have problems with severals computers. It is a centos 5 Linux. When I execute my programs the Xorg server crashed (but sometimes it works and I can have a black

[osg-users] transparency with multiple geometries

2010-03-03 Thread Miguel Lokida
Hello, In my scene, I have differents animated objects. Their size can change during animation and For example, I have 3 objects A,B and C. C can be include in A and A can be include in B After in the animation, B can be include in C and C can be include in A So, their order change and for

[osg-users] MatrixManipulator implementation

2010-02-05 Thread Miguel Lokida
Hi, I would like to use a MatrixManipulator in order to follow a node but without any automatic translation of the camera. Automatically only rotation is applied to follow the object. Of course when the user want to modify the view he can do it and the camera lets focus on the node. I think

Re: [osg-users] New 3DS reader/writer is ready to test

2009-12-18 Thread Miguel Lokida
Hello, I would like to know why face normals are use despite of vertex normals whereas there is if (_usePerVertexNormals) in ReaderWriter3DS.cpp ? Thank you -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=21662#21662

[osg-users] Texture Rendering Problem (unit texture ?)

2009-10-23 Thread Miguel Lokida
Hi, For a given texture, I want to use a specific unit texture. But with the given example code it does not work. When I set unitTexture = 0 it works. But when I set unitTexture =1 I have a deep green color affected to the cylinder. What 's wrong with my code. For me, it seems that everything

Re: [osg-users] Texture Rendering Problem (unit texture ?)

2009-10-23 Thread Miguel Lokida
It means that Shapes (cylinder, sphere, cone,...) Cannot be added to a geode. And, it means that if we want to use these sorts of shapes and affected them differents unit texture, we have to build them as a geometry ? I want to use differents texture units because I have seen that during

Re: [osg-users] Texture Rendering Problem (unit texture ?)

2009-10-23 Thread Miguel Lokida
Yes, I always add shapedrawable to a Geode. But I wanted to know if I could directly set a shape in a Geode. But no. For the problem osg::Texture::applyTexImage2D_load I have found the problem. I use a non power of two image. Thaht why it spend so much time in

[osg-users] How to avoid Z Fighting

2009-10-20 Thread Miguel Lokida
Hi, Here 's my problem. My scenegraph contains some big an little objects. But when rendering, I have some Z fighting with coplanar triangles and also, when I place my camera around a little object the znear is to big and my object is cutted. So I have used setNearFarRatio with 0.1. Like

Re: [osg-users] How to avoid Z Fighting

2009-10-20 Thread Miguel Lokida
Thank you for the glPolygonOffset. I haven't though about it. That works well. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18443#18443 ___ osg-users mailing list

Re: [osg-users] Rendering difference from osg and coin3D of a 3ds file

2009-10-15 Thread Miguel Lokida
Hi, I have not yet find why I have this rendering problem :( . If someone has an idea; that would be great. Thanks. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18289#18289 ___ osg-users mailing

Re: [osg-users] Different Size of a same geometry ?

2009-10-14 Thread Miguel Lokida
It is well a unit problem with my geometric object. :( So this thread can be deleted... Thanks. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18258#18258 ___ osg-users mailing list

[osg-users] Wrong Scale with readNodeFile ?

2009-10-13 Thread Miguel Lokida
Hi, I use [b]osg::Node* node = osgDB::readNodeFile()[/b] to load a 3ds file in openscenegraph but the scale does not seems to be ok. The geometry I use measure : height 40, length 125 and width 15. But When I get the radius of this node (just after the readNodeFile) I have this measure: 2609

Re: [osg-users] Compel a camera (using MatrixManipulator) inside a sphere

2009-10-02 Thread Miguel Lokida
A little up to see if someone can have an idea. Thanks ! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17805#17805 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] Compel a camera (using MatrixManipulator) inside a sphere

2009-10-01 Thread Miguel Lokida
Hi, Here's my problem. I have affected a nodetrackmanipulator to a viewer and a callback to the camera. I want is to compel my camera inside a sphere. So, in the callback method operator() I get the nodetrackmanipulator, get the position matrix mat from it using getMatrix(). Then I compute

[osg-users] osg::readNodeFIle and osg::Material

2009-09-29 Thread Miguel Lokida
Hello, When using readNodeFile method to charge an object, I have try to set a material on this node ( creating a stateset, addinf the material and attribute the stateset to the node). But, when it works for other geometry with readNodeFile, the material is not on the geometry. Is it

Re: [osg-users] osg::readNodeFIle and osg::Material

2009-09-29 Thread Miguel Lokida
Ok. So this mean that it is possible. Thank you. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17724#17724 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] qt + osgviewer::viewer

2009-09-25 Thread Miguel Lokida
Hi, I have created a widget qosgv that inherits from QWidget and osgViewer::Viewer. When I use this widget in my application, My scene appears normally. But, When I use the method setVisible(bool) and that I put true and false, My scene has completly disappeared from the qosgv widget (I only

Re: [osg-users] qt + osgviewer::viewer

2009-09-25 Thread Miguel Lokida
I have discovered that the aspectRatio from the frustum of the perspective projection matrice was NAN. So I have looked at the width and height of my qosgv widget and the width is at zero (but the height is ok). I dont't know yet why the width of my qosgv widget has changed and not the height

[osg-users] problem with Texture2D

2009-09-21 Thread Miguel Lokida
Hi, I use a texture2D on a sphere but the problem is that the texture does not well fit on the sphere. There is a big line at the junction of the map. Have you yet seen this kind of problem or not ? What is the solution ? Thank you! Cheers, Miguel -- Read this topic online

[osg-users] Rendering problem

2009-09-17 Thread Miguel Lokida
Hi, I have built a geometry in which I have defined vertices, faces, normals per face and color per vertex. When I use this code in a simple openscenegraph progam with only one node (the geometry) the rendering is perfect. But, when I use it in my application scenegraph, the color is

[osg-users] Give a specific color/material to a portion of a shape/geometry

2009-09-16 Thread Miguel Lokida
Hi, I have try to find a specific solution to my problem but I really don't how to do it. I have an osg shape (I suppose that it could work on a 3d model from a 3D file). I would like to give a specific color to a portion of a shape (along an axis) using a begin distance and stop distance

Re: [osg-users] Give a specific color/material to a portion of a shape/geometry

2009-09-16 Thread Miguel Lokida
Here 's what I obtain. But I would like to use FILL despite of LINE for the rest of the shape. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17417#17417 attachment: ScreenShot002.jpgattachment:

Re: [osg-users] Give a specific color/material to a portion of a shape/geometry

2009-09-16 Thread Miguel Lokida
I try to use a 1DTexture (basing on the example) but when I want to apply it to a osg::cone, I can 't apply it correctly from the top to the basis of the cone (without any repeat or mirror) . I try to use texgen but the map didn't fit on the surface cone and, I don't find any example about

Re: [osg-users] shape, shape drawable and geode modification

2009-09-15 Thread Miguel Lokida
Thanks a lot. That works ! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17371#17371 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Transparency and osg::Cone (shape)

2009-09-15 Thread Miguel Lokida
The lonely thing I would like to know is if I should make a 2 passes rendering using a FBO or if I add the geometry twice in the scenegraph and for each of them, make a transparent for the front and then a transparent for the back. Thank you. -- Read this topic online here:

[osg-users] shape, shape drawable and geode modification

2009-09-14 Thread Miguel Lokida
Hi, Here 's my problem. I have a cylinder shape that I have added to my scenegraph. here a sample code: I have declared instances in the headers. And I can display the cylinder. Code: rp_cylinder = new osg::Cylinder(); rp_cylinder-setHeight(1.0f); rp_cylinder-setRadius(100.0f);

[osg-users] [3rdparty] Transparency and osg::Cone (shape)

2009-09-11 Thread Miguel Lokida
Hi, Here 's my problem. I have an osg::Cone (inherit from shape) and I would like it to be transparent. I have used some example using blendFunction but the problem is that the cone is a little transparent but some slices all along the cone appear. If someone know how to make it fully

Re: [osg-users] Transparency and osg::Cone (shape)

2009-09-11 Thread Miguel Lokida
Hi, Thank you for the answer. But is-it easy to render twice with openscenegraph ? I am new with it and don't know how to do. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17272#17272 ___