FreeOrion

Forums for the FreeOrion project
It is currently Mon May 20, 2013 3:52 am

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: animated system selectors
PostPosted: Sun Oct 30, 2011 2:43 pm 
Offline
Design & Graphics Lead
User avatar

Joined: Sat Sep 23, 2006 7:09 pm
Posts: 3693
Location: USA — midwest
Geoff just recently got the code in for this, which makes me happy.

Since my binary is a little behind, i can't find this out experimentally:

> Is there a hard limit on the number of frames, or can i add more sequentially named files as needed?

> Is the zoom factor that defines "Tiny" the same as in the fleet icons?

_________________
—• Read this First before posting Game Design Ideas!
—• Design Philosophy

—•— My Ideas, Organized —•— Get an Avatar —•— Acronyms —•—


Top
 Profile  
 
 Post subject: Re: animated system selectors
PostPosted: Sun Oct 30, 2011 6:11 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7887
Location: Vancouver, BC
eleazar wrote:
> Is there a hard limit on the number of frames, or can i add more sequentially named files as needed?
Add as many frames as you want. The animation FPS is set in the options menu, though the default is 12.
Quote:
> Is the zoom factor that defines "Tiny" the same as in the fleet icons?
No; The tiny indicator is used when the system icon texture zoomed size is smaller than the size of the tiny indicator texture. I initially tried using the same zoom threshold as the tiny system icons, but this resulted in the zoom-scaled indicator being smaller at some zooms than the fixed-sized tiny indicator, which looked weird.


Top
 Profile  
 
 Post subject: Re: animated system selectors
PostPosted: Sat Nov 05, 2011 2:03 am 
Offline
Design & Graphics Lead
User avatar

Joined: Sat Sep 23, 2006 7:09 pm
Posts: 3693
Location: USA — midwest
Ok, now that i got my hands on night's binary, i'm working on this:

Can you alter the sizing of big selector to be 1-to-1 pixels at maximum zoom in?

I want to shrink the selector, but i can't.

Also the Frame rate thing doesn't change the animation rate.

_________________
—• Read this First before posting Game Design Ideas!
—• Design Philosophy

—•— My Ideas, Organized —•— Get an Avatar —•— Acronyms —•—


Top
 Profile  
 
 Post subject: Re: animated system selectors
PostPosted: Sat Nov 05, 2011 2:14 am 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7887
Location: Vancouver, BC
eleazar wrote:
Can you alter the sizing of big selector to be 1-to-1 pixels at maximum zoom in?
There's a system selection indicator relative size option in the galaxy map tab. Does adjusting that accomplish what you want?
Quote:
I want to shrink the selector, but i can't.
If the relative size option doesn't work, you could probably use a set of bigger images file with transparent padding around it, so that after rescaling, it's the desired size.
Quote:
Also the Frame rate thing doesn't change the animation rate.
The animation FPS of the selection indicator is based on another option in the galaxy map tab in the system icon section. The change doesn't apply immediately; end turn for it to kick in.


Top
 Profile  
 
 Post subject: Re: animated system selectors
PostPosted: Sat Nov 05, 2011 3:02 am 
Offline
Design & Graphics Lead
User avatar

Joined: Sat Sep 23, 2006 7:09 pm
Posts: 3693
Location: USA — midwest
Geoff the Medio wrote:
eleazar wrote:
Can you alter the sizing of big selector to be 1-to-1 pixels at maximum zoom in?
There's a system selection indicator relative size option in the galaxy map tab. Does adjusting that accomplish what you want?

Didn't see that but it's only sorta helpful. It won't let me enter numbers on my own. If i enter "1.3" it gets instantly replaced with "3.75" etc. It will only accept numbers in increments of 1/8th it looks like.

Also what file do i change to change the default options settings for SVN?

Geoff the Medio wrote:
eleazar wrote:
I want to shrink the selector, but i can't.
If the relative size option doesn't work, you could probably use a set of bigger images file with transparent padding around it, so that after rescaling, it's the desired size.
Won't that throw off this: "The tiny indicator is used when the system icon texture zoomed size is smaller than the size of the tiny indicator texture."


The animation helps a lot to make it visible, and the tiny size works great, but the resized selector remains problematic. At it's smallest it is almost too small, and at the largest it is pretty fairly obnoxious. The overall situation is better that it's ever been, but i don't think i can make it great just be tweaking graphics.

_________________
—• Read this First before posting Game Design Ideas!
—• Design Philosophy

—•— My Ideas, Organized —•— Get an Avatar —•— Acronyms —•—


Top
 Profile  
 
 Post subject: Re: animated system selectors
PostPosted: Sat Nov 05, 2011 3:26 am 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7887
Location: Vancouver, BC
eleazar wrote:
It won't let me enter numbers on my own. If i enter "1.3" it gets instantly replaced with "3.75" etc. It will only accept numbers in increments of 1/8th it looks like.
That's right, but you can set it to anything between 0.5 and 5.0 in 0.125 increments. 1.3 + Enter giving 3.75 seems like a weird GG bug, I'd guess...
Quote:
Also what file do i change to change the default options settings for SVN?
The defaults are set in C++ code. For most of the map-related ones, the options are created in void AddOptions(OptionsDB& db) in MapWnd.cpp. The relevant lines look like
Code:
db.Add("UI.system-selection-indicator-size","OPTIONS_DB_UI_SYSTEM_SELECTION_INDICATOR_SIZE",1.625, RangedStepValidator<double>(0.125, 0.5, 5));
where the third column, 1.625 in this case, is the default value. The three numbers in the brackets at the end (0.125, 0.5, 5) are the step, minimum, and maximum allowed values. The step is the difference between allowed values. If something's set to a step like 0.125, it's possibly to avoid round-off errors that might occur with steps that aren't powers of 2 (eg. 0.1).
Geoff the Medio wrote:
eleazar wrote:
I want to shrink the selector, but i can't.
If the relative size option doesn't work, you could probably use a set of bigger images file with transparent padding around it, so that after rescaling, it's the desired size.
Won't that throw off this: "The tiny indicator is used when the system icon texture zoomed size is smaller than the size of the tiny indicator texture."[/quote]It will test the actual size of the rescaled texture, not the visible portion of it, yes. Whether that's a problem, I'm not sure.
Quote:
At it's smallest it is almost too small, and at the largest it is pretty fairly obnoxious. The overall situation is better that it's ever been, but i don't think i can make it great just be tweaking graphics.
So there needs to be a maximum size for the indicator then? Or what else?


Top
 Profile  
 
 Post subject: Re: animated system selectors
PostPosted: Sat Nov 05, 2011 3:29 pm 
Offline
Design & Graphics Lead
User avatar

Joined: Sat Sep 23, 2006 7:09 pm
Posts: 3693
Location: USA — midwest
Geoff the Medio wrote:
So there needs to be a maximum size for the indicator then? Or what else?

No max size, because it needs to increase in size with the system -- at least if it is circular. I have a couple more things i thought of last night that i want to try....

_________________
—• Read this First before posting Game Design Ideas!
—• Design Philosophy

—•— My Ideas, Organized —•— Get an Avatar —•— Acronyms —•—


Top
 Profile  
 
 Post subject: Re: animated system selectors
PostPosted: Sun Jan 29, 2012 1:47 am 
Offline
Designer and Programmer
User avatar

Joined: Tue Aug 14, 2007 6:33 pm
Posts: 1770
Location: Orion
K, what's with the selected system indicator being animated, while the mouseover indicator is static? IMO it should be exactly the other way around, since its really annoying to have that thing spinning around all the time, whereas I think it would be less out-of-place for a mouseover

_________________
Warning: Antarans in dimensional portal are closer than they appear.


Top
 Profile  
 
 Post subject: Re: animated system selectors
PostPosted: Sun Jan 29, 2012 2:00 am 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7887
Location: Vancouver, BC
Bigjoe5 wrote:
...its really annoying to have that thing spinning around all the time
Try significantly reducing the frames per second of the rotation, or adding many more frames to the animation. Slowing it down would probably make it a lot less annoying.


Top
 Profile  
 
 Post subject: Re: animated system selectors
PostPosted: Sun Jan 29, 2012 2:02 am 
Offline
Design & Graphics Lead
User avatar

Joined: Sat Sep 23, 2006 7:09 pm
Posts: 3693
Location: USA — midwest
Bigjoe5 wrote:
K, what's with the selected system indicator being animated, while the mouseover indicator is static? IMO it should be exactly the other way around, since its really annoying to have that thing spinning around all the time, whereas I think it would be less out-of-place for a mouseover

True, the mouse-over should probably be more noticeable than the selected indicator.

The old static selector didn't work. When zoomed out it was virtually invisible, and thus did nothing to indicate which system was actually selected. So it needs to be animated, and the mouseover should be too.

I'll admit the current spinner is a bit obnoxious. It's pretty hard to make a single thing that works at the extreme scales that this graphic is used for.
It's something i want to refine further.

EDIT:
Actually i have a 5 frame (instead of the current 3 frame) spinner than i forgot to upload. It's not the ultimate solution, but its a little smoother.
revision 4627

_________________
—• Read this First before posting Game Design Ideas!
—• Design Philosophy

—•— My Ideas, Organized —•— Get an Avatar —•— Acronyms —•—


Top
 Profile  
 
 Post subject: Re: animated system selectors
PostPosted: Sun Jan 29, 2012 3:06 pm 
Offline
Space Dragon
User avatar

Joined: Sun Sep 25, 2011 2:51 pm
Posts: 264
eleazar wrote:
I'll admit the current spinner is a bit obnoxious. It's pretty hard to make a single thing that works at the extreme scales that this graphic is used for.
It's something i want to refine further.

Could the rotation speed be made a function of current zoom level?

_________________
[...] for Man has earned his right to hold this planet against all comers, by virtue of occasionally producing someone totally batshit insane. - xkcd


Top
 Profile  
 
 Post subject: Re: animated system selectors
PostPosted: Sun Jan 29, 2012 9:48 pm 
Offline
Designer and Programmer
User avatar

Joined: Tue Aug 14, 2007 6:33 pm
Posts: 1770
Location: Orion
eleazar wrote:
The old static selector didn't work. When zoomed out it was virtually invisible, and thus did nothing to indicate which system was actually selected. So it needs to be animated, and the mouseover should be too.
IMO, a good way to handle it might be to have a selected system indicator which draws attention to itself through some kind of glowing effect rather than spinning. IIRC, MoO1 had a system icon indicator which glowed faintly in and out, which was an unmistakable-but-not-annoying effect.

_________________
Warning: Antarans in dimensional portal are closer than they appear.


Top
 Profile  
 
 Post subject: Re: animated system selectors
PostPosted: Sun Jan 29, 2012 10:15 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7887
Location: Vancouver, BC
Bigjoe5 wrote:
...have a selected system indicator which draws attention to itself through some kind of glowing effect rather than spinning.
The animation is just a series of image frames shown in sequence, so you can experiment by replacing (including changing the number) of images in default/data/art/misc/system_selection and system_selection_tiny.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group