Login  Register

Re: How do I use stencil textures for outlining shapes?

Posted by Sven Gothel on May 28, 2023; 9:38am
URL: https://forum.jogamp.org/How-do-I-use-stencil-textures-for-outlining-shapes-tp4042652p4042653.html

Hi 'John Doe' (forgot your name from back then),

first off, the stencil buffer thingy is indeed something left-over from
fixed functionality and it is not (a) free (shader pipeline) at all.

Lately I used alpha and discard, but whatever .. it shall work.

+++

If you don't mind, please drop a full debug output piped to file,
see <https://jogamp.org/wiki/index.php?title=Jogl_FAQ#Detailed_Debug_Log>.
Then please attach the file to your reply.

This shall disclose quite a few things including the full stack trace.

Then we also might want to have the while platform info you are running,
see <https://jogamp.org/wiki/index.php?title=Jogl_FAQ#JOGL,_Platform_and_OpenGL_Version>.

Both infos are referenced in the wiki page of our <https://jogamp.org/wiki/index.php?title=Jogl_FAQ#Bugreports_&_Testing> .. I know, old times.

Finally, while having shown us the code base of yours, please also add a line
how you launch (which class w/ arguments). That would help a more easy reproduction of things.

+++

From memory, it might be so that we still have to add the ole dirty stencil buffer
to our FBO object? Not sure, but the above info will show.