Re: [osg-users] Texture2D format problem

2008-02-25 Thread Vincent Bourdier
exist. (Be carefull to the depth of the Image) If someone have anther solution, I'll be interested. Thank you. 2008/2/21, Vincent Bourdier [EMAIL PROTECTED]: Hello I am trying to put 2 Texture2D on the same geometry. The backgroud texture is a .jpg file and the foregroud texture is a .png

Re: [osg-users] Texture2D format problem

2008-02-25 Thread Vincent Bourdier
it in an awkward way that is confusing things. Robert. On Mon, Feb 25, 2008 at 8:26 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hello, I will make my own answer : I used osg::Image to obtain the unsigned char* data array, and i use it to melt the two pictures in one. data[n

Re: [osg-users] Texture2D format problem

2008-02-25 Thread Vincent Bourdier
. Robert. On Mon, Feb 25, 2008 at 9:01 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi Robert. Perhaps i'm not very clear in what i intend to do : I want to create a sphere to simulate the earth. for texturing it, i use 2 textures : one of the sea and lands, one of the clouds. the second

[osg-users] Using Particle : how to add particle group to the scenegraph ?

2008-02-27 Thread Vincent Bourdier
Hi, I'm trying to make a Particle System. It looks easy but I have a little problem : my ModularEmitter, my ParticleSystemUpdater and my geode are on the same group. To have the particles on the viewer, I must add this group as a child of the root group. If I put it child of another group,

Re: [osg-users] Using Particle : how to add particle group to the scenegraph ?

2008-02-28 Thread Vincent Bourdier
. Delport [EMAIL PROTECTED]: Hi, Vincent Bourdier wrote: Hi, I'm trying to make a Particle System. It looks easy but I have a little problem : my ModularEmitter, my ParticleSystemUpdater and my geode are on the same group. To have the particles on the viewer, I must add this group

Re: [osg-users] Complete darkness

2008-02-29 Thread Vincent Bourdier
Maybe just a setnumlight(0)... to replace default light by yours. Vincent 2008/2/29, Wojciech Lewandowski [EMAIL PROTECTED]: Sounds like default Light Model ambient Look at OpenGL docs for glLightModel GL_LIGHT_MODEL_AMBIENT. Cheers, Wojtek - Original Message - From: Necdet

Re: [osg-users] [Fwd: Re: to draw landscapes beginning from a matrix]

2008-03-03 Thread Vincent Bourdier
Hi Aurora, With his proposition, you can create the color that you need. Setcolor(vec4) uses RGBA (Red, Green, Blue, Alpha) color (if i remember well) so put A to 1.0 (opacity) , and the RGB can be defined using the function he gives to you... you can use it for each component if you want a

Re: [osg-users] [Re: to draw landscapes beginning from a matrix]

2008-03-03 Thread Vincent Bourdier
)); terrainNode-setColorTransferFunction(0, tf.get()); } } how can I color every altitude with different color? I apologize for the trouble Thanks Aurora Vincent Bourdier ha scritto: Hi Aurora, With his proposition, you can create the color

[osg-users] Using NodeMask...

2008-03-03 Thread Vincent Bourdier
Hi, I am working on a hide/show function, and I've read some examples concerning NodeMask. It looks like a good and easy solution to do that, but I don't understand why it doesn't work on my application : int inheritanceMask = (osg::CullSettings::ALL_VARIABLES

Re: [osg-users] Using NodeMask...

2008-03-03 Thread Vincent Bourdier
toggle the earthGroup NodeMask between 0 and 0x. it is not what i done here : ? earthGroup-setNodeMask(0x1); Is my code good concerning the camera ? is it a viewer parameter ? (to set cullMask) I preferer avoid using switch node for the moment, it would add nodes to the graph, and if

Re: [osg-users] Using NodeMask...

2008-03-04 Thread Vincent Bourdier
like 0x. Hence with your current setup you still will be able to see all the nodes. Cheers, Art --- Vincent Bourdier [EMAIL PROTECTED] schrieb: toggle the earthGroup NodeMask between 0 and 0x. it is not what i done here : ? earthGroup-setNodeMask(0x1); Is my

Re: [osg-users] Camera and light problem

2008-03-06 Thread Vincent Bourdier
Hi Jon If you add your transform to the camera, it is normal that the light follow the camera.. If you want to keep the light at the same position, you have to attach it near the root node, and attach the rest of the scene a lower levels than it. Each child inherit from its parents, so if you

Re: [osg-users] obj normals

2008-03-07 Thread Vincent Bourdier
Hi , I don't know if an easy way exist, but you can get your normalArray and correct it... but you have to know exactly the vertices number to get normal and invert it... Vincent. 2008/3/7, lorenzo bronzin [EMAIL PROTECTED]: hi robert, loading a wavefront .obj file is there a way to

[osg-users] osgFX::Cartoon (setOutlineLineWidth)

2008-03-07 Thread Vincent Bourdier
Hi, I'm using osgFX::Cartoon to obtain an effect on the edges. I want to highlight edges of a node. (geode) I've already tried osgFX::Scribe, but I prefere Cartoon edges because it compute only the necessary edges and not all. So, my problem is when I use Cartoon, I can't set LineWidth. I can

Re: [osg-users] Camera and light problem

2008-03-10 Thread Vincent Bourdier
Hi Jon, If your light is in the model at (0,0,0) it is normal, because in the graph, the position is always relative (depends on the parent node) (if you let it by default). try something like : -ROOT ---lightsource ---tranform --geode In this case light source will be in relative

Re: [osg-users] osgFX::Cartoon (setOutlineLineWidth)

2008-03-11 Thread Vincent Bourdier
Hi, No one have already had this problem ? Thanks. Vincent. 2008/3/7, Vincent Bourdier [EMAIL PROTECTED]: Hi, I'm using osgFX::Cartoon to obtain an effect on the edges. I want to highlight edges of a node. (geode) I've already tried osgFX::Scribe, but I prefere Cartoon edges because

Re: [osg-users] osgFX::Cartoon (setOutlineLineWidth)

2008-03-11 Thread Vincent Bourdier
that triggers that behaviour in your machine I would test it on mine (x86_64,Linux 2.6.22 , OSG SVN HEAD). Cheers, Nicolas. 2008/3/11, Vincent Bourdier [EMAIL PROTECTED]: Hi, No one have already had this problem ? Thanks. Vincent. 2008/3

Re: [osg-users] Stopping a particle system after a set number of particles

2008-03-11 Thread Vincent Bourdier
Hi, I think it doesn't exist yet... (perhaps I make a mistake writing this)... But counting time left before stoping the particlesystem is not very difficult... just make a time difference and switch off your particleSystem (or remove it) from the graph... Vincent. 2008/3/11, Kim C Bale [EMAIL

Re: [osg-users] osgFX::Cartoon (setOutlineLineWidth)

2008-03-11 Thread Vincent Bourdier
and color.x/y/z for a float numbers but apart from that I used the same code. Are you sure edge_width is set to the value you want? If yes may be the is a bug in the OpenGL driver or something. Hope it helps. Cheers, Nicolas. 2008/3/11, Vincent Bourdier [EMAIL PROTECTED]: Hi

[osg-users] Render a node through the other

2008-03-11 Thread Vincent Bourdier
Hi, I work on complex models, and I use the osgFX to put in relief some nodes. However, I am asking myself if it is possible to render a node through the others ... ? What I would like to obtain, is to see a node (geode) in relief (with osgFX) through the hole model (and so through the other

Re: [osg-users] Assertion failure - using removeChild

2008-03-13 Thread Vincent Bourdier
Hi, Have you checked all the variables ? I have encountered the problem because my Node was not good... sometimes you get an error but it is another bug in your code... Try to verify each variable (in debug mode for example (step-by-step)) and you'll find your problem. I don't think it is an OSG

[osg-users] Matrixf and Quat problem

2008-03-13 Thread Vincent Bourdier
Hi, I am trying for hours to make a rotation with two vectors... The code is : osg::Matrixf MR = osg::Matrixf::identity();//matrix rotation MR.rotate(angle*osg::PI/180.0, _NodeTranslation^_NodeTranslationStart); osg::Quat qrotation = osg::Quat(); qrotation.set(MR); _rotation *= qrotation;

Re: [osg-users] Matrixf and Quat problem

2008-03-14 Thread Vincent Bourdier
), a NULL rotation will be computed. *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Vincent Bourdier *Sent:* Thursday, March 13, 2008 12:55 PM *To:* osg *Subject:* [osg-users] Matrixf and Quat problem Hi, I am trying for hours to make a rotation with two vectors

Re: [osg-users] PositionAttitudeTransform question

2008-03-14 Thread Vincent Bourdier
Hi, I'm not sure to understand you problem... First of all, if you make a setScale(1,1,1) it is normal that nothing changes... After, your problem is not clear... you use a PAT for moving and scaling... and you scale the object separately ? Please be more precise... what does your scenegraph

Re: [osg-users] Matrixf and Quat problem

2008-03-14 Thread Vincent Bourdier
? or there is a real problem ? Thanks, Vincent 2008/3/14, Vincent Bourdier [EMAIL PROTECTED]: Hi, You're right !! cross product is null ... I don't know why but now I know where is the problem. Thanks :) Vincent. 2008/3/13, Vican, Justin E. [EMAIL PROTECTED]: What are the values

Re: [osg-users] Matrixf and Quat problem

2008-03-14 Thread Vincent Bourdier
Yes !!! thank you very much :-) Vincent. 2008/3/14, Ralph Kern [EMAIL PROTECTED]: Vincent Bourdier schrieb: I've located my problem, and this time I don't know why it doesn't change anything... osg::Matrixf MR = osg::Matrixf::identity(); MR.rotate(angle*osg::PI/180.0, rotaxis

[osg-users] Quat normalization

2008-03-19 Thread Vincent Bourdier
Hi all, I just have a little question, because I'm not sure of something about quat : I have to quat q1 and q2 To pass form q1 to q2 I've made q = q1.inverse()*q2 But even if the result angle looks correct... the vector or rotation looks very little : vec : 2.71051e-020, -2.71051e-020,

Re: [osg-users] Quat normalization

2008-03-19 Thread Vincent Bourdier
what you are asking... Vincent Bourdier wrote: Hi all, I just have a little question, because I'm not sure of something about quat : I have to quat q1 and q2 To pass form q1 to q2 I've made q = q1.inverse()*q2 But even if the result angle looks correct... the vector

Re: [osg-users] Quat normalization

2008-03-19 Thread Vincent Bourdier
] mailto:[EMAIL PROTECTED]: Hi, I'd like to help, but don't know what you are asking... Vincent Bourdier wrote: Hi all, I just have a little question, because I'm not sure of something about quat : I have to quat q1

Re: [osg-users] Resetting particle systems

2008-03-20 Thread Vincent Bourdier
Hi, I don't understand why you want to destroy the particle... A particle System works great without killing particle manually... what do you expect from it ? Vincent. 2008/3/20, Serge Lages [EMAIL PROTECTED]: Hi, The best way I found is : for (int i = 0; i

[osg-users] Get Parent as Transform in Absolute ?

2008-03-21 Thread Vincent Bourdier
Hi all, I'm trying to get a node's parent as Transform (PAT or MatrixTransform) but I have to get the transformation in ABSOLUTE_RF... For the moment, I've done a recursive method to get Parent as Transform. It return me the first parent as Tranform it encounter. I've tried this :

Re: [osg-users] Matrix Quat precision

2008-03-27 Thread Vincent Bourdier
camera position based on the position of the node in the scene on each frame. Robert. On Thu, Mar 27, 2008 at 8:38 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi all, I'm currently making a new Manipulator inherited from MatrixManipulator. The specificity is : On the call of a function

Re: [osg-users] Matrix Quat precision

2008-03-27 Thread Vincent Bourdier
tracking each frame. The osgGA::NodeTrackerManipulator does this. Robert. On Thu, Mar 27, 2008 at 8:57 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi Robert, For the moment I use a relative calculation (I compute on each frame depending on the last frame's position). I suppose

Re: [osg-users] Get Parent as Transform in Absolute ?

2008-03-27 Thread Vincent Bourdier
*(_node.get()); quat = pat-getAttitude(); Do you know why I don't have the same result ? Thanks Vincent. 2008/3/21, Vincent Bourdier [EMAIL PROTECTED]: Hi, So I've made some tests and now I have some questions about the differences between two methods to get tranformations on one node

Re: [osg-users] Get Parent as Transform in Absolute ?

2008-03-27 Thread Vincent Bourdier
are completed, just use them directly. Robert. On Thu, Mar 27, 2008 at 1:53 PM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi all, I make a little up of this topic because I'm now looking on it a last time (I hope) To be more clear, I have a difference between getting the transform quat

Re: [osg-users] Get Parent as Transform in Absolute ?

2008-03-27 Thread Vincent Bourdier
understand well I must use something like : http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/CameraControlFindingWorldCoordinates There is no other way ? Thanks, Regards. vincent. 2008/3/27, Alberto Luaces [EMAIL PROTECTED]: El Jueves 27 Marzo 2008ES 15:24:48 Vincent

Re: [osg-users] Get Parent as Transform in Absolute ?

2008-03-27 Thread Vincent Bourdier
++) { for(int j=0; j4; j++) { std::cout ml[0](j,i) \t; } std::cout \n; } return 0; } El Jueves 27 Marzo 2008ES 16:24:47 Vincent Bourdier escribió: Hi Alberto Thanks for help, I

Re: [osg-users] Get Parent as Transform in Absolute ?

2008-03-28 Thread Vincent Bourdier
)) and its world orientation ( the first 3x3 block, equal to identity since the two transforms were translation ones). Try changing m1 and m2 to see the changes in the global position and orientation. El Jueves 27 Marzo 2008ES 17:31:51 Vincent Bourdier escribió: In your example you are using

[osg-users] MatrixTransform and PAT rotation difference.

2008-03-28 Thread Vincent Bourdier
Hi, I make a new topic I think it is more clear I'm looking on getting absolute rotation from a osg::Transform If my node is a PAT i do quat = pat-getAttitude(); if my node is a MatrixTransform i do quat = mt-getMatrix().getRotate(); But in the second case, it looks doing nothing...

Re: [osg-users] problem with the debug version of OSG25-OSGVIEWERD.DLL and visual studio 2008

2008-03-31 Thread Vincent Bourdier
Hi, osg25-osgviewerD.dll : debug version... osg25-osgviewer.dll : release version... maybe you have to put the configuration of your visual project in debug mode... Regards, Vincent. 2008/3/31, Sébastien Champmartin [EMAIL PROTECTED]: Hi ! When i execute the program visual studio says to

[osg-users] Pick multiple node

2008-04-01 Thread Vincent Bourdier
Hi all, For my application, I use the picking. but there is something strange : When I pick a node (geode) I get a list of node path... so all is good... but in the list, the same nodepath can appear more that one time, sometimes two, sometimes four... Is there any reason for that ? Or what

Re: [osg-users] Pick multiple node

2008-04-01 Thread Vincent Bourdier
IntersectionVisitor is a general purpose utility class so has to provide a the full spectrum of results rather than prefiltering it. Robert. On Tue, Apr 1, 2008 at 9:31 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi all, For my application, I use the picking. but there is something strange

[osg-users] MatrixManipulator and Callback

2008-04-02 Thread Vincent Bourdier
Hi all, I'm trying to put a callback on my manipulator, inherited from MatrixManipulator. but a the line : myManipulator-setUpdateCallback(...) I got a error of compilation : error C2039: 'setUpdateCallback' : is not member of 'MyManipulator' I don't understand why I cannot set my callback

Re: [osg-users] MatrixManipulator and Callback

2008-04-02 Thread Vincent Bourdier
an form of event handler, which itself is a form of callback. Now you can override the handle(..) method if you wish... Robert. On Wed, Apr 2, 2008 at 4:08 PM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi all, I'm trying to put a callback on my manipulator, inherited from

Re: [osg-users] MatrixManipulator and Callback

2008-04-03 Thread Vincent Bourdier
Ok, Thanks, the Handle method is already implemented, and it is a particular situation, so I'll try an other way... Thank you very much. Vincent. 2008/4/2, Robert Osfield [EMAIL PROTECTED]: On Wed, Apr 2, 2008 at 5:03 PM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi Robert, I don't

[osg-users] Callback multiple

2008-04-07 Thread Vincent Bourdier
Hi all, I have made some NodeCallback. for the moment, 2 NodeCallback are running at the same time... they use the osg::Timer.. But when I've added the second one, the first seems to do nothing... Is there any recommendation to add some Callbacks on the same scenegraph ? Thanks. Regard.

Re: [osg-users] Callback multiple

2008-04-07 Thread Vincent Bourdier
, or use the NodeCallback::traverse method. See other examples of NodeCallbacks in the OSG to see this in action. Robert. On Mon, Apr 7, 2008 at 3:18 PM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi all, I have made some NodeCallback. for the moment, 2 NodeCallback are running

[osg-users] Glenum pixelFormat

2008-04-08 Thread Vincent Bourdier
Hi All, I'm trying to make a osg::Image, but in allocateImage(...) and setImage(...) I need : Pixel format, Internal texture format, AllocationMode... But I didn't find any possible values ?! Where can I find it ? thanks Regards, Vincent. ___

Re: [osg-users] Glenum pixelFormat

2008-04-08 Thread Vincent Bourdier
, USE_NEW_DELETE, USE_MALLOC_FREE }; Good luck, Guy. -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Vincent Bourdier *Sent:* Tuesday, April 08, 2008 2:55 PM *To:* osg *Subject:* [osg-users] Glenum pixelFormat Hi All, I'm

[osg-users] osg Image data

2008-04-10 Thread Vincent Bourdier
Hi All, I have a problem concerning writing image data. My code is simple : const long size = _x*_y*3; unsigned char* data = (unsigned char*)calloc(size, sizeof(unsigned char)); for(long i=0; i size ; i+= 3) { data[i] = 0;//red data[i+1] = 0;

Re: [osg-users] osg Image data

2008-04-10 Thread Vincent Bourdier
Yes, but GL_UNSIGNED_CHAR doesn't exist. so I don't know what to use... 2008/4/10, J.P. Delport [EMAIL PROTECTED]: Hi, sizeof(unsigned char) != sizeof(GL_UNSIGNED_SHORT) try GL_UNSIGNED_CHAR jp Vincent Bourdier wrote: Hi All, I have a problem concerning writing image data

Re: [osg-users] osg Image data

2008-04-10 Thread Vincent Bourdier
Yes It works better now !! Thanks a lot ! Regards, Vincent 2008/4/10, [EMAIL PROTECTED] [EMAIL PROTECTED]: use GL_UNSIGNED_BYTE a char is 1 byte *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Vincent Bourdier *Sent:* 10. april 2008 13:33

[osg-users] Create new Image

2008-04-10 Thread Vincent Bourdier
Hi All, I'm making a loop which compute each pixel color for a RVB image... but sometimes, wen runing, an error append in : osg::ref_ptrosg::Image image = new osg::Image; image-allocateImage(_x, _y, 1, GL_RGB, GL_UNSIGNED_BYTE); image-setOrigin(osg::Image::BOTTOM_LEFT);//start

Re: [osg-users] Create new Image

2008-04-11 Thread Vincent Bourdier
mean by an error append? In your code have both a allocateImage and a setImage, you should just use one or other. Robert. On Thu, Apr 10, 2008 at 5:46 PM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi All, I'm making a loop which compute each pixel color for a RVB image

Re: [osg-users] Create new Image

2008-04-11 Thread Vincent Bourdier
solution, how can I compute the right size for a RGB image ? thanks Regard. Vincent. 2008/4/11, Thibault Genessay [EMAIL PROTECTED]: HI Vincent On Fri, Apr 11, 2008 at 9:04 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: I have a VS bug : Windows a déclenché un point d'arrêt dans 3DEM.exe

Re: [osg-users] Create new Image

2008-04-11 Thread Vincent Bourdier
, GL_UNSIGNED_BYTE, data, osg::Image::USE_NEW_DELETE); osgDB::writeImageFile(*image, Z:/autres/Gradient.jpg); Thanks for help. Vincent. 2008/4/11, Stephan Huber [EMAIL PROTECTED]: Vincent Bourdier schrieb: If x*y*3 is not the good solution, how can I compute the right size for a RGB

Re: [osg-users] Create new Image

2008-04-11 Thread Vincent Bourdier
, GL_UNSIGNED_BYTE, data, osg::Image::USE_NEW_DELETE); Do you see USE_NEW_DELETE? it tells the image to do cleanup using delete [] data; You should allocate your data using unsigned char *data = new unsigned char[size]; regards Ralph Vincent Bourdier schrieb: Ok

[osg-users] Delaunay and getTriangles()

2008-04-14 Thread Vincent Bourdier
Hi All, Using osgUtil::DelaunayTriangulator, I'm looking for obtaining the triangle list... but for the moment, I haven't already found it. The getTriangles() method return a DrawElementsUInt, but no way to find a triangle list or something approaching... Is there a (simple) way ? Thanks,

Re: [osg-users] Delaunay and getTriangles()

2008-04-15 Thread Vincent Bourdier
Hi all, No one have any idea ? Because I'm a little bit lost on how to get the Delaunay Triangles.. Thanks. Regards, Vincent. 2008/4/14, Vincent Bourdier [EMAIL PROTECTED]: Hi All, Using osgUtil::DelaunayTriangulator, I'm looking for obtaining the triangle list... but for the moment

Re: [osg-users] Delaunay and getTriangles()

2008-04-15 Thread Vincent Bourdier
can use the osg::TriangleFunctor. Have a search through the OSG sources for examples of this in action. Robert. On Tue, Apr 15, 2008 at 9:59 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi all, No one have any idea ? Because I'm a little bit lost on how to get the Delaunay

Re: [osg-users] Delaunay and getTriangles()

2008-04-16 Thread Vincent Bourdier
^^ they are not updated... Any idea ? why the operator() is never called ? Thanks a lot. Vincent. 2008/4/15, Alberto Luaces [EMAIL PROTECTED]: El Martes 15 Abril 2008ES 16:26:21 Vincent Bourdier escribió: Thanks for ideas and help, because It looks unused and complicated for me... I don't think

Re: [osg-users] Delaunay and getTriangles()

2008-04-16 Thread Vincent Bourdier
Miércoles 16 Abril 2008ES 10:33:28 Vincent Bourdier escribió: Hi, Thanks Alberto, I've made some reading in the OSG source code to understand better... After that I made my own test, but I don't have the good result : the operator() is never called on the geometry You can see my code

Re: [osg-users] warning when creating image

2008-04-16 Thread Vincent Bourdier
Hi, image-setImage(width, height, 0,... ) can be a problem... because 0 in the depth or the image... so if it is a simple 2D image, put 1. Vincent. 2008/4/16, [EMAIL PROTECTED] [EMAIL PROTECTED]: I use osg 2.3.7 on vista in a ref class the following lines: osg::Image * image = new

[osg-users] Geometry

2008-04-18 Thread Vincent Bourdier
Hi All, I've a new problem, which is about Geometries. this is simple : I've a node, already with a texture, and I want to put a second texture on it. BUT, the second texture have to be well positioned on the node, without depending on the Geometry's texture coordinates... I've tried

Re: [osg-users] Geometry

2008-04-18 Thread Vincent Bourdier
texture unit 0 and the second should use texture unit 1. Brian [EMAIL PROTECTED] wrote: - To: osg osg-users@lists.openscenegraph.org From: Vincent Bourdier [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] Date: 04/18/2008 10:17AM Subject: [osg-users] Geometry Hi All, I've a new problem

Re: [osg-users] Geometry

2008-04-18 Thread Vincent Bourdier
Hi Jean-Sébastien, This is a very clear and complete explanation. I'll will try all these to get the best in my case. thanks a lot for these quick answers !! Regards, Vincent. 2008/4/18, Jean-Sébastien Guay [EMAIL PROTECTED]: Bonjour Vincent, ok so if I understand well, i can set a

Re: [osg-users] osg::TextureCubeMap example ?

2008-04-21 Thread Vincent Bourdier
throughout the OSG. Robert. On Mon, Apr 21, 2008 at 10:16 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi All, Looking for TextureCubeMap I didn't found example or tutorials... I'm looking for applying a second texture on a geode, not depending on old texture coordinates

[osg-users] osg::TextureCubeMap example ?

2008-04-21 Thread Vincent Bourdier
Hi All, Looking for TextureCubeMap I didn't found example or tutorials... I'm looking for applying a second texture on a geode, not depending on old texture coordinates... I've tried this but it render a single color (pixel ?) of the texture... osg::TextureCubeMap* texcube = new

[osg-users] Put a second texture on an unknown geode

2008-04-21 Thread Vincent Bourdier
Hi all, This is my new dilemma : I got a geode. It can be a sphere, a cube, or a more complex geometry... I made a texture, and I need to put it on the node, as a second texture. The dilemma is : how to configure texture (coords, wrapping, texturecubemap, TextureRectangle, ...) to get a good

Re: [osg-users] Point cloud culling/paging

2008-04-24 Thread Vincent Bourdier
Hello it is just an idea, but maybe your camera's frustrum is not good... Regard, Vincent. 2008/4/24 Steven Powers [EMAIL PROTECTED]: I'm experiencing some weird problems with my point cloud. I have a fairly large terrain and a point cloud that expands the whole terrain. When I build

Re: [osg-users] osgFx Effects

2008-04-29 Thread Vincent Bourdier
Hello First, use dynamic_castT(node) it is done for this kind of cast... Next, if you don't find any FXnode, try to save your graph as an osg file and have a look in it... maybe Bump mapping isn't represented by a osgFX node ? (don't know I haven't already used it) Regards, Vincent. 2008/4/29

[osg-users] problems with a new geometry

2008-04-30 Thread Vincent Bourdier
Hi all, Trying for hours to create a new geode, I'am having a bug I can't fix Doing _root-addChild(createSun(config-Sunpath)); the program crashes This is the code of createSun osg::Geode* createSun(std::string texturePath) { int nb_edge = 30; float radius =

Re: [osg-users] problems with a new geometry

2008-04-30 Thread Vincent Bourdier
Hi David You're write, it's my ref_pr !! I was searching in another direction, so I haven't saw it. thanks a lot David and Alberto. Regards, Vincent. 2008/4/30 David Callu [EMAIL PROTECTED]: Hi Vincent, 2008/4/30 Vincent Bourdier [EMAIL PROTECTED]: Hi all, Trying for hours

[osg-users] Limit on number of children ?

2008-05-02 Thread Vincent Bourdier
Hi all, Somewhere in my code, I make some root-addChild(functionCreateGeode()); but when I added a last one, OSG crash on rendering, pretending a vector error. I've verified, it do not depend on the Geode, because it work if I remove an addChild() before doing mine... Is there a limit in the

[osg-users] osgfx::bumpmapping example ?

2008-05-02 Thread Vincent Bourdier
Hi all, I just want to set a bump mapping effect on a geode, but the only thing I obtain is the geode all colored in black. I didn't found any example of BumpMapping, and I didn't succed setting it on my geode doing : osgFX::BumpMapping* bump = new osgFX::BumpMapping();

Re: [osg-users] Limit on number of children ?

2008-05-02 Thread Vincent Bourdier
: [EMAIL PROTECTED] *On Behalf Of *Vincent Bourdier *Sent:* Friday, May 02, 2008 5:27 AM *To:* osg *Subject:* [osg-users] Limit on number of children ? Hi all, Somewhere in my code, I make some root-addChild(functionCreateGeode()); but when I added a last one, OSG crash on rendering, pretending

Re: [osg-users] Limit on number of children ?

2008-05-02 Thread Vincent Bourdier
-addChild(createSun(...)) _root-addChild(createMoon(...)) //ok So I don't understand what can be the problem... I if put createSun() or createMoon() it work well, but if I put the two, it crashes... I hope it's more clear now. Thanks, Vincent 2008/5/2 Paul Melis [EMAIL PROTECTED]: Vincent

Re: [osg-users] Limit on number of children ?

2008-05-02 Thread Vincent Bourdier
* __ *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Vincent Bourdier *Sent:* Friday, May 02, 2008 8:45 AM *To:* OpenSceneGraph Users *Subject:* Re: [osg-users] Limit on number of children ? Thanks for help, a bit of code will be more clear so this is something

Re: [osg-users] Danke für Ihre Mail / Thank you for your mail (was: Danke für Ihre Mail / Thank y ou for your mail (was: Danke für Ihre Mail / Thank you for your mail (was: Danke für Ihre Mail / Th

2008-05-06 Thread Vincent Bourdier
Kein Spam 010203 Maybe it can help... 2008/5/6 Lars Fricke [EMAIL PROTECTED]: Bezüglich/Regarding Spam: Deutsch/English - Sehr geehrter Absender, sie haben mir eine e-Mail gesendet. Aufgrund der enormen Belastung mit Spam habe ich einen entsprechenden Filter eingerichtet. Wenn Sie diese

Re: [osg-users] Danke für Ihre Mail / Thank you for your mail (was: Danke für Ihre Mail / Thank y ou for your mail (was: Danke für Ihre Mail / Thank you for your mail

2008-05-06 Thread Vincent Bourdier
I've sent a email to him and he told me he has solve the problem... If it continue, sent him a personal email ... Regards, Vincent 2008/5/6 Paul Melis [EMAIL PROTECTED]: Jan Ciger wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Paul, Paul Melis wrote: Hi Lars,

Re: [osg-users] Some 'osg::Geode' that can be transformed should be made as 'osg::MatrixTransform'?

2008-05-06 Thread Vincent Bourdier
Hi, osg::group inherit from osg::node, so a group is a node. Is it your question ? or it is more complicated ? 2008/5/6 Jeongseok Lee [EMAIL PROTECTED]: Hi all. This is my first question to all of you. So, it's very naive question. J I'm developing 3D robot dynamics simulator.

Re: [osg-users] TextureCubeMap wrapping ?

2008-05-06 Thread Vincent Bourdier
to OpenGL so OpenGL docs should serve you well. Robert. On Tue, Apr 29, 2008 at 9:51 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi, With some new tests, I've something different as you can see in the attached file I use this code osg::TextureCubeMap* texcube = new osg

Re: [osg-users] Some 'osg::Geode' that can be transformed should be made as 'osg::MatrixTransform'?

2008-05-06 Thread Vincent Bourdier
with using a transform node for what it is designed to do ? -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Vincent Bourdier *Sent:* Tuesday, May 06, 2008 9:28 AM *To:* OpenSceneGraph Users *Subject:* Re: [osg-users] Some 'osg::Geode

Re: [osg-users] [Blender and OSG]

2008-05-13 Thread Vincent Bourdier
Hi Maybe Blender can export into .3ds or .obj file ? 2008/5/13 Jean-Baptiste Authesserre [EMAIL PROTECTED]: Hi, I would like to use blender to create my 3D models. Is that possible to use blender files .blend with osg? I compiled by myself osg by using Cmake for the configuration of the

Re: [osg-users] Stack of actions todo

2008-05-15 Thread Vincent Bourdier
to continue... 2008/5/15 Alberto Luaces [EMAIL PROTECTED]: El Jueves 15 Mayo 2008ES 11:00:41 Vincent Bourdier escribió: Hi all, After a look on the net and in the archive, I think nobody did it before, but I prefer ask to earn time : I need to do something like a stack or a list

[osg-users] Stack of actions todo

2008-05-15 Thread Vincent Bourdier
Hi all, After a look on the net and in the archive, I think nobody did it before, but I prefer ask to earn time : I need to do something like a stack or a list of actions to apply on the scenegraph (FIFO stack if possible). I've a thread which will create the actions to make, and I need to do

Re: [osg-users] Stack of actions todo

2008-05-15 Thread Vincent Bourdier
, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi Alberto I just need to control when I flush the stack, to synchonise with the threads. A Callback would flush the stack (and so modify the graph) at the same time of the callbacks which traverse the graph... It is dangerous. I would stop

Re: [osg-users] Stack of actions todo

2008-05-15 Thread Vincent Bourdier
done before, i.e. how confident are you about using threads, blocks and barriers? I asks this as I doubt no how much to assume. Robert. On Thu, May 15, 2008 at 11:25 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi Robert, You said then you'll need to place a barrier in frame loop

Re: [osg-users] Stack of actions todo

2008-05-15 Thread Vincent Bourdier
Thanks for your help, I'll try to look at it in details. Regards, Vincent. 2008/5/15 Robert Osfield [EMAIL PROTECTED]: On Thu, May 15, 2008 at 11:43 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: I'm not very familiar with threads, and no more with OpenThreads... but I learn quickly

[osg-users] get Alpha on material

2008-05-20 Thread Vincent Bourdier
Hi all, trying to get alpha value on a material, on a node, I use mat-getAmbient(osg::Material::FRONT).a() but mat depends on a picked node, and If I pick somewhere different, sometimes it crashes... I suppose I is a osg::material::face problem. Is there any way to get alpha value (setAlpha()

Re: [osg-users] get Alpha on material

2008-05-21 Thread Vincent Bourdier
No one have any idea on how to do it ? I just need to get alpha value on a material on a picked node. Thanks, Regards, Vincent. 2008/5/20 Vincent Bourdier [EMAIL PROTECTED]: Hi all, trying to get alpha value on a material, on a node, I use mat-getAmbient(osg::Material::FRONT

Re: [osg-users] get Alpha on material

2008-05-21 Thread Vincent Bourdier
10:29:10 Vincent Bourdier escribió: No one have any idea on how to do it ? I just need to get alpha value on a material on a picked node. Thanks, Regards, Vincent. 2008/5/20 Vincent Bourdier [EMAIL PROTECTED]: Hi all, trying to get alpha value on a material, on a node

[osg-users] Openthread ?

2008-05-21 Thread Vincent Bourdier
Hi all, I'm searching on OSG website but I didn't found something like the Reference documentation or guide of OpenThread... Any idea where I can find headers ? or real documentation ? Thanks Regards, Vincent. ___ osg-users mailing list

Re: [osg-users] Openthread ?

2008-05-22 Thread Vincent Bourdier
Hi Thibault Thanks for help, I'll look at headers, I forgot they were downloaded with sources... Regards, Vincent. 2008/5/22 Thibault Genessay [EMAIL PROTECTED]: Hi Vincent On Wed, May 21, 2008 at 5:38 PM, Vincent Bourdier [EMAIL PROTECTED] wrote: I'm searching on OSG website but I

[osg-users] osg::ref_ptr difficulties

2008-05-23 Thread Vincent Bourdier
Hi all, I'm making some function to modify graph after some operation, and so I need to call some simple actions in functions. The problem is about ref_ptr : I need to do this : osg::ref_ptrosg::Group mygroup; [..] mygroup = NULL; [...] To do that in a function, I use someting like :

Re: [osg-users] osg::ref_ptr difficulties

2008-05-23 Thread Vincent Bourdier
Hi I'm not sure to understand what release() do... T* release() { T* tmp=_ptr; if (_ptr) _ptr-unref_nodelete(); _ptr=0; return tmp; } what does unref_nodelete() do ? what does it return really ? Thanks Vincent. 2008/5/23 Paul Melis [EMAIL PROTECTED]: Vincent Bourdier wrote: Hi Robert

Re: [osg-users] osg::ref_ptr difficulties

2008-05-23 Thread Vincent Bourdier
osg::Node is a subclass) and, while it decrements the reference count of the instance it will not delete it when the reference count reaches zero. Paul Vincent Bourdier wrote: Hi I'm not sure to understand what release() do... T* release() { T* tmp=_ptr; if (_ptr) _ptr-unref_nodelete

[osg-users] Random crash running with osg

2008-06-04 Thread Vincent Bourdier
Hi All, Running my application, I get a random crash I cannot identify. The error is : vectorbool iterator not dereferencable Bu I've no vectorbool in my code, So I gess it is in osg where the crash append. Maybe I make something wrong in my code, but I've no idea where or what the bug can be...

Re: [osg-users] Random crash running with osg

2008-06-04 Thread Vincent Bourdier
have been done for the whole 2.x series, but alas it was missed until the submission on the 12th May. So could you try SVN or 2.5.1 and see how you get on. Robert. On Wed, Jun 4, 2008 at 10:15 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi All, Running my application, I get

Re: [osg-users] Random crash running with osg

2008-06-04 Thread Vincent Bourdier
be already fixed. The SVN and 2.5.1 contain a number of fixes so I'd recommend try updating the OSG before you do anything else as chasing an already fixed problem is not a good use of any of our time. Robert. On Wed, Jun 4, 2008 at 10:24 AM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi robert

  1   2   3   4   5   6   >