Skip navigation.

exploreopera

| Help

Sign up | Help

The Wii Opera SDK

And Internet Channel Software that Uses It

avatar

Wii Opera SDK v2.0: New Draw.drawScene and huge accelerations

, , , , ,

I've just created a new function/method for the Draw class called "drawScene()". By using this instead of a loop of triangle draws, you can get about an extra 50% speed, depending on if you are using wireframe, fill, or both. Here is the setup for the method/function:

null = Draw.drawScene(2DPoly[][x1,y1,x2,y2,x3,y3,r,g,b], style);

"2DPoly[][x1,y1,x2,y2,x3,y3,r,g,b]" is the same argument structure as the return from Draw.getTranslation();

"style" can be a combination of Draw.WIREFRAME (1) or Draw.FILL (2). Those values can be added (+) or bitwise ORed (|) to combine the two values.

Here's an example of a frame drawn to a scene:

ThreeDee.LoadMesh(mesh);
ThreeDee.Backface();
ThreeDee.Shade();
ThreeDee.ZSort();
Draw.drawScene(ThreeDee.GetTranslation(), Draw.WIREFRAME | Draw.FILL);

3D Mesh Gallery UpdatedMore Speed Boosts to Wii Opera SDK

Write a comment

You must be logged in to write a comment. if you're not a registered member, please sign up.