As promised I have put up some code that will translate height fields
into tristrips.
At the moment it just implements the very simplest output - it generates
a test program
that includes the tristrip and texture coordinates.
The software was designed to help me translate gis grids in a number
of formats to a number of other
formats so it is probably more complicated than you were expecting.
It is also run from the command line, so you need to read the quick
guide and the install instructions and
depending on whether your height field is in asci or binary, that will
determine what parser you use.
see http://www.surak.com.au/~chris/vrml/RezIndex.html
cheers,
Chris
Thomas Brown wrote:
Hello,--I'm quite new to Java3D and I just want to implement following task.
Perhaps somebody else has already done this and could send me some
code examples or can tell me with which J3D classes and how I can
manage this:A 2-dimensional rectangular matrix should be transformed into a
3-dimensional visualization of the matrix. The values at each position
should represent the height of the actual point. (The program should
work like the 'matrixplot' in Maple. )There are two desired appearances of the 3-dimensional visualization which I
want to implement. But at first number 1 is more important:(1) the output of the visualization consists of triangulars. The
corners of the triangular are the values of the matrix. Every point
and the near area around should be in a height-dependent color.(2) The sharph edges (of the triangular) should be transformed into a smooth
curve. But I don´t know how to implement this. Perhaps splines are a
solution!? Are they implemented in Java3D? How can I find information about
it?Other constraints:
A coordinate-system should also be added, with the x-axe (rows of the
matrix), y-axe (colums) and the z-axe (the value of the matrix). This
is just a suggestion it could be different!Light effects and interactive views (clicking with the mouse or with
the arrow-key should change the point of view) should also be part of
the implementation.Thanks for any hints and tips!
--
Best regards,Thomas
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net--
GMX Tipp:Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
,--_|\
/ Oz \
Chris Thorne :)_.--._/
[EMAIL PROTECTED] v
