|
Author |
Topic: loading external 3D models (Read 1756 times) |
|
elout
|
loading external 3D models
« on: Sep 17th, 2003, 8:26pm » |
|
Today I had my first little experiment, loading external 3D - data files I saved a basic model in the .ase format. Then I encountered some problems, like the 3D-file used tab and spaces all together. So it was rather difficult for me sorting out doing splitString(yourstring, '\t'); on tabs, and after that doing a second splitString(yourstring); on just spaces. Gettin errors etc. Anyway for now, I got rid off all the tabs, using my favourite text-editor that can do search-and-replace 'in a jiffy'. And I learned today that you can`t compare string in java like this; if ( llist[j] == "*MESH_VERTEX" ) For strings you have to use; if (llist[j].equals("*MESH_VERTEX")) Anyway here is my first experiment; http://www.xs4all.nl/~elout/proce55ing/meshtest02/index.html And a second experiment, using a quick and dirty lightning enhanced, because lights() doesn`t have a big contrast; http://www.xs4all.nl/~elout/proce55ing/meshtest03/index.html For me know it`s interesting (and in the future), loading external 3D data-models into p5 without a problem, .ase / .obj / .vrml / etc. And I praise the p5 team for the great software z-buffer already provided, although somewhere in the future an openGL hack should be nice as well.
|
|
|
|
REAS
|
Re: loading external 3D models
« Reply #1 on: Sep 17th, 2003, 10:05pm » |
|
well i was wondering when i'd see my first teapot in processing. amazing. there was a thread about nine months ago where people were discussing different types of models and which would be best for processing to load. you've cut through the discussion and implemented one. the opengl hack is in progress, but it's a secret.
|
|
|
|
seb
|
Re: loading external 3D models
« Reply #2 on: Sep 22nd, 2003, 5:21am » |
|
Yum!
|
|
|
|
forkinsocket
|
Re: loading external 3D models
« Reply #4 on: Dec 14th, 2003, 8:37am » |
|
Simon Greenwold also has some good looking object importing examples on his syllabus site for the Model-Based Design course at Yale Arch. http://www.architecture.yale.edu/872a/ Update: ooh. This object import is a feature of MultiProcessing, an extension of Processing. This looks great.
|
« Last Edit: Dec 14th, 2003, 8:43am by forkinsocket » |
|
|
|
|
|