Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

12045 Posts in 1593 Topics- by 593 Members - Latest Member: zhang

25. May 2013, 02:04:48 pm
Xith3D CommunityProjectsYour Projects (Moderator: 'n ddrylliog)NURBS Help
Pages: [1]
Print
Author Topic: NURBS Help  (Read 3326 times)
dinaharchery
Just dropped in

Offline Offline

Posts: 7


View Profile Email
« on: 01. January 2008, 10:39:03 pm »

Please Help,

I have been searching all over for a Java 3D API with NURBS implementation (specifically Surface trimming). Can anyone tell me if Xith3D has NURBS surface trimming implementation (such as OpenGL's GLU)? If so, can you direct me to a tutorial on this using Xith3D or some simple example code? If not, do you know of any Java 3D API with this feature?

Thank you for any help. Grin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Online Online

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #1 on: 01. January 2008, 11:49:58 pm »

Well, there is not built-in NURBS functionality in Xith3D. But it shouldn't be too difficult to add that, if you know/understand the formulas, that NURBS are defined on. I suggest to search Wikipedia for that (here is a german version. Didn't find the english one right now).

In principle you only have to compute the function value for each vertex of a grid shape.

I guess, it would be best to write a GLSL program and apply it to an org.xith3d.scenegraph.primitives.Grid.

Does this help?

Marvin
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #2 on: 02. January 2008, 10:39:12 am »

English version : http://en.wikipedia.org/wiki/Nonuniform_rational_B-spline
Logged
dinaharchery
Just dropped in

Offline Offline

Posts: 7


View Profile Email
« Reply #3 on: 02. January 2008, 01:34:24 pm »

Thanks everyone for the information. 

I was just hoping there was a NURBS surface trimming option somewhere for the Java API.  I have heard that implementing basic NURBS is no big issue however, surface trimming is another problem (a BIG problem). However, it looks as if I have no choice but to give it my best shot and see what I can do. If I come up with something I will definately post it because I believe this would be of great use to a lot of programmers of Java out there.

Thanks again.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Online Online

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #4 on: 02. January 2008, 01:55:26 pm »

Hmm... I found this. Sounds indeed complicated. Good luck Smiley. And it would be great, if you would post your results here. I would happily integrate them into the xith utilities.

Marvin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Online Online

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #5 on: 02. January 2008, 02:56:19 pm »

Hey, does this help?

Marvin
Logged
dinaharchery
Just dropped in

Offline Offline

Posts: 7


View Profile Email
« Reply #6 on: 03. January 2008, 12:40:10 pm »

Wow,

Thank you. I will check out the JOGL link and see if it is what I need.

Once again, thanks.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic