[osg-users] Material Properties to Change the Normal Intensity
Sebastian Messerschmidt
sebastian.messerschmidt at gmx.de
Mon Dec 26 10:57:45 PST 2016
Hi Rômulo,
> Hi Sebastian,
>
> I was having a look in the second option and it is easy to code (https://www.opengl.org/sdk/docs/tutorials/ClockworkCoders/uniform.php), however I'm not sure if I can set different reflectance in a scene with multiple objects. Maybe use the alpha channel is a better option.
Both options (material and uniforms) are equally easy to setup, but
requires your geometry to be split up into separate drawables. If you
cannot split them up, you might use vertex attributes.
There are examples how to do it in OSG, so you might consider to check
these first. (I think there is also an example how to correctly create a
tangent space for your geometry)
But anyways: Your not giving any details, so it is hard to give you
directions. Are you planning on using the bump-maps alpha channel, or
which alpha do you plan to use.
What kind of input geometries do you use? Are the objects with the
different reflectances models or can one model have multiple parts with
different reflectance values?
Cheers
Sebastian
> ...
>
> Thank you!
>
> Cheers,
> Rômulo
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69767#69767
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list