From: Alban <aco...@wa...> - 2002-06-02 18:17:24
|
>> 1. Is the buffer of GL4Java compactible with the buffer of opengl(c++)?? >> Though GL4Java is developed from opengl, i don't know do the buffers can= be >> shared?? By my concept, Java's memory is on the Virtual Machine; C++'s >> memory is OS dependent. > Anyone? Sven? IMHO it is very interesting question. I suppose that it > should be possible to reuse opengl context by both native and java code > (after all gl4java calls native library) but I think someone who really > knows gl4j guts should speak up :-) I guess this should be possible as well, but I don't beleive there is any interest using gl4java if you end up coding in c++, having to manage bridge= s between c++ and java code, having to modify and recompile the gl4java library and so on. In that case, it seems better to go straight for c++ ! =20 >> 3.Moreover, on the nehe web site. I found that the tutorial lesson17-dra= w >> textured font. Could I drawing the textured font with GL4Java??? such as >> using glTexParameteri(), glGenLists() , glGenLists().... > Sure, why not? These are normal OpenGL commands so they're perfectly > useable with GL4Java. I you look at the end of the article on NEHE website, there is a link to download the source and binaries in gl4java. >> 4. I am thinking, haven't make any decision. Should I use glFont lib as = JNI >> ?? info got form:http://students.cs.byu.edu/~bfish/glfont2.php >>=20 > I have not checked it in detail but Java has got nice true type font > support and I am wondering if it wouldn't be just simpler to write a > Java implementation of such library instead of messing with JNI. There are some demos apparently made by Sven in the cathegory Misc demos that makes use of glutfonts. They are named GLUT Font Stroke 1, GLUT Font Bitmap 1 & 2. But this kind of font support seems to be strictly limited to a small count of typos (like arial, helvetica, sans-serif), and doesn't appear to provide font antialiasing.=20 Sven, what can you tell us about this kind of font support ? Is it limited to a few fonts or opened to virtually any true type font ? My guess is that if you want to get perfect portability and any kind of fon= t support, the best is to go for textured fonts, the Nehe's lesson 17's way. Anyway I am very interested by the topic. If you guys have some good ideas for a smooth way of dealing with textured fonts (especialy the font texture generation, or the import of glfont files as pure java) I'm interested to discuss it. Glfont files could probably be read from from java. But when it comes to translate a c++ fread, I don't know how to deal with this. Any c++ guru coding in java willing to help ? Regards, Alban Cousini=E9 |