r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[AGG] to discus new Rebol/View with AGG

ICarii
4-Jun-2007
[1001]
was too busy looking for region / viewport / zone..
Pekr
4-Jun-2007
[1002]
what is the viewport? I do remember it from Amiga, but don't remember 
what it was about..... kind of separate gfx space/bitmap to draw 
on?
ICarii
4-Jun-2007
[1003x6]
viewport was for virtual bounded regions of the drawing screen
exactly what clip does now :) except clip doesnt set an origin
so I guess after all that I still do want a viewport ;P
altho i can be munged with a translate after teh clip i suppose
i/it
re clipping non rectangular that would be too expensive in processing 
terms.
Gabriele
4-Jun-2007
[1009]
i think AGG can probably handle non-rect clipping too.
ICarii
4-Jun-2007
[1010]
it would be a nice effect
Gabriele
4-Jun-2007
[1011]
however... what you need is done best by just using multiple gobs. 
feel free to use hundreds of them ;)
ICarii
4-Jun-2007
[1012]
yeah - but im worried about event hit detection - or is it a pre-composited?
Gabriele
4-Jun-2007
[1013x3]
events - how events are detected depends completely on you in R3
eg one face in micro vid has many gobs... and all the events for 
those gobs go to that face.
so you can have hundreds of gobs all sharing the same feel functions.
Pekr
4-Jun-2007
[1016]
hmm, how are events tied to gobs then? With face, we had 'feel for 
that ...
Gabriele
4-Jun-2007
[1017x3]
or even have a single event function as event awake (you can do this 
in R2 too)
petr: by mezz code :)
and, it's fast, don't worry :)
Pekr
4-Jun-2007
[1020]
mezz code? slow :-)
Gabriele
4-Jun-2007
[1021]
no it isn't ;)
Pekr
4-Jun-2007
[1022x2]
ah, you were faster, so actually it might be fast :-)
well, if mezz code can be rebcoded :-)
Gabriele
4-Jun-2007
[1024x2]
basically... the event gives you the window gob and the offset in 
it. then there's a native that can map an offset inside the window 
to the gob it belongs too. so the mezz code just uses that, then 
maps the gob to the feel, eg via gob/data (user data field)
so it's not much different from what R2 does, except that you have 
full control over it.
Pekr
4-Jun-2007
[1026]
well, how is feel tied to gob? Is it automatically done, according 
to gob offset, and even offset? What if there is many gobs under 
the event offset? Hierarchy applies? Can we have event-transparent 
gobs?
Gabriele
4-Jun-2007
[1027x6]
if you had a game that was operated by keys only, for example, you 
would not need to do any of this, so it's even faster than R2
event > window + offset > gob at that offset > use gob/data to get 
to face object > face/feel/on-click etc.
since gob/data can be whatever... you can map any gob to any feel, 
gob b inside gob a may map to gob c which is elsewhere.
(map to same feel as gob c)
or you put an id in gob/data and then use that to do whatever you 
want
or you don't map the offset to the gob at all, but use a bitmap to 
map the offset to something else, like max does in elixir etc.
Pekr
4-Jun-2007
[1033]
gob being elsewhere - I remember one cool thing about QNX, back in 
1998, when they were supposed to be new AmigaOS - their Photon environment 
allowed you to insert "face" (gob) across the network - two machines 
were linked via some nodes, so for the GUI it was transparent. Window 
received the event, and that event in fact was transfered to another 
PC's window ...  was cool :-)
Gabriele
4-Jun-2007
[1034]
since you can make event! in R3... you could get event on one PC 
and then send it over to another PC and handle it there. :)
Pekr
4-Jun-2007
[1035x2]
yes, but rebservices will be slow :-)
it was a joke ;-)
Gabriele
4-Jun-2007
[1037]
:P
ICarii
4-Jun-2007
[1038]
great ingo on the events Gabriele - that will make networked games 
much more viable
Pekr
4-Jun-2007
[1039]
event > window + offset > gob at that offset > use gob/data to get 
to face object > face/feel/on-click etc.

 - that sentence might actually help me to better understand the concept. 
 So gob is not necessarily child of face. It is completly separate 
 concept - kind of gfx node. And that node points to higher concept 
 - your face, or whatever you want, so you can do anything ....
ICarii
4-Jun-2007
[1040]
info..
Gabriele
4-Jun-2007
[1041x2]
exactly.
gobs are just... graphic objects :)
Pekr
4-Jun-2007
[1043]
that seems to be nicely flexible ... most of the time, at least for 
static things, you maybe will not need higher level complex structures, 
so it will save resources ...
ICarii
4-Jun-2007
[1044]
at present I am re-writing all controls in draw only mode so that 
when we eventually get access to OpenGL surfaces I have less pain 
:)
Gabriele
4-Jun-2007
[1045x2]
faces are higher level... they have a feel, other info needed for 
eg for vid, etc.
but you don't need to use "faces" at all, you can just use gobs in 
a game for eg. and handle events your own way... maybe gob/data maps 
to the player object :)
ICarii
4-Jun-2007
[1047]
good to know
Pekr
4-Jun-2007
[1048x2]
how that gob/data points to face/feel/on-click? is there a mezz code 
in gob/data?
hmm, it would be coold, if you could post any simple actual code 
as a spoiler - we can already learn from studying :-)
Gabriele
4-Jun-2007
[1050]
wait a month (less actually... it's 4 already)