[osg-users] Paint splashes / How do I decal?

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Tue Mar 7 05:24:00 PST 2017



Hi Johny
> And why not a geometry approach?
You can totally use 3d models, but that might induce z-fighting, sorting 
problems etc. Another option is of course using a world-space spanning 
texture per object-instance and managing drawing to this texture at the 
right spots. This isn't very memory friendly however.

It seemed to me, that you have a multipass-shader implementation anyways 
so using screen space decals might be the best option. (And I've got 
good experiences using it)

Cheers
Sebastian
>
>
> SMesserschmidt wrote:
>> Hi Johny,
>>
>>
>>> Here's Johny!
>>>
>>> I'd like to know how to pick a 3d point in my model onto which a decal will nearly wrap itself around to. Am I using the right word here, or does Open Scene Graph not have this feature? Before I'm rigging my app with a custom decal, I'd like to know what's available, or what tools I can already work with.
>>>
>> There is no specific API, but you can use projective texturing or
>> screenspace decals (using FBO and shaders).
>>
>> Cheers
>> Sebastian
>>
>>>
>>> Thank is great.
>>>
>>> ------------------
>>> Read this topic online here:
>>> http://forum.openscenegraph.org/viewtopic.php?p=70417#70417
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> osg-users mailing list
>>>
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>
>>>
>> _______________________________________________
>> osg-users mailing list
>>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>  ------------------
>> Post generated by Mail2Forum
>
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=70419#70419
>
>
>
>
>
> _______________________________________________
> 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