ok, so there is an object in gem called the [teapot] object, which, as its name suggests, renders a 3-D teapot.
what if i want to render a train, or ultraman, or a bottle of beer, or a teapot with 2 heads, or something?
are there any objects that would allow me to render something like that? i think what would be ideal is if there was some way i could import a 3-D image made in another program.
is there something like that yet???
also (am i allowed 2 questions in one post? pleeeease!!!)
is there a good website where i can get links to ppl involved in the visual side of PD, or other objects for visual pd use ???? i can find plenty of stuff about audio, but not so much stuff about GEM and whatever.
muchos gracias
hard off wrote:
ok, so there is an object in gem called the [teapot] object, which, as its name suggests, renders a 3-D teapot.
what if i want to render a train, or ultraman, or a bottle of beer, or a teapot with 2 heads, or something?
are there any objects that would allow me to render something like that? i think what would be ideal is if there was some way i could import a 3-D image made in another program.
use [model] to load .OBJ-files (alias|wavefront)
currently only this format is supported, but i have started to write loaders for other formats (like 3ds, and...) but haven't got too far right now...
is there something like that yet???
also (am i allowed 2 questions in one post? pleeeease!!!)
i'd prefer only 1 question per mail
is there a good website where i can get links to ppl involved in the visual side of PD, or other objects for visual pd use ???? i can find plenty of stuff about audio, but not so much stuff about GEM and whatever.
well, set it up at puredata.org
mfg.adsr. IOhannes
oh man, i was so excited...i had read the help file for [model] and thought it might be my clue for 3-d rendering....
and now i know that it is, so thanks a lot, IOhannes.
but, on my first try it failed.
i got a file from here:
http://www.csit.fsu.edu/~burkardt/data/obj/obj.html
(at the bottom of the page, shuttle.obj)
but it won't load, and i get the following readout in my error-list
_glmReadMTL() failed: can't open material file "/Users/user/Desktop/./vp.mtl". _glmFindMaterial(): can't find material "glass". _glmFindMaterial(): can't find material "bone". _glmFindMaterial(): can't find material "fldkdkgrey". _glmFindMaterial(): can't find material "redbrick". _glmFindMaterial(): can't find material "black". _glmFindMaterial(): can't find material "brass". _glmFindMaterial(): can't find material "dkdkgrey".
any idea what went wrong???
but it won't load, and i get the following readout in my error-list
hmm, i tried the file and it loads perfectly on my system (using the help-patch for [model])
_glmReadMTL() failed: can't open material file "/Users/user/Desktop/./vp.mtl". _glmFindMaterial(): can't find material "glass". _glmFindMaterial(): can't find material "bone". _glmFindMaterial(): can't find material "fldkdkgrey". _glmFindMaterial(): can't find material "redbrick". _glmFindMaterial(): can't find material "black". _glmFindMaterial(): can't find material "brass". _glmFindMaterial(): can't find material "dkdkgrey".
OBJ-files support "materials" (e.g. different colors for different parts of the model); these are stored in a separate file that is named inside the .obj-file, in your case it is vp.mtl, which is not there (but this should just be silently ignored if you do not have that file (obviously you cannot use the "material"-message then)
any idea what went wrong???
not really, what do you get ? just nothing ??
restart pd/Gem and try again ... (with the help-patch, probably it is your patch ;-))
mfg.ads.r IOhannes
ahhh!!
sorry///
i don't know what went wrong. but it loaded on a second attempt.
this is cool! i just got the space shuttle and the cessna up and going.
i think i should definatley start some sort of gem page to share this sort of info with other users.
no-one has a gem page already????
On Feb 24, 2005, at 5:33 AM, IOhannes m zmoelnig wrote:
import a 3-D image made in another program.
use [model] to load .OBJ-files (alias|wavefront)
currently only this format is supported, but i have started to write loaders for other formats (like 3ds, and...) but haven't got too far right now...
...good news: I also have a "proposal"/working code for multiple loaders...all I'm doing is opening the file, checking the extension, then calling the appropriate loader...simple enuff! This much is working, I'm just getting around how to remove the other glm* stuff in a more abstract way...also, do we want all the loader code in one file, or seperate out into format specific files?
is there a good website where i can get links to ppl involved in the visual side of PD, or other objects for visual pd use ???? i can find plenty of stuff about audio, but not so much stuff about GEM and whatever.
well, set it up at puredata.org
...I think this'd be a great idea! There are quite a few visual externals: GEM, pdp/pidip, gridflow, MaPod, framestein, etc...Now if only I can get away from that damnably addictive compiler...
l8r, james