[GEM-dev] Drawing textured dice

Alexandre Quessy listes at sourcelibre.com
Sun Aug 19 06:14:12 CEST 2007


Hi,
I have done it with squares and it is fine. See the attached patch.

a



2007/8/12, Frank Barknecht <fbar at footils.org>:
> Hallo,
>
> I'd like to draw dice in Gem, complete with textures that show the 1
> to 6 dots correctly on each cube side. A tedious approach would be to
> draw six [square]s, texture them and translate and rotate them to the
> six sides of the cube. However I wonder, if there also is a way to do
> this by texturing [cube] directly in a smart way. Is this possible and
> does anyone have any pointers to a tutorial or maybe a ready-made
> patch?
>
> Ciao
> --
>  Frank Barknecht                 _ ______footils.org_ __goto10.org__
>
> _______________________________________________
> GEM-dev mailing list
> GEM-dev at iem.at
> http://lists.puredata.info/listinfo/gem-dev
>


-- 
Alexandre Quessy
http://alexandre.quessy.net
http://www.puredata.info/Members/aalex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: playerab.cube-help.pd
Type: application/octet-stream
Size: 2364 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20070819/6dbfb83a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: playerab.cube.square.pd
Type: application/octet-stream
Size: 962 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20070819/6dbfb83a/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: playerab.cube.pd
Type: application/octet-stream
Size: 1674 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20070819/6dbfb83a/attachment-0002.obj>


More information about the GEM-dev mailing list