News:

Your help in translating MegaGlest is much appreciated.

Main Menu

Shadow's are all glitchy...

Started by -Archmage-, 9 April 2011, 05:42:33

-Archmage-



I have the shadow resolution at 4096, and when it's lower the shadows don't glitch like this. But I'd like to play with sharp shadows, instead of pixelated blobs.
Also, look at the top of the picture..... :|

Omega

Tested and confirmed, happens to me too at that resolution.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

hailstone

It does that at 2048 for me. I thought it might be a max texture limit but I tried glGetIntegerv(GL_MAX_TEXTURE_SIZE, &texSize); and it showed 16384.

It seems like it's limited by the resolution. Make sure the game resolution is larger than the texture size (ie if your resolution is 1024x768 the max is 512). I've added a check to make sure texture size stays below resolution.

There are other ways to make nicer looking textures but the algorithm would need to be changed and for an RTS I don't think it's a big priority.

Created ticket 328.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

-Archmage-

Can't you guys change that? :| I mean the shadows are pretty dang ugly.

Omega

Are you sure about that hailstone? Testing shadow size at 1024 on a 1024x768 windowed resolution produced no problems, though the glitch returned when trying 2048.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

hailstone

Move the camera around and you will see it still has issues. I thought the same at first too.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Omega

Quote from: hailstone on 12 April 2011, 04:38:54
Move the camera around and you will see it still has issues. I thought the same at first too.
Ah. Still, is there any method of fixing it?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

-Archmage-

Luckily I have 1200p resolution so I should be able to survive with that for now. :look: