Login  Register

Re: Custom Raster

Posted by Xerxes Rånby on Feb 17, 2014; 4:24pm
URL: https://forum.jogamp.org/Custom-Raster-tp4031610p4031613.html

JeanPhi wrote
Dear JOGL Team,

I'm doing some offscreen rendering. An instance of the IntegerInterleavedRaster works, but if I use an extended class the rendering is not done anymore. I suppose the class of the given raster instance is used as identifier at some point.
IntegerInterleavedRaster is unrelated to JOGL, you may want to ask on the OpenJDK java2d mainlinglist that maintains the AWT API.
http://www.docjar.com/docs/api/sun/awt/image/IntegerInterleavedRaster.html
http://openjdk.java.net/groups/2d/


JeanPhi wrote
I would like to register my own renderer. How should I proceed?

Thanks.

Regards,
JP
I suggest you to use the programmable GPU instead of AWT/CPU and use a GPU fragment shader in order to have your custom renderer.

Try look at the jogl testcases and demos.
A book on modern OpenGL shaders is also a good start on how to write your own rasterizer/renderer using the GPU.
http://www.arcsynthesis.org/gltut/Basics/Tut01%20Following%20the%20Data.html
https://github.com/elect86/modern-jogl-examples/tree/master/modern-jogl-examples/src/tut01

Cheers
Xerxes