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

</div>