|
Re: What are you working on?
[Re: PadMalcom]
#409090
10/11/12 13:40
10/11/12 13:40
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
X
|
X
Joined: Jul 2008
Posts: 2,107
Germany
|
Reminds me to the entrance hall of the mannor in Resident Evil 1!
+1 Very pro level design ! Great.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: What are you working on?
[Re: rayp]
#409142
10/12/12 08:41
10/12/12 08:41
|
Joined: Apr 2005
Posts: 3,076 Germany, NRW
rvL_eXile
3D Artist
|
3D Artist
Joined: Apr 2005
Posts: 3,076
Germany, NRW
|
thx guys
Tutorials: [Blender]Terrain creation ENG/GER [Blender]Low Poly Tree Modeling [GIMP]Create a Texture for Terrains CLICK HERE
|
|
|
Re: What are you working on?
[Re: xbox]
#409168
10/12/12 19:30
10/12/12 19:30
|
Joined: Nov 2007
Posts: 2,568 Germany, BW, Stuttgart
MasterQ32
Expert
|
Expert
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
|
it's just simple: use a spotlight with a really low falloff value + a simple pointlight this results in a soft spotlight. with adjusting the spotlight angle you get a really nice effect
Last edited by rvL_eXile; 10/12/12 19:32.
|
|
|
Re: What are you working on?
[Re: MasterQ32]
#409174
10/13/12 01:10
10/13/12 01:10
|
Joined: Nov 2002
Posts: 913 Berlin, Germany
SchokoKeks
User
|
User
Joined: Nov 2002
Posts: 913
Berlin, Germany
|
@eXile: really professional quality, I'm amazed! Just managed to include the CEGUI system into a engine sdk project. Coolest thing is that there are graphical gui editors. I know that JenGs is working on a plugin for this, but his last post about this is was half a year ago. Are you still working on this? If I'd only known how easy this was to include I would have never created my own xml-loading gui system..
Last edited by SchokoKeks; 10/13/12 01:29.
|
|
|
Re: What are you working on?
[Re: jenGs]
#409199
10/13/12 17:08
10/13/12 17:08
|
Joined: Sep 2007
Posts: 101 Luxembourg
krial057
Member
|
Member
Joined: Sep 2007
Posts: 101
Luxembourg
|
Continued working on my component plugin for 3dgs. The GUI component got better. Here a Video: http://youtu.be/lk2JZ6bL2iQ(sorry for the crap music. First time using that videocapturing program and couldn't find a way to switch it off :P) The code you need to do this is very simple and short:
CPGui(Player)
//normal button
if(UIButton(UIRectC(screen_size.x - 200, 100, 200, 40), " A normal button", close))
printf("button pressed!");
//Text field
str_cpy(this->name, UITextField(UIRectC(0, 100, 400, 22), this->name));
UIIf(UIRepeatButton(UIRectC(screen_size.x - 200, 300, 200, 40), "This is a repeat button"))
UILabel(UIRectC(screen_size.x - 200, 350, 200, 40), "button down");
UIEndIf
//slider
this->health = UIHSlider(UIRectC(20, 250, 400, 8), this->health, -300, 200);
STRING* healthasstring = _str("");
str_for_num(healthasstring, this->health);
UILabel(UIRectC(0, 300, 400, 40), healthasstring);
CPEnd(Player)
Creating new GUI components is also very easy. You can combine the existing components to make new ones. Here is the code of the slider component:
var UIHSlider(UIRect position, var value, var leftValue, var rightValue, char* sstyle, char* sstyleThumb)
{
UIStart();
UIStyle style = UIStyleGet(sstyle);
if(!style)
{
printf("entered wrong style name"); return;
}
var valueToPixelOffset = ((value - leftValue)/(rightValue - leftValue)) * (position->width - 8) + 4;
UIRect thumbPos = UIRectC(position->x + valueToPixelOffset - 4, position->y - 5, 8, position->height + 10);
//Render Background
UIStyleRender(position, NULL, NULL, style);
char* temp = NULL;
//rendr thumb
if(UIRepeatButton(thumbPos, NULL, NULL, sstyleThumb))
{
value = ((IPMousePosition.x - position.x - 4) / (position->width - 8)) * (rightValue - leftValue) + leftValue ;
value = clamp(value, leftValue, rightValue);
}
UIEnd();
return value;
}
var UIHSlider(UIRect position, var value, var leftValue, var rightValue)
{
return UIHSlider(position, value, leftValue, rightValue, "defaultHSlider", "defaultSliderThumb");
}
Next up will be GUI functions for automatic layout, more componentes and fix a lot of other stuff ^^
|
|
|
Re: What are you working on?
[Re: krial057]
#409217
10/13/12 21:38
10/13/12 21:38
|
Joined: Apr 2011
Posts: 67 Balkan
Pavle
Junior Member
|
Junior Member
Joined: Apr 2011
Posts: 67
Balkan
|
|
|
|
|