[PD] Writing texture to different sides of cube in GEM

Kyle Klipowicz kyleklip at gmail.com
Fri Aug 22 15:26:26 CEST 2008


Yes, please publish this. A cube from separate squares would be great for
exploding outward/inward too. You could do all sorts of neat decompositions
of a solid with this.

~Kyle

On Thu, Aug 21, 2008 at 4:55 PM, B. Bogart <ben at ekran.org> wrote:

> If anyone does make a cube from squares please do publish it for others!
> (perhaps in the gem abstractions folder?)
>
> I made a cube of curve3d objects... Which is certainly not great in
> terms of performance as a normal cube! I never published it, if there is
> interest I'll stick it in Gem SVN.
>
> .b.
>
> chris clepper wrote:
> > You would have to have a texture prepared for folding over the six
> > sides.  In most cases this would involve a larger power of two texture
> > with the cross shaped texture inside it.  For something like a movie
> > file this would be impractical.  Building this in GEM is the most
> > flexible method.
> >
> > Ben, I thought you had made an abstraction many years ago to put a
> > texture on each side of a cube?
> >
> > On Thu, Aug 21, 2008 at 12:14 PM, B. Bogart <ben at ekran.org
> > <mailto:ben at ekran.org>> wrote:
> >
> >     As far as I know the UV thing is as much about the cube as it is the
> >     texture?
> >
> >     Even if you play with the texture coords, the textures on the cube
> does
> >     not wrap over the edges.
> >
> >     This leads me to believe that the cube is actually 6 squares put
> >     together. So that is certainly the best thing to recreate, make your
> own
> >     cube from Gem squares.
> >
> >     As for "uv support" seems a close step would be a gem cube that is
> >     designed as a single poly and so that texture coords could be used to
> >     move the texture around? I suppose texture project becomes a problem
> >     then...
> >
> >     I'm just thinking aloud.
> >
> >     .b.
> >
> >     marius schebella wrote:
> >     > Adityo Pratomo wrote:
> >     >> and how can i use that uv-mapping? pdp or pidipi or pixeltango
> maybe?
> >     >
> >     > no, I have not figured out a method yet to do this inside the pd
> >     world.
> >     > for now you really have to go with the solution claude posted.
> >     > marius.
> >     >
> >     >> On 8/21/08, marius schebella <marius.schebella at gmail.com
> >     <mailto:marius.schebella at gmail.com>> wrote:
> >     >>> Claude Heiland-Allen wrote:
> >     >>>> Adityo Pratomo wrote:
> >     >>>>> Hi there everyone, i have a question here. How can i write
> >     different
> >     >>>>> images on every different sides of a cube in GEM?
> >     >>>> Maybe (probably?) there is a more elegant / OpenGL-native way,
> >     but I'd
> >     >>>> make a cube out of 6 [square]s with appropriate transformations.
> >     >>>> [separator] would be useful here.
> >     >>> the more elegant way would be UV-mapping, where you put all 6
> >     sides in
> >     >>> one texture and then apply it to the 3d object. but GEM does not
> >     support
> >     >>> that.
> >     >>> marius.
> >     >>>
> >     >>>>> So that when i
> >     >>>>> rotate a cube, i could see a certain image on a certain side.
> >     I know i
> >     >>>>> should use [pix_image] and [pix_texture] but how can i achieve
> my
> >     >>>>> goal? I kinda lost here. Many thanks for any suggestions. :-)
> >     >>>> Claude
> >     >>
> >     >
> >     >
> >     > _______________________________________________
> >     > Pd-list at iem.at <mailto:Pd-list at iem.at> mailing list
> >     > UNSUBSCRIBE and account-management ->
> >     http://lists.puredata.info/listinfo/pd-list
> >     >
> >
> >
> >     _______________________________________________
> >     Pd-list at iem.at <mailto:Pd-list at iem.at> mailing list
> >     UNSUBSCRIBE and account-management ->
> >     http://lists.puredata.info/listinfo/pd-list
> >
> >
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>



-- 
-----
------------
---- -----
---- -------- - ------
http://perhapsidid.wordpress.com
http://myspace.com/kyleklipowicz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080822/4f79a2a2/attachment.htm>


More information about the Pd-list mailing list