Pix\_texture
Hi everyone !
i'm using Gem to Vjing but i have so problems
on display .png or .tif pictures with alpha Layer.
I want to superpose several outlined images without
alpha but png doesn't work on Windows, so i try
on ubuntu:
[gemhead] [alpha] [pix_image] [translateXYZ] [pix_draw]
but i can't resize with pix_draw and it's really slow when
i load a picture....
http://mcnaze.free.fr/pix_draw.png
[gemhead] [alpha] [pix_image] [translateXYZ] [pix_texture] [square 4]
but my images (which are solid color) are displayed with
an ugly outline.
http://mcnaze.free.fr/pix_texture.png
Is there a way to display several clean pictures without alpha?
Thanks a lot.
G.
Fedora 10 : Gem: can't load library
hi there,
I've got pd running fine for sounds but I'ld like Gem (for a reactable); but I've got this error at pd startup :
Gem: can't load library
I am with Fedora 10,
kernel :
$ uname -a
Linux hal 2.6.27.37-170.2.104.fc10.i686 #1 SMP Mon Oct 12 22:01:53 EDT 2009 i686 i686 i386 GNU/Linux
pd version :
$ yum info pd
Loaded plugins: refresh-packagekit
Available Packages
Name : pd
Arch : i386
Version : 0.39.3
Release : 1.cvs.07.07.23.fc10.ccrma
Size : 5.9 M
Repo : planetccrma
Summary : Real-time patchable audio and multimedia processor.
URL : http://pure-data.sourceforge.net/
License : GPL
Description: Pd gives you a canvas for patching together modules that analyze,
: process, and synthesize sounds, together with a rich palette of
: real-time control and I/O possibilities. Similar to Max
: (Cycling74) and JMAX (IRCAM). A related software package named Gem
: extends Pd's capabilities to include graphical rendering.
Here is what pd tells when started with "pd" :
[import] $Revision: 1.2 $
[import] is still in development, the interface could change!
compiled against Pd version 0.41.4
couldn't open MIDI input device 0
couldn't open MIDI output device 0
opened 0 MIDI input device(s) and 0 MIDI output device(s).
libdir loader $Revision: 1.8 $
compiled on Oct 27 2009 at 17:32:35
compiled against Pd version 0.41.4.extended
Gem: can't load library
libdir_loader: added 'cyclone' to the global objectclass path
libdir_loader: added 'zexy' to the global objectclass path
libdir_loader: added 'creb' to the global objectclass path
libdir_loader: added 'cxc' to the global objectclass path
libdir_loader: added 'iemlib' to the global objectclass path
libdir_loader: added 'list-abs' to the global objectclass path
libdir_loader: added 'mapping' to the global objectclass path
libdir_loader: added 'markex' to the global objectclass path
libdir_loader: added 'maxlib' to the global objectclass path
libdir_loader: added 'memento' to the global objectclass path
libdir_loader: added 'mjlib' to the global objectclass path
libdir_loader: added 'motex' to the global objectclass path
libdir_loader: added 'oscx' to the global objectclass path
libdir_loader: added 'pddp' to the global objectclass path
libdir_loader: added 'pdogg' to the global objectclass path
libdir_loader: added 'pixeltango' to the global objectclass path
libdir_loader: added 'rradical' to the global objectclass path
libdir_loader: added 'sigpack' to the global objectclass path
libdir_loader: added 'smlib' to the global objectclass path
libdir_loader: added 'toxy' to the global objectclass path
libdir_loader: added 'unauthorized' to the global objectclass path
libdir_loader: added 'pan' to the global objectclass path
libdir_loader: added 'freeverb' to the global objectclass path
libdir_loader: added 'hcs' to the global objectclass path
libdir_loader: added 'jmmmp' to the global objectclass path
libdir_loader: added 'ext13' to the global objectclass path
libdir_loader: added 'ggee' to the global objectclass path
libdir_loader: added 'flib' to the global objectclass path
libdir_loader: added 'ekext' to the global objectclass path
libdir_loader: added 'flatspace' to the global objectclass path
pdp: can't load library
pidip: can't load library
And here is part of what pd tells when started with "pd -verbose" :
libdir loader $Revision: 1.8 $
compiled on Oct 27 2009 at 17:32:35
compiled against Pd version 0.41.4.extended
tried ./Gem.l_i386 and failed
tried /usr/share/fonts/bitstream-vera/Gem.l_i386 and failed
tried /usr/lib/pd/extra/cyclone/Gem.l_i386 and failed
tried /usr/lib/pd/extra/zexy/Gem.l_i386 and failed
tried /usr/lib/pd/extra/creb/Gem.l_i386 and failed
tried /usr/lib/pd/extra/cxc/Gem.l_i386 and failed
tried /usr/lib/pd/extra/iemlib/Gem.l_i386 and failed
tried /usr/lib/pd/extra/list-abs/Gem.l_i386 and failed
tried /usr/lib/pd/extra/mapping/Gem.l_i386 and failed
tried /usr/lib/pd/extra/jmmmp/Gem.l_i386 and failed
tried /usr/lib/pd/extra/maxlib/Gem.l_i386 and failed
tried /usr/lib/pd/extra/memento/Gem.l_i386 and failed
tried /usr/lib/pd/extra/mjlib/Gem.l_i386 and failed
tried /usr/lib/pd/extra/markex/Gem.l_i386 and failed
tried /usr/lib/pd/extra/oscx/Gem.l_i386 and failed
tried /usr/lib/pd/extra/pddp/Gem.l_i386 and failed
tried /usr/lib/pd/extra/pdogg/Gem.l_i386 and failed
tried /usr/lib/pd/extra/motex/Gem.l_i386 and failed
tried /usr/lib/pd/extra/pmpd/Gem.l_i386 and failed
tried /usr/lib/pd/extra/rradical/Gem.l_i386 and failed
tried /usr/lib/pd/extra/sigpack/Gem.l_i386 and failed
tried /usr/lib/pd/extra/pixeltango/Gem.l_i386 and failed
tried /usr/lib/pd/extra/toxy/Gem.l_i386 and failed
tried /usr/lib/pd/extra/unauthorized/Gem.l_i386 and failed
tried /usr/lib/pd/extra/pan/Gem.l_i386 and failed
tried /usr/lib/pd/extra/smlib/Gem.l_i386 and failed
tried /usr/lib/pd/extra/hcs/Gem.l_i386 and failed
tried /usr/lib/pd/extra/freeverb/Gem.l_i386 and failed
tried /usr/lib/pd/extra/ggee/Gem.l_i386 and failed
tried /usr/lib/pd/extra/ext13/Gem.l_i386 and failed
tried /usr/lib/pd/extra/flib/Gem.l_i386 and failed
tried /usr/lib/pd/extra/ekext/Gem.l_i386 and failed
tried /usr/lib/pd/extra/Gem.l_i386 and failed
tried /usr/lib/pd/extra/flatspace/Gem.l_i386 and failed
tried /home/zbl/pd-externals/Gem.l_i386 and failed
tried /usr/local/lib/pd-externals/Gem.l_i386 and failed
tried /usr/lib/pd/extra/Gem.l_i386 and failed
tried ./Gem.pd_linux and failed
tried /usr/share/fonts/bitstream-vera/Gem.pd_linux and failed
tried /usr/lib/pd/extra/cyclone/Gem.pd_linux and failed
tried /usr/lib/pd/extra/zexy/Gem.pd_linux and failed
tried /usr/lib/pd/extra/creb/Gem.pd_linux and failed
tried /usr/lib/pd/extra/cxc/Gem.pd_linux and failed
tried /usr/lib/pd/extra/iemlib/Gem.pd_linux and failed
tried /usr/lib/pd/extra/list-abs/Gem.pd_linux and failed
tried /usr/lib/pd/extra/mapping/Gem.pd_linux and failed
tried /usr/lib/pd/extra/jmmmp/Gem.pd_linux and failed
tried /usr/lib/pd/extra/maxlib/Gem.pd_linux and failed
tried /usr/lib/pd/extra/memento/Gem.pd_linux and failed
tried /usr/lib/pd/extra/mjlib/Gem.pd_linux and failed
tried /usr/lib/pd/extra/markex/Gem.pd_linux and failed
tried /usr/lib/pd/extra/oscx/Gem.pd_linux and failed
tried /usr/lib/pd/extra/pddp/Gem.pd_linux and failed
tried /usr/lib/pd/extra/pdogg/Gem.pd_linux and failed
tried /usr/lib/pd/extra/motex/Gem.pd_linux and failed
tried /usr/lib/pd/extra/pmpd/Gem.pd_linux and failed
tried /usr/lib/pd/extra/rradical/Gem.pd_linux and failed
tried /usr/lib/pd/extra/sigpack/Gem.pd_linux and failed
tried /usr/lib/pd/extra/pixeltango/Gem.pd_linux and failed
tried /usr/lib/pd/extra/toxy/Gem.pd_linux and failed
tried /usr/lib/pd/extra/unauthorized/Gem.pd_linux and failed
tried /usr/lib/pd/extra/pan/Gem.pd_linux and failed
tried /usr/lib/pd/extra/smlib/Gem.pd_linux and failed
tried /usr/lib/pd/extra/hcs/Gem.pd_linux and failed
tried /usr/lib/pd/extra/freeverb/Gem.pd_linux and failed
tried /usr/lib/pd/extra/ggee/Gem.pd_linux and failed
tried /usr/lib/pd/extra/ext13/Gem.pd_linux and failed
tried /usr/lib/pd/extra/flib/Gem.pd_linux and failed
tried /usr/lib/pd/extra/ekext/Gem.pd_linux and failed
tried /usr/lib/pd/extra/Gem.pd_linux and failed
tried /usr/lib/pd/extra/flatspace/Gem.pd_linux and failed
tried /home/zbl/pd-externals/Gem.pd_linux and failed
tried /usr/local/lib/pd-externals/Gem.pd_linux and failed
tried /usr/lib/pd/extra/Gem.pd_linux and failed
tried ./Gem/Gem.l_i386 and failed
tried /usr/share/fonts/bitstream-vera/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/cyclone/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/zexy/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/creb/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/cxc/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/iemlib/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/list-abs/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/mapping/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/jmmmp/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/maxlib/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/memento/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/mjlib/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/markex/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/oscx/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/pddp/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/pdogg/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/motex/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/pmpd/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/rradical/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/sigpack/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/pixeltango/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/toxy/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/unauthorized/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/pan/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/smlib/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/hcs/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/freeverb/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/ggee/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/ext13/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/flib/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/ekext/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/flatspace/Gem/Gem.l_i386 and failed
tried /home/zbl/pd-externals/Gem/Gem.l_i386 and failed
tried /usr/local/lib/pd-externals/Gem/Gem.l_i386 and failed
tried /usr/lib/pd/extra/Gem/Gem.l_i386 and failed
tried ./Gem/Gem.pd_linux and failed
tried /usr/share/fonts/bitstream-vera/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/cyclone/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/zexy/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/creb/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/cxc/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/iemlib/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/list-abs/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/mapping/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/jmmmp/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/maxlib/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/memento/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/mjlib/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/markex/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/oscx/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/pddp/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/pdogg/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/motex/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/pmpd/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/rradical/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/sigpack/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/pixeltango/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/toxy/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/unauthorized/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/pan/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/smlib/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/hcs/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/freeverb/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/ggee/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/ext13/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/flib/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/ekext/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/flatspace/Gem/Gem.pd_linux and failed
tried /home/zbl/pd-externals/Gem/Gem.pd_linux and failed
tried /usr/local/lib/pd-externals/Gem/Gem.pd_linux and failed
tried /usr/lib/pd/extra/Gem/Gem.pd_linux and failed
tried ./Gem/Gem-meta.pd and failed
tried /usr/share/fonts/bitstream-vera/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/cyclone/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/zexy/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/creb/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/cxc/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/iemlib/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/list-abs/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/mapping/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/jmmmp/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/maxlib/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/memento/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/mjlib/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/markex/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/oscx/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/pddp/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/pdogg/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/motex/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/pmpd/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/rradical/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/sigpack/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/pixeltango/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/toxy/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/unauthorized/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/pan/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/smlib/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/hcs/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/freeverb/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/ggee/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/ext13/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/flib/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/ekext/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/flatspace/Gem/Gem-meta.pd and failed
tried /home/zbl/pd-externals/Gem/Gem-meta.pd and failed
tried /usr/local/lib/pd-externals/Gem/Gem-meta.pd and failed
tried /usr/lib/pd/extra/Gem/Gem-meta.pd and failed
Gem: can't load library
I can't locate files like Gem-meta.pd or Gem.pd_linux on the computer;
I keep investigating, but any hint is welcome, thanks
Isight gem question
nope, works like a charm here.
macbook 13" alu osx 10.5.8
pd-extended 0.41.4
you don't have another program open which might access the cam?!
pd main window sayst:
[pix_videoDarwin]: height 320 width 240
[pix_videoDarwin]: SG channnel Device List count 3 index 2
[pix_videoDarwin]: SG channnel Device List DV Video
[pix_videoDarwin]: SG channnel Device List IIDC FireWire Video
[pix_videoDarwin]: SG channnel Device List USB Video Class Videoem/Library/QuickTime/QuickTimeIIDCDigitize
error: [pix_videoDarwin]: SGSetChannelDevice returned error -9408
... you might be able to track this down from the Find menu.
[pix_videoDarwin]: vdigName is Built-in iSight
[pix_videoDarwin]: digitizer rect is top 0 bottom 1200 left 0 right 1600
[pix_videoDarwin]: active src rect is top 0 bottom 1200 left 0 right 1600
error: [pix_videoDarwin]: could not set SG Rect
[pix_videoDarwin]: set SG NormalQuality
[pix_videoDarwin]: using YUV
GemwinMac: width - 500 height - 500
GemWindow Activate err = 0
GEM: GLEW version 1.5.0
GEM: Start rendering
Totally lame NOOB Gem installation question
apologies for being such an idiot and insulting your forum with my lowliness
I've been having lots of fun with puredata and want to start incorporating some images and possibly video into my stuff.
I have Pd extended - which apparently has GEM included, although I can fins no trace of it.
I've downloaded GEM for mac, but the instructions for installing it make no sense with what actually appears once it's downloaded. The instuctions:
"GEM under Mac OSX
* Download GEM for MacOSX
* Unpack"
All this is fine
"* copy folder content to your pd installation, under /gem
* copy or move Gem.PD_Darwin to PDs extra folder
* start with additional parameter -lib gem"
These are not fine for me..I don't appear to have a pd installation folder...just the app.
I also don't seem to have anything called Gem.PD_Darwin
I've tried about a million variations on the correct link in the startup menu of pd to load up GEM but it never works.
I'm a bit exasperated now...and desperate enough to show myself up as a muppet in front of you guys....pleeease can anyone help me out here?
btw I've been lurking for months and picked up many many wonderful tips and bits of advice on here, for which I thank you all.
Pix\_data trouble
that isn't doing what you think it is doing, i think
pix_data grabs data from the "pix" chain, not the frame buffer, so if you move the square, or the window is a different shape, the displayed position of the image texture differs from the mouse coordinates.
you need to grab the frame buffer, which is slow in general - but if you only have 1 pixel to grab (I assume there is only one mouse!) then it shouldn't be too bad.
try using pix_snap before pix_data, setting the dimensions to snap to 1x1 pixels and setting the position of pix_snap from mouse coordinates, then set pix_data to just output that single point.
... some time passes, while patching ...
ah, maybe it's that gemmouse returns window manager coordinates where (0,0) is top-left not opengl where (0,0) is bottom-left?
at least the attached "works" here to some extent
http://www.pdpatchrepo.info/hurleur/gem-grab-mouse-pixel-example.pd
2 texture streams into one, as either mix, subtraction or screen?
Hey arif, thanks! Alas, this is exactly where I hit the wall. Because any colour tinting object added to the left pix_video streams (whether pix_curve, colorRGB, emissionrgb) affects all subsequent shapes pix_video or pix_film. In other words any parallel pix_video or pix_film will be coloured by the first (left) pix_video color effect, regardless of what object is in their string.
So if I understand ClaudiusMaximus correctly, it may work if I mix separate pix_textures, ie do the mixing after two textures are created, not mixing two pix_videos into one pix_texture.
This may maintain the distinct colouring applied to the separate video streams.
Any thoughts on how to mix/overlay/blend two pix_textures?
cheers
ps if this is not clear, I've attached a pd file set up with colorRGB on separate pix_films. you need to load your own video files into a folder with the patch to use it (same pix dimensions, same names as in patch). Only the left color object will have an effect on the final image.
Loading Gem in pd-extended 0.40.3
Thanks nestor, that was the solution. I needed to add:
/Applications/Pd-extended.app/Contents/Resources/extra/Gem/Gem
to the startup options. Gem now loads just fine. As an aside, another way to load gem is to create the object [Gem] in a patch.
I have to say that I was puzzled that I hadn't really found this stuff documented anywhere! In the end, I found it written in Readme.1st of the Gem distribution. I guess I was a fool not to read it first. The relevant lines were:
(quote)
this Gem.d_fat is the Gem-binary for macOS-X (Universal Binary)
in order to use it, put the Gem/-directory into a place where pd can find it:
either put it in pd's extra/ directory, or add the full path of the Gem/
directory to the search-paths of Pd
then start Pd and load Gem:
- either create an object [Gem]
- or add it to the startup-libraries (via the Pd->Settings->Startup menu) and
restart
you should get a splash-screen on the Pd-console telling you that Gem has
successfully been loaded.
then try the help-patches (in the Gem/ folder)
and the example-patches (in this directory)
(end quote)
3d extrusion from pix\_texture?
hi forum~
this is what i want to do:
1. load an input (pix_film/pix_movie/pix_video = ok).
2. remove colors / make parts of the input transparent (pix_alpha = ok).
3. apply this modified input to a rectangle geo (pix_texture = ok).
4. then *extrude* this 2d texture into a simple 3d geo (like a cuboid) while preserving the alpha channel (i.e. transparent parts of the image look like 'holes' in the 3d object).
i am really not sure how to proceed with 4. i stole the image below as the closest example i could google (although it doesn't demonstrate the alpha preservation).
my first thought was to use pix_texture on a cuboid, however this doesn't seem to be the solution as it applies the 2d texture to all 6 surfaces (i.e. i guess a cuboid has no 'front' or 'back'). i want the 2d texture to stay facing the camera and extrude the texture back farther into the 3d space. or is there a way of modifying the default pix_texture behaviour on 3d geos? like having control on how it fills the 'Z' dimension...
is there an OpenGL object that achieves this effect?
glBindTexture?
should i install an OpenGL external? http://linas.org/gle/index.html
should i switch to blender or something?
help!
Gem object list.
I patched my Pd to print out all classes created, here's what Gem provides (current CVS version compiled on Linux with most options enabled):
accumrotate alpha ambient ambientRGB camera circle color colorRGB colorSquare colour colourRGB cone cube cuboid curve curve3d cylinder depth diffuse diffuseRGB disk emission emissionRGB fragment_program Gem gemframebuffer GEMglAccum GEMglActiveTextureARB GEMglAlphaFunc GEMglAreTexturesResident GEMglArrayElement GEMglBegin GEMglBindProgramARB GEMglBindTexture GEMglBitmap GEMglBlendEquation GEMglBlendFunc GEMglCallList GEMglClear GEMglClearAccum GEMglClearColor GEMglClearDepth GEMglClearIndex GEMglClearStencil GEMglClipPlane GEMglColor3b GEMglColor3bv GEMglColor3d GEMglColor3dv GEMglColor3f GEMglColor3fv GEMglColor3i GEMglColor3iv GEMglColor3s GEMglColor3sv GEMglColor3ub GEMglColor3ubv GEMglColor3ui GEMglColor3uiv GEMglColor3us GEMglColor3usv GEMglColor4b GEMglColor4bv GEMglColor4d GEMglColor4dv GEMglColor4f GEMglColor4fv GEMglColor4i GEMglColor4iv GEMglColor4s GEMglColor4sv GEMglColor4ub GEMglColor4ubv GEMglColor4ui GEMglColor4uiv GEMglColor4us GEMglColor4usv GEMglColorMask GEMglColorMaterial GEMglCopyPixels GEMglCopyTexImage1D GEMglCopyTexImage2D GEMglCopyTexSubImage1D GEMglCopyTexSubImage2D GEMglCullFace GEMglDeleteTextures GEMglDepthFunc GEMglDepthMask GEMglDepthRange GEMglDisable GEMglDisableClientState GEMglDrawArrays GEMglDrawBuffer GEMglDrawElements GEMglEdgeFlag GEMglEnable GEMglEnableClientState GEMglEnd GEMglEndList GEMglEvalCoord1d GEMglEvalCoord1dv GEMglEvalCoord1f GEMglEvalCoord1fv GEMglEvalCoord2d GEMglEvalCoord2dv GEMglEvalCoord2f GEMglEvalCoord2fv GEMglEvalMesh1 GEMglEvalMesh2 GEMglEvalPoint1 GEMglEvalPoint2 GEMglFeedbackBuffer GEMglFinish GEMglFlush GEMglFogf GEMglFogfv GEMglFogi GEMglFogiv GEMglFrontFace GEMglFrustum GEMglGenLists GEMglGenProgramsARB GEMglGenTextures GEMglGetError GEMglGetFloatv GEMglGetMapdv GEMglGetMapfv GEMglGetMapiv GEMglGetPointerv GEMglGetString GEMglHint GEMglIndexd GEMglIndexdv GEMglIndexf GEMglIndexfv GEMglIndexi GEMglIndexiv GEMglIndexMask GEMglIndexs GEMglIndexsv GEMglIndexub GEMglIndexubv GEMglInitNames GEMglIsEnabled GEMglIsList GEMglIsTexture GEMglLightf GEMglLighti GEMglLightModelf GEMglLightModeli GEMglLineStipple GEMglLineWidth GEMglLoadIdentity GEMglLoadMatrixd GEMglLoadMatrixf GEMglLoadName GEMglLoadTransposeMatrixd GEMglLoadTransposeMatrixf GEMglLogicOp GEMglMap1d GEMglMap1f GEMglMap2d GEMglMap2f GEMglMapGrid1d GEMglMapGrid1f GEMglMapGrid2d GEMglMapGrid2f GEMglMaterialf GEMglMateriali GEMglMatrixMode GEMglMultiTexCoord2fARB GEMglMultMatrixd GEMglMultMatrixf GEMglMultTransposeMatrixd GEMglMultTransposeMatrixf GEMglNewList GEMglNormal3b GEMglNormal3bv GEMglNormal3d GEMglNormal3dv GEMglNormal3f GEMglNormal3fv GEMglNormal3i GEMglNormal3iv GEMglNormal3s GEMglNormal3sv GEMglOrtho GEMglPassThrough GEMglPixelStoref GEMglPixelStorei GEMglPixelTransferf GEMglPixelTransferi GEMglPixelZoom GEMglPointSize GEMglPolygonMode GEMglPolygonOffset GEMglPopAttrib GEMglPopClientAttrib GEMglPopMatrix GEMglPopName GEMglPrioritizeTextures GEMglProgramEnvParameter4dARB GEMglProgramEnvParameter4fvARB GEMglProgramLocalParameter4fvARB GEMglProgramStringARB GEMglPushAttrib GEMglPushClientAttrib GEMglPushMatrix GEMglPushName GEMglRasterPos2d GEMglRasterPos2dv GEMglRasterPos2f GEMglRasterPos2fv GEMglRasterPos2i GEMglRasterPos2iv GEMglRasterPos2s GEMglRasterPos2sv GEMglRasterPos3d GEMglRasterPos3dv GEMglRasterPos3f GEMglRasterPos3fv GEMglRasterPos3i GEMglRasterPos3iv GEMglRasterPos3s GEMglRasterPos3sv GEMglRasterPos4d GEMglRasterPos4dv GEMglRasterPos4f GEMglRasterPos4fv GEMglRasterPos4i GEMglRasterPos4iv GEMglRasterPos4s GEMglRasterPos4sv GEMglRectd GEMglRectf GEMglRecti GEMglRects GEMglRenderMode GEMglRotated GEMglRotatef GEMglScaled GEMglScalef GEMglScissor GEMglSelectBuffer GEMglShadeModel GEMglStencilFunc GEMglStencilMask GEMglStencilOp GEMglTexCoord1d GEMglTexCoord1dv GEMglTexCoord1f GEMglTexCoord1fv GEMglTexCoord1i GEMglTexCoord1iv GEMglTexCoord1s GEMglTexCoord1sv GEMglTexCoord2d GEMglTexCoord2dv GEMglTexCoord2f GEMglTexCoord2fv GEMglTexCoord2i GEMglTexCoord2iv GEMglTexCoord2s GEMglTexCoord2sv GEMglTexCoord3d GEMglTexCoord3dv GEMglTexCoord3f GEMglTexCoord3fv GEMglTexCoord3i GEMglTexCoord3iv GEMglTexCoord3s GEMglTexCoord3sv GEMglTexCoord4d GEMglTexCoord4dv GEMglTexCoord4f GEMglTexCoord4fv GEMglTexCoord4i GEMglTexCoord4iv GEMglTexCoord4s GEMglTexCoord4sv GEMglTexEnvf GEMglTexEnvi GEMglTexGend GEMglTexGenf GEMglTexGenfv GEMglTexGeni GEMglTexParameterf GEMglTexParameteri GEMglTexSubImage1D GEMglTexSubImage2D GEMglTranslated GEMglTranslatef GEMglUniform1fARB GEMgluPerspective GEMglUseProgramObjectARB GEMglVertex2d GEMglVertex2dv GEMglVertex2f GEMglVertex2fv GEMglVertex2i GEMglVertex2iv GEMglVertex2s GEMglVertex2sv GEMglVertex3d GEMglVertex3dv GEMglVertex3f GEMglVertex3fv GEMglVertex3i GEMglVertex3iv GEMglVertex3s GEMglVertex3sv GEMglVertex4d GEMglVertex4dv GEMglVertex4f GEMglVertex4fv GEMglVertex4i GEMglVertex4iv GEMglVertex4s GEMglVertex4sv GEMglViewport gemhead gemkeyboard gemkeyname gemlist gemlist_info gemlist_matrix gemmouse GemSplash gemwin GLdefine glsl_fragment glsl_program glsl_vertex imageVert light linear_path mesh_square model multimodel newWave ortho part_color part_damp part_draw part_follow part_gravity part_head part_info part_killold part_killslow part_orbitpoint part_render part_sink part_size part_source part_targetcolor part_targetsize part_velcone part_velocity part_velsphere part_vertex pix_2gray pix_2grey pix_a_2gray pix_a_2grey pix_add pix_aging pix_alpha pix_artoolkit pix_background pix_backlight pix_biquad pix_bitmask pix_blob pix_blur pix_buf pix_buffer pix_buffer_read pix_buffer_write pix_chroma_key pix_clearblock pix_color pix_coloralpha pix_colormatrix pix_colorreduce pix_colour pix_colouralpha pix_colourmatrix pix_colourreduce pix_compare pix_composite pix_contrast pix_convert pix_convolve pix_coordinate pix_crop pix_curve pix_data pix_deinterlace pix_delay pix_depot pix_diff pix_dot pix_draw pix_dump pix_duotone pix_emboss pix_fiducialtrack pix_film pix_film pix_filmNEW pix_filmQT pix_filmQT pix_flip pix_freeframe pix_gain pix_get pix_gray pix_grey pix_halftone pix_histo pix_hit pix_hsv2rgb pix_image pix_imageInPlace pix_info pix_invert pix_kaleidoscope pix_levels pix_lumaoffset pix_mask pix_mean_color pix_metaimage pix_mix pix_motionblur pix_movement pix_movement2 pix_movie pix_movieNEW pix_multiblob pix_multiimage pix_multiply pix_multitexture pix_normalize pix_offset pix_pix2sig pix_pix2sig~ pix_posterize pix_put pix_puzzle pix_rds pix_record pix_rectangle pix_refraction pix_resize pix_rgb2hsv pix_rgba pix_roll pix_rtx pix_scanline pix_separator pix_set pix_share_read pix_share_write pix_sig2pix pix_sig2pix~ pix_snap pix_snap2tex pix_subtract pix_takealpha pix_test pix_texture pix_texture2 pix_threshold pix_threshold_bernsen pix_tIIR pix_video pix_videoNEW pix_vpaint pix_write pix_yuv pix_zoom polygon polygon_smooth pqtorusknots primTri rectangle render_trigger ripple rotate rotateXYZ rubber scale scaleXYZ scopeXYZ scopeXYZ~ separator shearXY shearXZ shearYX shearYZ shearZX shearZY shininess slideSquares specular specularRGB sphere sphere3d spline_path spot_light square teapot text2d text3d textextruded textoutline torus translate translateXYZ triangle tube vertex_add vertex_combine vertex_draw vertex_grid vertex_info vertex_model vertex_mul vertex_offset vertex_program vertex_quad vertex_scale vertex_set vertex_tabread world_light
Argh! still can't get Gem objects to work
Hello, all.
I'm new to PD but have been using Max/MSP for a while now.
I wanted to try my hand at visuals, but don't have the money for Jitter.
For the life of me, I can't get Gem objects to work in PD.
I'm on a Macbook Pro running 10.5.2.
I've tried both the latest PD-extended I could find (20080316) and the vanilla version of PD with Gem CVS 0.91.
The funny thing is, I can get the Gem library to load fine.
I get the whole welcome message from Gem in the PD window when I start the program.
I can create Gem objects just fine. For instance, pix_film and gemhead.
All I'm trying to do, for now, is play a quicktime movie.
However, every time I send pix_film the 'open openpanel' message, I get this:
error: [pix_filmDarwin]: GEM: pix_movie: Unable to find file:
I have added every search path I can think of.
Strangely enough, when I try to pull up the help file from the pix_film object, it tells me it can't find it.
However, if I manually load the pix_film help file from PD's help browser, it works perfectly fine.
Any ideas?
Thanks very much!