hi i want to extrude 2D contour (polyline) on a 3D path (polyline) .Can i do this by using Xith ?Any suggestions are welcome as i have tried my best on net and found one library written in C.

Thier is "GLE Tubing and Extrusion Library" in C ,does anyone know its implementation in java which can run on Jogl . also ShapeShifter is a re-write of the GLE library in Java but it runs on magician so i think i have to understand the algorithm and write on top of Jogl.

Try JGeom, it will allow you to play with NURBS representations you can do extrude as well I think they call it rail or something in this library, you will have to tesellate the NURBS geometry to Xith vertices/normals etc as I am not sure if JGeom have tesselation available.

JGeom has pretty good implementation of NURBS and Subdivision surfaces already, so on Xith there should be a good and efficient tesselation implemented rather than reimplementing the NURBS, SUbdivs from scratch. Another interesting thing would be playing with mapping coordinates for this geometry. I am not sure if JGeom already has some of that stuff in there, I know they have a utility API that interfaces with Java3D but its licensed.

will try it out...how about adding some base functionality in Xith . What i have in mind is to able to specify a convex closed ploygon on a plane and depth upto which it should be extruded.I have wriiten a small class for it ,please give your input to improve this.

It takes arguments :1. Point3f[] coordsArray :vertices of convex polygon in XY Plane ex: To draw a extruded pentagon Point a=(0,0,0), Point b=(3,0,0), Point c=(4,2,0), Point a=(0,4,0)2. float length :length in Z axis upto which this pentagon should be extruded.

Variable numlength is just variable to specify in how many layers this pentagon should be extruded.

Can anyone give me link to basic documentation about Splines ,Nerbs etc and how to use them .....and code sample implementing them for creating geomerty willl be great.I am totally new to these concepts ....I tried myself on net but was not able to find basic working examples only theoritical discussions.thanks for the help

In order to draw your curve you need to extract some discrete information that you can use. Most of the time it will be points in space, same concept applies for NURBS surfaces you just have to be much smarter about selecting points on the surface. In this case we will go along the curve function (NURBS is parametrized from 0 to 1 so if you do a point on curve with 0.5 it will give you a point in space that cuts the curve in half (length wise).

If you put these points into array and then if you connect them with straight lines you will end up with an approximation of the curve (NURBS in this case) if you do a more detailed curve sampling you will end up with smoother representation.

Now if you want to do your own implementation of curves of any sort you can find a lot of information on the following site: http://www.realtimerendering.com/ under curves and surfaces section there is a bunch of links to different concepts, there must be some coding examples in there.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org