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
Loader 3ds (Read 1651 times)
Loader 3ds
Jul 11th, 2009, 9:51am
 
Hello.

Do you know a good loader '.3ds' for processing, please.

Thank's.
Re: Loader 3ds
Reply #1 - Jul 11th, 2009, 10:15am
 
Not sure if there is a 3ds support or librarie but you can use the Obj loader if you convert your 3ds files first i guess :
http://code.google.com/p/saitoobjloader/

Re: Loader 3ds
Reply #2 - Jul 11th, 2009, 12:43pm
 
Thank's.

But, It's not good, then this library needs a .mtl file !

Re: Loader 3ds
Reply #3 - Jul 11th, 2009, 12:55pm
 
Are you sure? looks more like it is optional not really needed.
Re: Loader 3ds
Reply #4 - Jul 11th, 2009, 5:48pm
 
Re: Loader 3ds
Reply #5 - Jul 11th, 2009, 11:19pm
 
Hello.

Have you a simple example with a 3ds file+texture, who works correctly, please.
But in a java 6 application, not in a 'pde' file.

Thank's.
Re: Loader 3ds
Reply #6 - Jul 12th, 2009, 12:36am
 
what are you saying? that the examples dont work correctly?

the simple example you want is called 'load3ds_beginner'. It's in the examples folder.

as for a java6 example, im sorry, you will have to do it yourself.
Re: Loader 3ds
Reply #7 - Jul 12th, 2009, 12:59am
 
Hello.

With Processing 1.0.5, I have this error:

'The library must be in a folder named 'libraries' in the sketch folder.

But, I have created this folder 'libraries' with 'mri.jar' inside !!


Thank's for your help.
Re: Loader 3ds
Reply #8 - Jul 12th, 2009, 1:27am
 
if you're using windows i believe that folder would be under '\My Documents\Processing\libraries'

in there you have to create a new folder 'mri3ds' and inside a 'library' folder to place the files.

so in the end it will be '\My Documents\Processing\libraries\mri3ds\library'

as for mac i do not know, but it might be just the same.
Re: Loader 3ds
Reply #9 - Jul 12th, 2009, 10:09am
 
Sorry, but this library does'nt works correctly.
The texture does'nt appear !!

The object 'obj' is drawn correctly, but the texture 'phobos.jpg' doesn't appear !!

  stroke(128,128,128);
  lights();

  pushMatrix();
  translate(720, 450, 0);
  scale(25.0f);

  model = new saito.objloader.OBJModel(this, "3ds/phobos.obj");
  model.drawMode(TRIANGLES);
  model.enableTexture();
  model.enableLocalTexture();
  model.setTexture(loadImage("texture/phobos.jpg"));

  model.draw();
  popMatrix();
Page Index Toggle Pages: 1