Hi Martin,

The way to add details will be via multi-texturing.  You may way to use shaders to get effects you want, but as a starter you could probably just get away with using osg::TexEnv or osg::TexEnvCombine to control the blending of colours and textures.  You'll also need to control the texture coordinates for you extra textures, and this might be awkward part, for simple objects TexGen might be sufficient to automatically generate the coords for you, but its likely you'll need finer control.  Alternatively you might be able to use the existing coords, but add a osg::TexMat to position you additional textures in the right place on an object.

So there are quite a few ways of tackling it, but I'm afraid you'll need to code up a solution, you won't find an off the shelf solution waiting for you.  Good luck,

Robert.

On 8/29/06, Martin Spindler <[EMAIL PROTECTED]> wrote:
Hi Robert,

> What precisely are you trying achive?

I would like to place forensic traces (e.g. finger prints, blood
stains,...) onto objects. The traces should be represented by standard
textures or even advanced texture operations such as in combination with
shaders.

All traces need to be applied dynamically onto the objects as the
character is walking through the scene, e.g. the character might take a
bottle of glass leaving some fingerprints on it. The problem is, that
the traces cannot be integrated directly into the static scene model.

Later on it might also be possible to attach certain behaviour to some
traces, e.g. when a police officer uses a brush to secure a trace or a
thief trying to rub off a trace.

Cheers,
Martin.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to