[osg-users] OSG Format : some explanations

2011-08-02 Thread Thomas Canipel
Hi all, Just getting into a new convert for an exporter : What I need : vertexPosition vertexTextureCoords vertexNormals indices I was able to find the vertexPosition easily, as for the texture coords and the normal ( taking for example the cow.osg) but I got an issue trying to deduce the

Re: [osg-users] OSG Format : some explanations

2011-08-02 Thread Thomas Canipel
Actually, the main thing is just to understand the way the .osg format is holding the informations. I dont know yet what I will have to export so as the main information to show something (doesnt matter of the tech) are the positions,the coord,the normals and the indices I tried to understand

[osg-users] ON_DEMAND Rendering, OSG 2.8.0 released

2011-02-02 Thread Thomas Canipel
Hi, I need to use the ON_DEMAND rendering but I couldnt find a wawy to make it works wih the realeased 2.8.0, before I was using checkneedToDoFrame to see if I was really in need of calling the frame() function but it does not exist anymore, the env variable doesnt seems to be usable too so

[osg-users] automatically minimize the viewer window

2010-07-06 Thread Thomas Canipel
Hi, Is there a way to modify the behavior of the window, like minimize it , programmatically ? Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29760#29760 ___ osg-users

Re: [osg-users] DrawCallBack Screeshot problem

2010-07-01 Thread Thomas Canipel
Hi, When I run the app without taking the screenshot it works fine, thats why I dont get it ... I can see correctly my scene in the viewer , but when I take the screenshot with the callback there is this effect .. Thank you! Cheers, Thomas -- Read this topic online here:

Re: [osg-users] DrawCallBack Screeshot problem

2010-06-30 Thread Thomas Canipel
Hi, Could it come from my graphic card ? , Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29553#29553 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] DrawCallBack Screeshot problem

2010-06-25 Thread Thomas Canipel
Hi, I am actually trying to find another way to create a screenshot since using the osgscreencapture (pbuffer) doesnt work properly. I tried to do a simple DrawCallBack where I will call readPixels and write the image on the disk, the viewer is setupInWindo of the size 1024x1024 , and so the

Re: [osg-users] scene data and manipulator

2010-06-11 Thread Thomas Canipel
there is no ''right' way to set the object to the scene, but i usually set a group to the sceneData and after that I addChild to the group . Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28838#28838

Re: [osg-users] DataPager issue

2010-06-11 Thread Thomas Canipel
Hi rober, is there a solution to clear the memory of the datapager ? since the function clear() doesnt seem to release the information Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28839#28839

[osg-users] Scaling an Object - Normals

2010-06-11 Thread Thomas Canipel
Hi, I would like to know how I can re-scale the normal of an object loaded after scale the object ? Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28840#28840 ___

Re: [osg-users] Small test program gets segmentation fault when doing own viewer loop in Qt environment

2010-06-10 Thread Thomas Canipel
Hi , I havent check the example of integration linked to Qt yet but I am usingOsg embedded n Qt since a long time . A solution that work fine is to create your own class that extend from QGLWidget qnd has a member osgViewer::Viewer, then you add a timer who is connected to the signal

Re: [osg-users] scene data and manipulator

2010-06-10 Thread Thomas Canipel
its normal that when you set an osg::Group as the SceneData that when you add a child the viewer is notify and update the graphic, imaging that you have to create 1000 of objects, if you have to recreate a a root and set it to the viewer each time its a pain... , for the detail you can lok

Re: [osg-users] old QOSGWidget and new trunk Manipulators : mouse event problem

2010-06-10 Thread Thomas Canipel
Try to use the function grabMouse() in the construstor of your viewer. Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28805#28805 ___ osg-users mailing list

Re: [osg-users] DataPager issue

2010-06-09 Thread Thomas Canipel
hi, I was using the last trunk version of today ( i dont have the version number right now ...) something really weird was happening because even by using a osgviewer and setting a large file the datapager was not working and was increasing the memory ... after removing the environment

Re: [osg-users] DataPager issue

2010-06-09 Thread Thomas Canipel
Hi robert, I have done a simple case using the osgscreencapture where there is a memory problem , here is the contents : main , osgscreencapture (I had only one function to send back the image ) , and screenshot (which is a custom viewer (move the camera around the scene) ) the data for this

[osg-users] Near Far plan

2010-02-26 Thread Thomas Canipel
Hi, I have actually problem with the far/near plan, by using the osgEarth, I want to reprensent for example an object on the earth that could be of the size of 1meter, of course by computing the near plan and the far plan by moving close to the box the object is clipped, after reading some

Re: [osg-users] Near Far plan

2010-02-26 Thread Thomas Canipel
Thats what I did at the first place, just changing the nearfarMode at the runtime by analysing the camera position, but it works one time and then it doesnt change anymore, for example if I am very heigh its ok and then I zoom very close to the earth so i switch to the otehr property it works

Re: [osg-users] Near Far plan

2010-02-26 Thread Thomas Canipel
Wonderful :) it works perfectly by changing the Handler, in fact just resetting the ProjectionMatrixAsperspeccitve with the near/far plan value do the trick, but I still dont get why changing the farMode or the camera at runtime dont work.. Thank you! Cheers, Thomas -- Read

[osg-users] [3rdparty] OSG Volume / FixedFunctionTechnique

2009-12-29 Thread Thomas Canipel
Hi, I would like to know what is the difference between the RayTracedTechnique and the FixedFuntionTechnique, apparently in the second there is no shader, this function correspond to a raycasting technique ?, so in this technique we can only play with the Alpha property to modify the display .

[osg-users] [3rdparty] osg::image / Create a 3d Image Rectangular !

2009-12-21 Thread Thomas Canipel
Hi, I have try to create some 3d image using osg::image, and it seems that when you create an image with width=height=depth the volume created is good, but when I try to create an image with width!=hieght!= depth , when I fill the image with unsigned char* data, the pixel is not at the right

Re: [osg-users] [3rdparty] osg::image / Create a 3d image

2009-12-16 Thread Thomas Canipel
yes the allocate Image is not necessary it is override by the setImage(), I was missing the size of the channel ;) Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=21588#21588

Re: [osg-users] [3rdparty] osg::image / Create a 3d image

2009-12-16 Thread Thomas Canipel
In order to use a limit of 255, I needed to use GL_UNSIGNED_BYTE (char) Code: int height=100; int width=100; int length=100; const long size = width*height*length*3; unsigned char* data = (unsigned char*)calloc(size,sizeof(unsigned char));

[osg-users] [3rdparty] OSG Volume / Transfer Function

2009-12-15 Thread Thomas Canipel
Hi, I am actually trying to understand the OSG Volume Example, The alpha coefficient allow me to play with the extinction coefficient, but have problem to use the transfer function. What does represent the first parameter when we set a new Color ? transferFunction-setColor(value,

[osg-users] [3rdparty] osg::image / Create a 3d image

2009-12-15 Thread Thomas Canipel
Hi, With osg::image normally you can setup a 3d image , but there is a problem for the length someone know what is wrong with these declaration : I want to create an image of 100x100x100 Code: //creation of the data int height=100; int width=100; int length=100; const long size =