TileRenderer replacement

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

TileRenderer replacement

timangus
Some legacy code that I maintain uses the TileRenderer to facilitate making high resolution renders. Having upgraded to jogamp 2.1.2 it seems this has been significantly changed. Is there an example or guide available that describes how to use the newer interface?

TIA.
Reply | Threaded
Open this post in threaded view
|

Re: TileRenderer replacement

gouessej
Administrator
Hi

There are several unit tests in the repository on Github. What is your problem with the new interface? Can you be more precise?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: TileRenderer replacement

timangus
I don't have a problem with it, I was just hoping there was a quick and easy upgrade path. I'll have a look at the unit tests though...
Reply | Threaded
Open this post in threaded view
|

Re: TileRenderer replacement

Sven Gothel
Administrator
On 11/11/2013 03:35 PM, timangus [via jogamp] wrote:
> I don't have a problem with it, I was just hoping there was a quick and easy
> upgrade path. I'll have a look at the unit tests though...

They do describe the upgrade path.

Since the TileRenderer* now works w/ core GL profile,
you have to take care of the PVM Matrix in a more generic manner:

  <http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/util/TileRendererBase.html#pmvmatrix>
  <http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/util/TileRendererBase.html#beginTile%28javax.media.opengl.GL%29>

TileRenderer is derived from TileRendererBase

To simplify the TileRenderer* usage, you may want to utilize:
  <http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/util/TileRendererBase.TileRendererListener.html>

However, the unit tests in jogl/src/test/com/jogamp/opengl/test/junit/jogl/tile/
should be self explanatory.

~Sven



signature.asc (911 bytes) Download Attachment