Logo
Mesh Data: (info)

Mesh Description: (copyright, comments, etc)

Default Red: (0-255)

Default Green (0-255)

Default Blue: (0-255)


The input format for a mesh is a RAW file exported from a 3D modeling program like Milk Shape. RAW files contain plain text that starts with an object name declaration on the first line then contains triangle data on each following line, listed as space- and tab-delimited floating point values. Unfortunately RAW files contain no color data, so default values must be specified for the exported mesh. Although RAW files can potentially contain unlimited triangles, one has to remember that the Wii Opera SDK is meant to run on the Internet Channel, and having more than about 200 triangles in a scene (not counting hidden ones) can drop the framerate below the Web standard of 15fps. Also, for simplicity, each mesh must contain just one object group.

Below is an example of a RAW mesh as exported from Milk Shape:

Cube
-100.000000 100.000000 100.000000   -100.000000 -100.000000 100.000000   100.000000 100.000000 100.000000
-100.000000 -100.000000 100.000000   100.000000 -100.000000 100.000000   100.000000 100.000000 100.000000
100.000000 100.000000 100.000000   100.000000 -100.000000 100.000000   100.000000 100.000000 -100.000000
100.000000 -100.000000 100.000000   100.000000 -100.000000 -100.000000   100.000000 100.000000 -100.000000
100.000000 100.000000 -100.000000   100.000000 -100.000000 -100.000000   -100.000000 100.000000 -100.000000
100.000000 -100.000000 -100.000000   -100.000000 -100.000000 -100.000000   -100.000000 100.000000 -100.000000
-100.000000 100.000000 -100.000000   -100.000000 -100.000000 -100.000000   -100.000000 100.000000 100.000000
-100.000000 -100.000000 -100.000000   -100.000000 -100.000000 100.000000   -100.000000 100.000000 100.000000
-100.000000 100.000000 -100.000000   -100.000000 100.000000 100.000000   100.000000 100.000000 -100.000000
-100.000000 100.000000 100.000000   100.000000 100.000000 100.000000   100.000000 100.000000 -100.000000
-100.000000 -100.000000 100.000000   -100.000000 -100.000000 -100.000000   100.000000 -100.000000 100.000000
-100.000000 -100.000000 -100.000000   100.000000 -100.000000 -100.000000   100.000000 -100.000000 100.000000
		
Below is an example of the exported mesh after this webpage converts it with color values of (255,255,255):

//
var mesh_Cube = "-100,100,100,-100,-100,100,100,100,100,255,255,255;-100,-100,100,100,-100,100,100,100,100,255,255,255;100,100,100,100,-100,100,100,100,-100,255,255,255;100,-100,100,100,-100,-100,100,100,-100,255,255,255;100,100,-100,100,-100,-100,-100,100,-100,255,255,255;100,-100,-100,-100,-100,-100,-100,100,-100,255,255,255;-100,100,-100,-100,-100,-100,-100,100,100,255,255,255;-100,-100,-100,-100,-100,100,-100,100,100,255,255,255;-100,100,-100,-100,100,100,100,100,-100,255,255,255;-100,100,100,100,100,100,100,100,-100,255,255,255;-100,-100,100,-100,-100,-100,100,-100,100,255,255,255;-100,-100,-100,100,-100,-100,100,-100,100,255,255,255";
The Wii Opera SDK is ©2007-2010 Daniel Gump. All Rights Reserved. Wii and Nintendo are trademarks of Nintendo Co. Ltd. Opera is a product of Opera Software ASA. The Wii Opera SDK is not affiliated with either party in any way but is an open source tool to promote the usage of the great products both companies create.