From: Kerry L. B. <ke...@vs...> - 2000-05-16 08:59:30
|
I've got a question regarding an attempt to do something strange with gl4java. A friend wants to use some of the terrain code I've been developing for my distributed VR system in his employers app (a black box playback flight-sim product). Its currently written in C++ using VisKit over GL. We had integrated my code previously by using a slightly hacked version of my Java code that would call a GL abstraction class, which would then pass the calls through a native interface to the underlying C++ app's OpenGL context. We would like to get rid of the hacked interface (and code branch), and allow my Java code to use gl4java directly. To do this, he tried creating a glFunc object directly by copying some code from the startup classes. He was able to get it to link and run, but when this was all called from the C++ side nothing appeared when the gl4java calls are made. Are there any issues we should know about in attempting to do this? Any help would be appreciated. Many thanks. (BTW, the code being used is part of the codebase I'll soon make public, this particular package is a hybrid ROAM/RTIN terrain, supports paging for unlimited sizes, has special extensions to preserve ridgelines for line of sight special cases (i.e. no error for sniper sighting target across variably tesselated patches), and code is being added for lightmaps, synthetic textures, and some other eye candy. The heightfields are dynamically modifiable (i.e. you can blow craters trivially), and terrain following/collision is built in. Release license is BSD style with anti-GPL clause.) Kerry L. Bonin (speaking for self, insert lawyer joke here...) Sr. Engineer, Security/Cryptography & Advanced Visualization, Cisco Systems. VScape lead architect - Adaptive secure clustering for multiuser VR. |