FROM EMAIL THREAD ---------------------------------------------------
hi Chris
it seems that a simple screenshot has ignited many replies!
I also had some chills...
And I think and hope that soon we will transfer these new goodies live in the forum. I am also in the startup, so I wouldn't like to share screenshots (it will cause more confusion and don't want to reach to quick results).
ok. To the point.
1. Yes, RGB values inside the returned data are inside 0...1 but they can be even bigger so, the false colors are probably there because you don't clamp values (before casting to char). Thus use the following code (I write this by heart):
wxColour GetColour(const KSDK_RGB &col)
{
unsigned ir = (col.red<0) ? unsigned(0) : ( col.red>1 ? unsigned(255) : unsigned(col.red*255+0.5f) );
unsigned ig = (col.green<0) ? unsigned(0) : ( col.green>1 ? unsigned(255) : unsigned(col.green*255+0.5f) );
unsigned ib = (col.blue<0) ? unsigned(0) : ( col.blue>1 ? unsigned(255) : unsigned(col.blue*255+0.5f) );
wxColour wxcol;
wxcol.Set(ir,ig,ib);
return wxcol;
}
2. The pointer you get to KSDK_RGB data points to the internal buffer, so you must not delete it.
3. Regarding icons, etc. there's no standard set (yet). My opinion is to move forward without caring much about this, and when the dialogs are close to finalization, we can ask one of our members to create a list of icons that are uniform (or buy but i doubt we can find all we need with similar colors etc.)
I hope it helps
giannis
On Fri, Jul 11, 2008 at 5:30 PM, Chris ... <avariant@hotmail.com> wrote:
It is mostly just a demo at the moment.
Along those lines, if anyone has suggestions on icons and images to use as buttons etc, let me know. If there is an icon suite that KT uses or will use, it might be nice to use that too.
--------------------------------------------------------------------------------
From:
kim.frederik@wagnersvej.dk
To:
patricknieborg2002@hotmail.com;
avariant@hotmail.com;
ioannis.pantazopoulos@gmail.com
CC:
sfletcher@prarch.com;
ptohos@yahoo.com;
p.lahde@gmail.com;
tmarek@poczta.fm
Subject: SV: Tech achievements forum
Date: Fri, 11 Jul 2008 06:52:04 +0200
Hi Chris,
Thanks for sharing the images and some words about what you've managed to achieve so far...
Like Patrick - and now please don't get me wrong, I'm not critisizing anyone or anything here - I'm also currious to know a little more about the GUI...
Also - have you seen how ASGvis have made the Vray for SU plug-in..??
Cheers
Kim Frederik
--------------------------------------------------------------------------------
Fra: patrick nieborg [mailto:patricknieborg2002@hotmail.com]
Sendt: 11. juli 2008 04:22
Til: Chris ...; Ioannis Pantazopoulos
Cc: Shane L. Fletcher; Dimitri Lalushi; Kim Frederik Balleby; Pentti Lahdenperä, KT Team; Tomasz Marek
Emne: RE: Tech achievements forum
Hi Chris
great job !!!
so if i understand right the image show the GUI inside SU and with a render made also inside SU ...... cool !
one thing .... the GUI can be made a bit better looking or is this a limitation from the new GUI ( or will this come later ... i mean right now you just look for making the basic work and later you concentrate on GUI design ) ?
keep up the good work
Greetings Patrick
--------------------------------------------------------------------------------
From:
avariant@hotmail.com
To:
ioannis.pantazopoulos@gmail.com
CC:
sfletcher@prarch.com;
ptohos@yahoo.com;
kim.frederik@wagnersvej.dk;
patricknieborg2002@hotmail.com;
p.lahde@gmail.com;
tmarek@poczta.fm
Subject: RE: Tech achievements forum
Date: Thu, 10 Jul 2008 20:13:50 +0000
Giannis,
The data available from KSDK_GetImage is an array of KSDK_RGB values. wxWidgets requires image data to be in unsigned char * format. I assumed that the KT RGB values were just floats from 0 to 1, and I could easily translate to 0-255. But when I do that, I get the image in the attached screen shot. Do you know what I'm doing wrong? (ss.jpg is screenshot, test.jpg is the image saved to disk, and is correct).
Also, do I need to free the array of KT RGB data?
I included everyone to show off what I've got. The dialog is opened and rendered from SU.
--------------------------------------------------------------------------------
Date: Tue, 8 Jul 2008 19:16:22 +0300
From:
ioannis.pantazopoulos@gmail.com
To:
avariant@hotmail.com
Subject: Re: Tech achievements forum
CC:
sfletcher@prarch.com;
ptohos@yahoo.com;
kim.frederik@wagnersvej.dk;
patricknieborg2002@hotmail.com;
p.lahde@gmail.com;
tmarek@poczta.fm
I am just testing wxFormBuilder right now and it looks quite good! At least, it can help to building up basic forms and some standard windows.Patrick has pointed it a few days ago along with some other tools.
giannis