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

World: r3wp

[!REBOL3 GUI]

Henrik
21-Sep-2010
[3400]
new build is up with uncompressed source:

http://rebol.hmkdesign.dk/files/r3/gui/r3-gui.r3
Maxim
21-Sep-2010
[3401]
oh cool!
Henrik
21-Sep-2010
[3402x3]
please download to local disk
style building has only changed with regards to resizing (which I 
haven't entirely figured out yet), but otherwise remains the same, 
so feel free to build some styles.
later, Cyphre will come up with some modifications to draw blocks 
for styles, so we can use positional keywords that work together 
with the box model, so it becomes easier to create draw blocks.
Maxim
21-Sep-2010
[3405]
ah there is a box style I can easily use.

thanxs for all.
Henrik
21-Sep-2010
[3406]
ok, cool
Maxim
21-Sep-2010
[3407]
hum... using stylize doesn't seem to add to the global style sheet... 
is there a function to call first to setup or assign to a specific 
stylesheet?

such as to replicate stylize/master   in R2..
Henrik
21-Sep-2010
[3408]
it should do that. it's a bug if it doesn't.
Maxim
21-Sep-2010
[3409x2]
DOH!.... it would help if i used stylize  BEFORE  I use view   ;-)
seems to work now.  :-)
Henrik
21-Sep-2010
[3411]
ok :-)
Maxim
21-Sep-2010
[3412x2]
btw, I'm working on fixing the as-is event handler issue I found 
earlier...
is it normal that (out of the box) there is nothing happening to 
controls when I press on the mouse?
Henrik
21-Sep-2010
[3414]
if you don't add any reactors, then I think so, yes.
Maxim
21-Sep-2010
[3415x3]
you mean.. buttons don't click (visually) unless I add an action 
to them?
cause right now, the gui looks totally dead a part for the fact that 
it resizes (though its late by one window resize event.)
ah wait... its my fault.
Henrik
21-Sep-2010
[3418x2]
oh, that's because the materials are not defined for click actions.
since it's a temporary skin to test the materials system
Maxim
21-Sep-2010
[3420x2]
ok, I removed the hack which I had in place.
ah ok
Henrik
21-Sep-2010
[3422]
the materials system specifically maps various surface appearances 
to the face states. perhaps it needs to be refined as I haven't looked 
at it in two years, but the intent is to do this in the material 
specification instead of inside the style. so you say "I want material 
X" and then all variants of it are used in the style.
Maxim
21-Sep-2010
[3423x2]
yeah, sensible.
does the material support some sort of accumulation?

a very loose example

I want gui in style dark
I want aluminium

the issue here being that dark is not a value but a process.

so you get dark aluminium ?
Rebolek
21-Sep-2010
[3425]
you select aluminium as material and some dark color to get dark 
aluminium
Maxim
21-Sep-2010
[3426x2]
ah ok, so it doesn't accumulate the materials.  since color is a 
property, not a process.  here dark is a concept... 

which might ultimately apply to all styles, but which isn't resolved 
by the aluminium, but by dark itself...


it was just a question, I wasn't expecting a yes ... its a very advanced 
shading (are rare, and complex) process.
(its definitely not a limitation on the part of the engine, for those 
who might mis-interpret my question)
Henrik
21-Sep-2010
[3428]
you can have a look at the materials section to see the specs for 
a material
Maxim
21-Sep-2010
[3429]
yeah I did briefly.. but there is a lot of code to sift through... 
it is 216 kb after all  (which is pretty lean for a GUI complete 
engine ;-)
Henrik
21-Sep-2010
[3430]
There are two primitive formulas used to create a simple specular, 
but one is broken. I'm terrible at that kind of math, so maybe they 
should be revised. I could use some help in creating a designer friendly 
few speculars that emulate brushed metal, plastic, glossy, glass, 
etc.
Maxim
21-Sep-2010
[3431x2]
I'm still trying to resolve the as-is handler bug... getting closer.. 
now it doesn't crash, but it doesn't use my handler neither.
yeah, without some support libs, designing shader stuff from scratch 
is hairy at best...


the only help I can give you is to use light energy-based math instead 
of color math.  I've seen some VFX compositing tricks where  you 
can simulate this by scaling colors with a gamma of 2 blending your 
colors and then applying the inverse gamma of 0.5.  the way the colors 
will merge usually provides better results, but still doesn't clip.


the idea here being that the gray areas won't merge the same way 
as low and high-color areas... might be usefull to play around with 
gamma in the draw block too... though I'm not totally sure how it 
all works in agg.
Henrik
21-Sep-2010
[3433]
shaders must be very simple for speed. I'm not so terribly interested 
in actual realism, just a way to map a linear value to a specular 
value, which then gets tinted with a color.
Graham
21-Sep-2010
[3434x2]
Henrik, why not just put the gui on devbase ?
and then you won't have to worry about your bandwidth
Henrik
21-Sep-2010
[3436]
these are my private builds and they will not come in a regular frequency 
yet.
Maxim
21-Sep-2010
[3437]
ah think I found the handler problem.


view's awake function now calls the do-event (it used to be handler).


so its just an adjustment to any code running after it loaded r3-gui.
Pekr
21-Sep-2010
[3438]
Henrik - how is that you did not look into material for two years? 
I have bad feeling this whole project is driven very chaotically 
...
Henrik
21-Sep-2010
[3439]
Pekr, wasn't going to be used until we started skinning.
Maxim
21-Sep-2010
[3440x2]
how do we get time events in r3?
answer, look in the HK and see commented timer lines  ;-)>
Brock
22-Sep-2010
[3442x3]
I would suggest that the difference is the spacing that is provided 
around the check-boxes and the buttons is consistant and the group 
boxes properly surround the objects.
Pekr:  I had a contact who worked for Adobe and was a gui designer 
on many of their applications.  He is now an indepent contractor, 
but now that he's contracting he's enjoying his time to be with his 
family.  Adobe worked him hard for many years.  So, unfortunately 
he is not available to help out.
my first post above is a reply to Henrik's images regarding the box 
model.  It was an attempt to answer Shadwolf's question about waht 
the difference was between the two images.
Henrik
24-Sep-2010
[3445]
http://rebol.hmkdesign.dk/files/r3/gui/r3.exe
http://rebol.hmkdesign.dk/files/r3/gui/r3lib.dll


Fixes clipping bug (disappearing faces) and garbage in text fields. 
Please download and test.
Pekr
24-Sep-2010
[3446x3]
I like r3.exe name ... maybe new marketing name for rebol could be 
simply - r3 - we all call it like that anyway :-)
I tried to use area - that style is broken by some changes? In older 
version, gui crashed with something like no scroller attached message, 
now it crashes on divide by zero message :-) I expect area is not 
supposed to work yet?
The reason why I am confused about priorities is, that you surely 
are not going to do business apps by using only buttons, fields and 
check-boxes. Areas, scrollbars, draggers, tabs, grids, tree might 
be usefull too :-)
Henrik
24-Sep-2010
[3449]
yes, correct, however, I'm going to provide a new build in just a 
moment.