Hi all, I need help conceptualizing the best solution to my problem.
I've created a Gem application in which I use the 'view' message to pan the camera around the space. Now I want to create a user interface that is fixed to the frame of the screen.
I've succeeded already but my current solution is clunky (I created an 'offset' abstraction that calculates the proper offset for each UI element whenever the camera is panned) and is conceptually convoluted. I think it's more complicated than it needs to be.
Is there a way to define a frame or object group for Gem objects? Something where I could just use a single transformXYZ for the group offset from the camera position and then work with each sub-object as if it were fixed to the screen? How might you fix UI elements to screen borders while moving the camera through the application space?
Thanks, -martin
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-04-03 17:03, Martin Eckart wrote:
Is there a way to define a frame or object group for Gem objects? Something where I could just use a single transformXYZ for the group offset from the camera position and then work with each sub-object as if it were fixed to the screen? How might you fix UI elements to screen borders while moving the camera through the application space?
examples/02.advanced/03.View_OSD.pd
fgamsdr IOhannes
Amazing, thanks so much. I knew there had to be some simple method that I'd overlooked.
Cheers, -martin
On Tue, 2012-04-03 at 17:36 +0200, IOhannes m zmoelnig wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-04-03 17:03, Martin Eckart wrote:
Is there a way to define a frame or object group for Gem objects? Something where I could just use a single transformXYZ for the group offset from the camera position and then work with each sub-object as if it were fixed to the screen? How might you fix UI elements to screen borders while moving the camera through the application space?
examples/02.advanced/03.View_OSD.pd
fgamsdr IOhannes
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk97GRYACgkQkX2Xpv6ydvTibwCg2ogw+KfYC8a7UZRyN8xJobCz rFcAn2ai56Xpk8Cn3wt2IVxSfRduM4pP =z/H3 -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list