Skip to main content
GameDev.net gamedev.net
🔒 Locked

[java] sawtooth when loading a self-made data using Java3D...

Started by jiapei100 May 25, 2010 at 2:53 AM 0 replies 600+ views
Original Post
jiapei100
jiapei100
Hi, all: I'm trying to load a 3D data at http://www.visionopen.com/input_sample_sphere_radiation.dat. However, when loading, by using Java3D, I always obtain those sawtooths, please refer to file http://www.visionopen.com/input_sample_sphere_radiation.jpg If using "tecplot" (refer to http://www.tecplot.com/ ), I'm able to obtain much better result as http://www.visionopen.com/input_sample_sphere_radiation_trecplot.jpg Can anybody help to load the 3D data file "input_sample_sphere_radiation.dat" without too much sawtooths? In addition, be kind enough to leave your code as well? BTW, my code to load it is attached:
gi = new GeometryInfo(GeometryInfo.POLYGON_ARRAY);
gi.setCoordinates(getNodesVertices1());
int[] element = getElements();
gi.setCoordinateIndices(element);
gi.setStripCounts(getStripCount1());
gi.setColors(getColor1());
gi.setColorIndices(element); 
Looking forward to your reply. Best Regards JIA Pei

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.