FreeOrion

Forums for the FreeOrion project
It is currently Fri Apr 25, 2014 1:28 am

All times are UTC




Post new topic Reply to topic  [ 75 posts ]  Go to page Previous  1, 2, 3, 4, 5
Author Message
PostPosted: Sat Apr 05, 2008 11:09 pm 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
Geoff, how does this affect performance on your laptop?


Top
 Profile  
 
PostPosted: Sat Apr 05, 2008 11:37 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 9430
Location: Munich
tzlaine wrote:
Geoff, how does this affect performance on your laptop?

Assuming you mean changing the size of the gas textures, with a 500 star galaxy, at full zoom out, with gas textures 16 times the system icon size, I get 7 FPS. With gas textures 12 times the system icon size, I get 9 FPS. (Exact FPS may vary with what else I've got running and the phase of the moon, but these tests were in similar conditons.)


Top
 Profile  
 
PostPosted: Sat Apr 12, 2008 5:24 pm 
Offline
Design & Graphics Lead
User avatar

Joined: Sat Sep 23, 2006 7:09 pm
Posts: 3859
Location: USA — midwest
Can we get these two related things added in before the next release?
* each nebula appears only once per galaxy.
* nebulae are rendered above all gaseous substance sprites (the gaseous stuff can obscure the special nebulae)

and maybe also:
* nebulae are located only centered at the coordinates of a star. (simplest way to prevent nebulae from appearing in weird locations)

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

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


Top
 Profile  
 
PostPosted: Sat Apr 12, 2008 10:02 pm 
Offline
Graphics
User avatar

Joined: Tue Jul 01, 2003 8:27 pm
Posts: 395
Location: Würzburg, Germany
As well as:
* add an option to turn background nebulae on/off


Top
 Profile  
 
PostPosted: Sat Apr 12, 2008 11:20 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 9430
Location: Munich
v0.3.9 was actually put up last night, though I've been too busy to make a post about it. Those changes might get in the next version, but it probably won't be as soon as you might have expected...


Top
 Profile  
 
PostPosted: Sun Apr 13, 2008 2:55 am 
Offline
Design & Graphics Lead
User avatar

Joined: Sat Sep 23, 2006 7:09 pm
Posts: 3859
Location: USA — midwest
Geoff the Medio wrote:
Those changes might get in the next version, but it probably won't be as soon as you might have expected...

From my outside perspective, they seem like a a good project for someone relatively new to FO code to try their hand at.

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

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


Top
 Profile  
 
PostPosted: Sun Apr 13, 2008 4:05 am 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 9430
Location: Munich
Update: The rendering order and toggle have been committed.


Top
 Profile  
 
PostPosted: Sun Apr 13, 2008 7:51 am 
Offline
Graphics Lead Emeritus
User avatar

Joined: Mon Mar 08, 2004 6:17 pm
Posts: 1936
Location: 52°16'N 10°31'E
Thanks for the new release. Just FYI, I don't have any performance decrease. I get 59-60FPS, as I always had.


Top
 Profile  
 
PostPosted: Fri Jul 04, 2008 10:00 pm 
Offline
Space Dragon
User avatar

Joined: Fri Mar 10, 2006 12:32 pm
Posts: 311
Location: Finland
This might be a stupid question, but where are the nebulas in version 0.3.10? Is their absence a bug or something that was done deliberately? Or is it just me not noticing some option to turn them on/off?

_________________
What is your favourite alien species and WHY?
Preliminary thoughts about diplomacy
Some unfinished ideas for specials


Top
 Profile  
 
PostPosted: Fri Jul 04, 2008 10:13 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 9430
Location: Munich
I wasn't aware nebulae were removed, and I don't know of any added toggles related to them. Try using a bigger galaxy; you might just not be seeing any nebulae at a small galaxy size...? If they're entirely gone, then that's a bug.


Top
 Profile  
 
PostPosted: Fri Jul 04, 2008 10:27 pm 
Offline
Space Dragon
User avatar

Joined: Fri Mar 10, 2006 12:32 pm
Posts: 311
Location: Finland
Geoff the Medio wrote:
I wasn't aware nebulae were removed, and I don't know of any added toggles related to them. Try using a bigger galaxy; you might just not be seeing any nebulae at a small galaxy size...? If they're entirely gone, then that's a bug.


There is only the gaseous substance and no "special" nebulas. Not even in a 500 star galaxy.

_________________
What is your favourite alien species and WHY?
Preliminary thoughts about diplomacy
Some unfinished ideas for specials


Top
 Profile  
 
PostPosted: Fri Jul 04, 2008 11:08 pm 
Offline
Graphics Lead Emeritus
User avatar

Joined: Mon Mar 08, 2004 6:17 pm
Posts: 1936
Location: 52°16'N 10°31'E
I had temporary deactivated them, by using a single empty nebulae image and moving the rest to a sub folder. Until there is some way to control the amount and color of nebulae and there is some actual game play effect caused by nebulae, I don't want them to uglify the galaxy.


Top
 Profile  
 
PostPosted: Sat Jul 05, 2008 11:26 am 
Offline
Graphics Lead Emeritus
User avatar

Joined: Mon Mar 08, 2004 6:17 pm
Posts: 1936
Location: 52°16'N 10°31'E
Further thoughts on this:

- Nebulae should be categorized by dominating color. This can be done similar to the gaseous texture sets, by putting similar nebulae in the same folder( one for orange nebulae, red nebulae, cyan nebulae, etc). We can then even include color variations of the nebulae we already have.
- Certain Nebulae can be combined with certain gaseous texture sets. This requires some art direction and should not be done at random. "Galaxy styles" could be defined in a .txt or .xml file and then chosen at galaxy creation. Such a file would list gaseous texture sets and then possible nebulae assignments for those.
As mentioned previously:
- Nebulae should not be used more than once per galaxy, even if there are variations. This can easily be solved with the proposal above.
- Nebulae should get flipped and rotated arbitrary.


Top
 Profile  
 
PostPosted: Mon Feb 23, 2009 4:55 am 
Offline
Design & Graphics Lead
User avatar

Joined: Sat Sep 23, 2006 7:09 pm
Posts: 3859
Location: USA — midwest
The engine that makes the gaseous substance that gives better weight to the galaxy is pretty cool. But i was poking around to see how it works, and i caught some glitchy stuff. Obviously not an urgent problem, but something that's worth noting.

The following example uses this test texture:
Attachment:
gaseous01.png
gaseous01.png [ 3.03 KiB | Viewed 854 times ]

The result in a small galaxy is this:
Attachment:
test.png
test.png [ 133.34 KiB | Viewed 854 times ]


Issues:
    * Any pixels on the outside edge of a gaseous graphic get stretched a long way. Doesn't matter with current graphics since the edges are generally transparent, but seem to be a sign that somethings wrong.

    * You'll notice that the text in the yellow corner is always backwards. Apparently the image is either mirrored vertically or horizontally, but never not mirrored and never mirrored both ways. We'd get a more natural, irregular effect if each graphic had more than these two positions, especially if 90° rotation was also sometimes thrown into the mix.

    * And most importantly to me, the scaling range is too extreme. Sometimes the graphic can be shrunk so small that the star's halo pretty much covers it. This is what got me to investigate, since sometimes big gaps are visible in thin spiral arms. At max zoom the minimum size of a 256x256px gaseous graphic should be about 100%, i.e. 256x256px on screen. If the artist wants blank spots, he can throw some blank files in, but i don't think they look quite right.
Attachment:
tootiny.png
tootiny.png [ 37.5 KiB | Viewed 854 times ]


I realize there are way more important things that need work, so now that i got this off my chest, i'll go file a FT, and hope somebody gets to it eventually.

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

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


Top
 Profile  
 
PostPosted: Mon Feb 23, 2009 4:50 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 9430
Location: Munich
As far as I can tell, the gas is supposed to be rendered all the same size, and with arbitrary angle rotations (not just 90 degrees or flips). I think there's a problem with the rotated coordinates calculation math that ends up making it look like a big range of scaling factors and no rotations is being used.

The stretched edges is just what OpenGL does when not tiling or mapping (stretching) a texture that's being drawn on a quad that's bigger than the texture. It can be seen sometimes with system icons as well, if you turn off gas. Can't really do anything about it except avoid using larger quads than textures (not always possible) or putting transparent borders on textures.

Edit: after some fixing, I get:


Attachments:
File comment: actually rotated "gas"
Gas_Fixing.png
Gas_Fixing.png [ 296.08 KiB | Viewed 827 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 75 posts ]  Go to page Previous  1, 2, 3, 4, 5

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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:  
Powered by phpBB® Forum Software © phpBB Group