From: Ben H. <jb...@ho...> - 2000-06-30 16:36:12
|
Hi, I'm trying to port the LOD terrain rendering to Java using GL4Java. I have a base class Terrain which deals with the whole landscape and then I have a class called Patch which handles the level of detail and rendering for a small section of the landscape. The landscape is stored in a binary tree with each leaf representing a final triangle to be drawn. The renderer walks this tree and when it finds a leaf node, it draws it. My problem is that Terrain (the top level class) is an extension of GLAnimCanvas (so that it can be run in an applet) but I don't know what to do with the Patch class. Should it extend GLFuncJNI? Or should it extend something like GLContext? To see a 2D version at work (it'll probably give you a better idea) look at http://thor.cam.ac.uk/~jbgh2 Thanks in advance, BEN ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com |