[osg-users] Comments in osg files

2008-11-24 Thread Stephane Lamoliatte
Hello all, I've just want to know if it is possible to add comments in osg files ? Cheers, -- Lamoliatte Stephane R&D Engineer R.S.A. Cosmos Z.I. de la Vaure - B.P.40 42290 Sorbiers, France Tel : +33 (0)4 77 53 30 48 Fax : +33 (0)4 77 53 38 61 ___ o

Re: [osg-users] animtk release 0.0.9

2008-11-02 Thread Stephane Lamoliatte
Hi, AnimTk was released undel GPL licence. Do you plan to release the osgAnimation under GPL, LGPL or OSGPL licence ? Cheers, Robert Osfield a écrit : Hi Cedric et. al, On Sun, Nov 2, 2008 at 5:02 PM, Cedric Pinson <[EMAIL PROTECTED]> wrote: Robert when do you plan to release osg 2.8 ?

Re: [osg-users] Creating Contours?

2008-08-29 Thread Stephane Lamoliatte
Hello Sam, Have a look to this article : http://graphics.cs.brown.edu/games/FeatureEdges/index.html This article was writed before the geometry shader release. I think this technique could be improved by using it. Sam a écrit : Hello, I am looking for a way to render a model as a contour o

Re: [osg-users] empty geode + shader + uniform = bug ?

2008-05-23 Thread Stephane Lamoliatte
Woops, I forget to send the other buggy scene. Cheers, -- Lamoliatte Stephane Ingenieur R&D R.S.A. Cosmos Z.I. de la Vaure - B.P.40 42290 Sorbiers, France Tél : +33 (0)4 77 53 30 48 Fax : +33 (0)4 77 53 38 61 Group { Group { StateSet { Uniform { name "color"

Re: [osg-users] empty geode + shader + uniform = bug ?

2008-05-23 Thread Stephane Lamoliatte
Robert Osfield a écrit : As replied in previous posts, their is a whole mechanism in osg::State for managing state, there is no need for a "disapply" as this automatically comes part of the package. I'm not agree with you. I find the origin of the bug : There is a real problem : see my bu

Re: [osg-users] empty geode + shader + uniform = bug ?

2008-05-23 Thread Stephane Lamoliatte
: Have you tried, what I have proposed before? cheers, Art --- Stephane Lamoliatte <[EMAIL PROTECTED]> schrieb am Fr, 23.5.2008: Von: Stephane Lamoliatte <[EMAIL PROTECTED]> Betreff: Re: [osg-users] empty geode + shader + uniform = bug ? An: "OpenSceneGraph Users" D

Re: [osg-users] empty geode + shader + uniform = bug ?

2008-05-23 Thread Stephane Lamoliatte
Hi David, I turn off the optimizer in osgviewer and the problem stays the same. Thanks for your help. David Spilling a écrit : Stephane, Have you tried running with no optimizer? A while ago I dimly remember encountering something similar with the optimiser doing funny things with empty nod

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

2008-05-23 Thread Stephane Lamoliatte
Vincent Bourdier a écrit : In argument of my function, I get a ref_ptr, and in the function, I put this ref_ptr to NULL; but at the end (going out of the function), my original ref_ptr hasn't been modified... Do you pass your ref_ptr by value or by reference ? Here is an example : ref_ptr g

Re: [osg-users] New Improved DatabasePager, now with even more threading! Please take a taste today :-)

2008-05-22 Thread Stephane Lamoliatte
Hi Serge, I test the new DatabasePager with a regular pagedLOD database. Like you : all seems to work fine in release mode but I have a crash in debug mode. I work with Visual studio 2005 under Windows 2000. Serge Lages a écrit : On Thu, May 22, 2008 at 5:22 PM, Robert Osfield <[EMAIL PROTE

Re: [osg-users] empty geode + shader + uniform = bug ?

2008-05-22 Thread Stephane Lamoliatte
g I get a red cow, which looks correct. I'm using the SVN version of the OSG under 64bit Kubuntu 7.10 on a Quad core Intel chip with NVidia drivers/7800GT. Robert. On Thu, May 22, 2008 at 7:29 AM, Stephane Lamoliatte <[EMAIL PROTECTED]> wrote: Hi Robert, OpenSceneGraph have a st

Re: [osg-users] Rendering object with fur shader

2008-05-22 Thread Stephane Lamoliatte
Hi Martin, Here you could implement a custom osgFX::Effect. Have a look to osgFX::Cartoon : it is a simple effect with two pass. Martin Großer a écrit : Hello, I have the following vertex and fragment shader. This is a simply fur shader, but the difficult part is the rendering in passes. V

Re: [osg-users] Rendering the scene multiple times with different shaders.

2008-05-22 Thread Stephane Lamoliatte
Robert, don't you think this feature could be done by some kind of custom osgFX::Effect node ? Robert Osfield a écrit : Hi Viggo, It sounds like you need a feature that the OSG doesn't have, the ability to do StateSet substitution, i.e. you take a StateState this is attached to the scene graph

Re: [osg-users] empty geode + shader + uniform = bug ?

2008-05-22 Thread Stephane Lamoliatte
When I run osgviewer scene.osg I get a red cow, which looks correct. I'm using the SVN version of the OSG under 64bit Kubuntu 7.10 on a Quad core Intel chip with NVidia drivers/7800GT. Robert. On Thu, May 22, 2008 at 7:29 AM, Stephane Lamoliatte <[EMAIL PROTECTED]> wrote: Hi Robert,

[osg-users] empty geode + shader + uniform = bug ?

2008-05-21 Thread Stephane Lamoliatte
Hi Robert, OpenSceneGraph have a strange behavior when I set a shader and an uniform variable on the state set of a geode which have no drawable. I write a very simple osg scene file to show you my problem (see the attachment). I have a group which have 2 children : * a geode without any dra

Re: [osg-users] Multisampling: How to enable

2008-04-15 Thread Stephane Lamoliatte
Try this code sample : int main(int argc, char** argv) { osgViewer::Viewer viewer; osg::DisplaySettings::instance()->setNumMultiSamples(8); viewer.setSceneData(buildMyScene()); return viewer.run(); } Per Rosengren a écrit : > I have tried to enable multi sampling, but it has no e

Re: [osg-users] GLSL Preprocessor

2008-02-25 Thread Stephane Lamoliatte
Hi, No you can't do that directly. But you could load your shader file into a string and add your preprocessor definitions at the begining of it and then send it as source to the osg::Shader constructor: std::string source = loadShaderFile(filename); source = "#define SIMPLE \n" + source; osg::

[osg-users] FBO and Antialiasing

2008-01-24 Thread Stephane Lamoliatte
Hi, I want to know if it is possible to render a scene to a frame buffer object with antialiasing (MSAA). If it is possible, how to do that with OpenSceneGraph ? -- Stephane Lamoliatte ___ osg-users mailing list osg-users@lists.openscenegraph.org http

Re: [osg-users] How to visit a custom node ?

2007-12-19 Thread Stephane Lamoliatte
able, which > is why it's not called. > > I hope that helps. > > > Chase > > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:osg-users- >> [EMAIL PROTECTED] On Behalf Of Stephane Lamoliatte >> Sent: Wednesday, December 19, 2007 9:3

[osg-users] How to visit a custom node ?

2007-12-19 Thread Stephane Lamoliatte
Hello, I created a new node, MyGroup, which extends osg::Group. I want to visit it in the scene graph with a NodeVisitor. So, I wrote MyNodeVisitor which extends osg::NodeVisitor. MyVisitor contains an apply function which takes MyGroup in parameter : MyVisitor::apply(osg::MyGroup &). The prob

Re: [osg-users] Some OSG examples doesn't work !

2007-12-06 Thread Stephane Lamoliatte
to run both examples with >> different threading models to see if there is a pattern. i.e. >> >> osgoccluder glider.osg --SingleThreaded >> >> Robert. >> >> On Dec 6, 2007 9:52 AM, Stephane Lamoliatte >> <[EMAIL PROTECTED]> wrote: >>

Re: [osg-users] Some OSG examples doesn't work !

2007-12-06 Thread Stephane Lamoliatte
h > different threading models to see if there is a pattern. i.e. > > osgoccluder glider.osg --SingleThreaded > > Robert. > > On Dec 6, 2007 9:52 AM, Stephane Lamoliatte > <[EMAIL PROTECTED]> wrote: > >> Here is the stack traces. >> >> >> Rob

[osg-users] Some OSG examples doesn't work !

2007-12-05 Thread Stephane Lamoliatte
Hello, osgOccluder and osgTexture2D crash during their execution in debug mode on Windows. (I built them with Visual studio 2008 in debug mode) It is very strange because they seem to work perfectly in release mode. Is it a bug, or may I choose another compilation mode to step inside these ex

Re: [osg-users] I need more accuracy !

2007-11-16 Thread Stephane Lamoliatte
depth partition that Mr Wright speaks about, but I met lot of problem with it : - bad clipping, - strange alpha blending, - performance issues (the scene is rendered multiple time each frame), - ... Now I need to find a way to replace the OSG matrix computations by mine... Stephane Lamolia

[osg-users] I need more accuracy !

2007-11-12 Thread Stephane Lamoliatte
Dear mister Osfield, I currently develop a space simulator working with very hight dynamic range data. During the development I met multiple floatting point number precision problems. For now, I try to solve one of these that come from OpenSceneGraph : For my scene, I need to use Matrices, Vect