Anirban,
 
I would write my own Java classes to decompose a NURB into a triangle strip which could then be part of a scenegraph. There is some sample code to do this in one of the Graphics Gems books that you could covert to Java.
 
Could be a fun project...
 
 
Daniel Selman

[EMAIL PROTECTED]

Tornado Labs Ltd.
http://www.tornadolabs.com
 
[Daniel Selman]  
-----Original Message-----
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Anirban Bhadore
Sent: Friday, June 16, 2000 5:55 AM
To: [EMAIL PROTECTED]
Subject: NURBS rendering in Java3D

Hi All,
 
Presently Java3D does not support NURBS surfaces as geometry. I want to handle NURBS surfaces in a Java3D Viewer, how do I handle picking and other stuff ( which are supported by Java3D on facets )?
 
What I tried was writing a class of my own extended from javax.media.j3d.Canvas3D and overloaded the postRender() where I call my JNI which in turn makes call to OpenGL Platform Libs. And I am able to render the NURBS surfaces separately by my own JNI and the surfaces are properly rendered to the Java3D Canvas. But These NURBS surfaces ARE NOT part of the Java3D Scene Graph. And that's why normal Java3D features are not supported on these surfaces. It seems difficult( if not impossible) to add them to the Java3D Scene Graph.
 
Does anybody have any experience in this? Any suggestion will be appreciated.
 
with thanks,
Anirban

Reply via email to