hi, after fuzzing around with 3d to pix conversions for the xth time, I thought it should also be possible to set the camera to a point that just allows to have all units in pixels with the 0/0 in the top left corner. the only way to get this working was to set the camera to a negative z position and flip the upvector. the problem with that is, that all images will be vertically flipped, too. so I wonder whether there could be a general gemwin switch to flip + and
and again, it would be extremely cool to have a possibility to read out the curent size of the gemwin. thanks, marius.
Hi,
for that i normally use abstractions that do the coordinate
transformation after the gemhead without changing the camera (see
attachment: vis-test uses the other files).
But, since for a project i'm working on a more general solution for
simple UI widgets in gem including mouse and keyboard interaction,
that brings me to the question if anyone has already done something
like that. One would assume yes....
gr~~~
Am 03.09.2008 um 18:08 schrieb marius schebella:
hi, after fuzzing around with 3d to pix conversions for the xth time, I
thought it should also be possible to set the camera to a point
that just allows to have all units in pixels with the 0/0 in the
top left corner. the only way to get this working was to set the camera to a
negative z position and flip the upvector. the problem with that
is, that all images will be vertically flipped, too. so I wonder whether there could be a general gemwin switch to flip
- and - on the y axis?
and again, it would be extremely cool to have a possibility to read
out the curent size of the gemwin. thanks, marius.<camera_pixel_view.pd>_________________________________________ ______ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Thomas Grill wrote:
Hi, for that i normally use abstractions that do the coordinate transformation after the gemhead without changing the camera (see attachment: vis-test uses the other files). But, since for a project i'm working on a more general solution for simple UI widgets in gem including mouse and keyboard interaction, that brings me to the question if anyone has already done something like that. One would assume yes.... gr~~~
I did a lot of mouse interaction stuff in gem, although only 2d, because 3d needs depth test, which I avoided until now. but yes, it is always a lot of translations. I have some objects that do mouseover detection on circles and rectangles and options to drag them around whithout. I think pdmtl has some of that, too(?).
basically these are separate objects that can be hooked up to shapesand control the interaction. do you want me to post them?
marius.
Am 03.09.2008 um 18:08 schrieb marius schebella:
hi, after fuzzing around with 3d to pix conversions for the xth time, I thought it should also be possible to set the camera to a point that just allows to have all units in pixels with the 0/0 in the top left corner. the only way to get this working was to set the camera to a negative z position and flip the upvector. the problem with that is, that all images will be vertically flipped, too. so I wonder whether there could be a general gemwin switch to flip + and - on the y axis? and again, it would be extremely cool to have a possibility to read out the curent size of the gemwin. thanks, marius.<camera_pixel_view.pd>_______________________________________________
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Am 03.09.2008 um 19:35 schrieb marius schebella:
basically these are separate objects that can be hooked up to
shapesand control the interaction. do you want me to post them?
Why not?
What i'd like to have most is mouse interaction also for stacked
transparent widgets as well as drag and drop support.
For simple mouse down/up/drag i already have some basic solution.
gr~~~
Thomas Grill wrote:
Am 03.09.2008 um 19:35 schrieb marius schebella:
basically these are separate objects that can be hooked up to shapesand control the interaction. do you want me to post them?
Why not? What i'd like to have most is mouse interaction also for stacked transparent widgets as well as drag and drop support. For simple mouse down/up/drag i already have some basic solution.
gr~~~
grab it at http://www.parasitaere-kapazitaeten.net/GemUI. there is a help patch that will show a simple example. marius.