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.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › 3ds loader for processing
Pages: 1 2 
3ds loader for processing (Read 6228 times)
3ds loader for processing
Jan 1st, 2009, 11:00pm
 
happy new year people.

http://www.pixelnerve.com/v/2009/01/01/3ds-loader-for-javaprocessing/

I needed it, maybe someone else needs it too.
Re: 3ds loader for processing
Reply #1 - Jan 2nd, 2009, 4:01pm
 
news:
3ds files dont store face/vertex normals, so i had to compute them myself.
ive uploaded updates to the same zip file.


. face+vertex normal calculation (vertex by averaging face normals)
. normals debugging
. renders meshes with texture+solid faces.
. extra code from vtools

enjoy.
Re: 3ds loader for processing
Reply #2 - Jan 3rd, 2009, 4:27am
 
added:
. cg shaders used for lighting on v4
. mouse+camera control added to view the models
. render by material.


limitations known so far:
. materials only include name string. i load textures per material by using the texture name as the material name without the extension.
. materials parameters dont exist.
. documentation is missing/wrong for some classes/methods.
Re: 3ds loader for processing
Reply #3 - Jan 3rd, 2009, 9:17am
 
super! really helpful,thank you
Re: 3ds loader for processing
Reply #4 - Jan 3rd, 2009, 9:23am
 
Tthank you, can't wait to try it out!
Re: 3ds loader for processing
Reply #5 - Aug 25th, 2009, 8:26am
 
Hello,

i just released version 1.2 of the 3ds loader for processing.

* integrated the wrapper into the library. use V3dsScene.
* fixed some bugs


grab it while its hot:

http://www.pixelnerve.com/processing/libraries/mri3ds/
Re: 3ds loader for processing
Reply #6 - Aug 31st, 2009, 8:59am
 
Hello.

Can you write a simple application java working correctly, please.
Not in a file '.pde'.

Thank's.
Re: 3ds loader for processing
Reply #7 - Aug 31st, 2009, 10:36am
 
i have updated the library:

http://www.pixelnerve.com/downloads/processing/mri3ds/mri3ds_1_2.zip

if you get an opengl window in java using jogl, it's very easy to add mri3ds and render a mesh on screen.

pass a GL object as a parameter to V3dsScene()

V3dsScene( gl, filename );

and call the draw with the gl parameter aswell.

scene.draw( gl );

that will render the scene to your own jogl window
Re: 3ds loader for processing
Reply #8 - Sep 2nd, 2009, 10:58am
 
Oh, that sounds great... but i can't access the webpage, i receive a 404... Well, i'll try later then.
Re: 3ds loader for processing
Reply #9 - Sep 2nd, 2009, 1:21pm
 
Pixelnerve server was down the whole afternoon for some hardware problems, but its back online.. please, try again.
Re: 3ds loader for processing
Reply #10 - Sep 7th, 2009, 9:04am
 
Hello.

I have a java application using P3D, not OPENGL.
I want to draw a '.3ds' object in the frame.
But I don't know how to apply the library.

Thank's.
Re: 3ds loader for processing
Reply #11 - Sep 7th, 2009, 9:07am
 
mri3ds won't work with P3D.
Currently it only has support for opengl.
Re: 3ds loader for processing
Reply #12 - Oct 22nd, 2009, 8:51am
 
V,

I'm playing with this loader, which I may end up using for a virtual casino project I'm running. I just attempted to run the advanced example and it complains that it can't find an image. Something about unsatisfied link error at:

   context = CgGL.cgCreateContext();

in the CgGL tab. Is there an extra library or something that I need for this example to run?

thanks,
dan
Re: 3ds loader for processing
Reply #13 - Oct 22nd, 2009, 10:23am
 
Same here:
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: /Applications/Processing.app/Contents/Resources/Java/libraries/opengl/library/li
bjogl_cg.jnilib:
     at java.lang.ClassLoader$NativeLibrary.load(Native Method)
     at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
Re: 3ds loader for processing
Reply #14 - Oct 22nd, 2009, 11:57am
 
yes, you need Cg toolkit. get it from nVidia website.
Pages: 1 2