We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
3DS (Read 630 times)
3DS
Mar 12th, 2010, 9:55am
 


Hello,

I try to run 3DS-Import with a chess pawn from
http://www.mattclara.com/chessset.html

but he doesn't display anything...
just blank screen...  Cry
using Mri3ds v1.2  

Thanks!

Chrisir


/*      Mri3ds v1.2 Example
       Loads a .3ds scene using V3dsScene object from the library itself.
     For beginners this is the way to go, if you're more into expert mode, then check out the other examples and use the data structures as you please.
 */

import javax.media.opengl.*;
import processing.opengl.*;
import mri.*;

V3dsScene vscene;

void setup()
{
 size( 800, 600, OPENGL);
 frameRate( 60 );
 vscene = new V3dsScene( this, "pawn.3ds" );
}

void draw()
{
 background( 104 );
 perspective( PI*0.25, 4.0/3.0, 1, 5000 );
 camera( 0, -2, 116, 0, -3*sin(1)*2, -8, 0, 1, 0 );
 vscene.draw();
}
Page Index Toggle Pages: 1