Posted by
Sven Gothel on
Jun 02, 2023; 11:19pm
URL: https://forum.jogamp.org/How-do-I-use-stencil-textures-for-outlining-shapes-tp4042652p4042672.html
Hi 'John',
as mentioned above, let's tackle the exception of yours so
we can see whether we have something to fix in JOGL allowing you to use
these buffers for your specific code.
(while doing this, I am mostly interesting to see whether we have a potential JOGL bug here)
imakerobots wrote
Currently I am using the jogamp-fat 2.4.0. I think this was done so that the natives could be repacked for distribution correctly? It's been a long time. In practical terms it means that I can't access a bunch of internal texture formats like GL_STENCIL_INDEX8 or GL_DEPTH24_STENCIL8 because
> Caught GLException: format 0x8d48 not supported [yet], pls notify the maintainer in case this is our bug.
as mentioned, please attach the full piped stderr and stdout piped to a file here,
which also should include the mentioned stack trace.
perhaps add another one with mentioned debug flags.
Also: Please use the latest v2.5.0 RC using either our maven repo
or plain jar files. While I don't assume anything, I require you
to be capable to utilize these sources for me to be able to assist you.
Release Candidate
-
https://jogamp.org/deployment/v2.5.0-rc-20230523/ - Maven v2.5.0-rc-20230523 @
https://www.jogamp.org/deployment/maven/Also see:
https://jogamp.org/cgit/jogl-demos.git/tree/maven/trivial-test/README.txtand:
https://jogamp.org/wiki/index.php?title=Maven#The_jogamp.org_test_repository(edited)
and perhaps see for updated RC versions:
https://forum.jogamp.org/Release-2-5-0-td4042507.htmlThank you.
+++
Sorry, there is no 'quick fix service' for your problem w/o
finding time to dive into your code and the methods in detail.
But after we have tackled the simple exception,
I might find time sometime to see to a specific 'outline solution'
as I also have some interest in it as hinted.
Alternatively, a generic (simple) filter method (gaussian, toon, edge-detect, etc)
might be used but your mileage may vary.
These were mentioned in the referenced articles as discussed above.