More on skyboxes

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
Post Reply
Rixeh
Greenskin
Posts: 135
Joined: Sat Nov 20, 2004 8:36 am

More on skyboxes

Post by Rixeh »

Hey all, I've been fighting with skyboxes for the past few days, and I think I just hit a wall. ;) Ive got no problem actually making them -- they look awesome in photoshop. But once I load up Ogre with the same skyboxes, the resolution drops to "pretty bad". ;)

Say there's a starfield. Each star is just 1 pixel in size... in photoshop. But in Ogre, the stars look quite a bit bigger and the resolution is fairly low. Is there some way I can get around this? I did notice if I made 1024x1024 maps, Ogre scales the images to fit (looks like 512x512) which helps quality a bit. But we can't be using 2048 maps x 6 sides, y'know?

Any tips on making skyboxes a higher res?
User avatar
Marcel_S
Gnoblar
Posts: 18
Joined: Thu Jul 07, 2005 2:31 pm
Location: Berlin, Germany
Contact:

Post by Marcel_S »

Hi!

can you post a screenshot please?
maybe the mipmaps are working wrong... hey I am just an artist ;)
Rixeh
Greenskin
Posts: 135
Joined: Sat Nov 20, 2004 8:36 am

Post by Rixeh »

LOL well so am I... I dont know if there's something that has to change in the code or not, it isn't my area. ;) Screenshots are coming


*edit* ok here we go. This is one side of the skybox in photoshop...
Image

and this is how it looks in-game:
Image

See how everything looks low-res? Is there a way to fix that? I'm using DDS files for the actual skybox images, maybe I forgot a setting somewhere.
User avatar
Chris Jones
Lich
Posts: 1742
Joined: Tue Apr 05, 2005 1:11 pm
Location: Gosport, South England
x 1

Post by Chris Jones »

you sure its not just stretch along way? rather than being low res?

btw i dont really know much about skyboxes or how they work, is just a guess
User avatar
Falk
Kobold
Posts: 25
Joined: Fri Aug 05, 2005 9:55 pm
Location: Berlin, Germany
Contact:

Post by Falk »

We used a skydome and made our star texture tileable. After increasing the iteration of the texture (via code) it looked quite good ...

Here are some screenshots ...
urthen
Halfling
Posts: 64
Joined: Fri Sep 23, 2005 9:14 pm
Contact:

Post by urthen »

@Falk: I dont think this is what hes looking for, judging by his texture I think this isnt tileable.

I have a question about the texture too. It looks to me like the picture is stretched around the edges. Is this to compensate for the fact it is a sky BOX and you want it to look correctly round? If so... hrmm... I may need to consider this.
Rixeh
Greenskin
Posts: 135
Joined: Sat Nov 20, 2004 8:36 am

Post by Rixeh »

Oh it tiles, that's just the "up" image of the skybox.. ;) One of our other artists is messing around with using 2048x2048 maps :shock: just so we can get the quality we're looking for. Insanity!
User avatar
:wumpus:
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3067
Joined: Tue Feb 10, 2004 12:53 pm
Location: The Netherlands
x 1

Post by :wumpus: »

Can you post the log of Ogre loading these images? It normally only scales textures if they are of non power-of-two resolutions, so 2048x2048 should work perfectly fine. Do realise that 2048x2048 textures take 16Mb of memory uncompressed, so be sure to use DXT1 if quality allows (takes it it down to 2Mb)
biteme
Halfling
Posts: 70
Joined: Fri Mar 11, 2005 12:49 am

Post by biteme »

There 256 colour indexed 2048 textures so there only 4 megs uncompressed. 2 megs dxt1 compressed at the highest quality
Rixeh
Greenskin
Posts: 135
Joined: Sat Nov 20, 2004 8:36 am

Post by Rixeh »

Just an update for those interested in getting high-res skyboxes, we're working around this by using 2048x2048 maps, x6 sides of the cube. They're Indexed color wherever possible, and compressed to DDS format. :)

*edit* dammit, biteme got it in before I did 8)
Post Reply