Author Topic: Shadow's are all glitchy...  (Read 1351 times)

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Shadow's are all glitchy...
« on: 9 April 2011, 05:42:33 »


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..... :|
Egypt Remastered!

Proof: Owner of glest@mail.com

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Shadow's are all glitchy...
« Reply #1 on: 9 April 2011, 20:04:00 »
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

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Shadow's are all glitchy...
« Reply #2 on: 10 April 2011, 00:37:25 »
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-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Shadow's are all glitchy...
« Reply #3 on: 11 April 2011, 18:27:42 »
Can't you guys change that? :| I mean the shadows are pretty dang ugly.
Egypt Remastered!

Proof: Owner of glest@mail.com

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Shadow's are all glitchy...
« Reply #4 on: 12 April 2011, 03:30:13 »
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

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Shadow's are all glitchy...
« Reply #5 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.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Shadow's are all glitchy...
« Reply #6 on: 12 April 2011, 15:39:30 »
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-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Shadow's are all glitchy...
« Reply #7 on: 12 April 2011, 15:52:34 »
Luckily I have 1200p resolution so I should be able to survive with that for now. :look:
Egypt Remastered!

Proof: Owner of glest@mail.com

 

anything