Page 1 of 1
[GZDoom] 544 tall skies still wrapping
Posted: Sat Apr 23, 2011 1:09 pm
by Kate
Re: [GZDoom] 544 tall skies still wrapping
Posted: Sat Apr 23, 2011 2:20 pm
by ChronoSeth
I've noticed this too. AFAIK, the height of the texture is not taken into account at all, and the sky texture is always tiled downward once.
Re: [GZDoom] 544 tall skies still wrapping
Posted: Thu Mar 15, 2012 6:44 pm
by randi
Closing because GZDoom has its own bugs forum. (And bumping so it might get noticed by somebody who might do something with it.)
Re: [GZDoom] 544 tall skies still wrapping
Posted: Thu Mar 29, 2012 4:04 pm
by Gez
Looking into gl_skydome.cpp, this appears to be by design. The RenderDome() function calls another function called RenderSkyHemisphere() twice, once for the upper hemisphere and the second time for the lower hemisphere.
So it's not so much that it wraps or tiles the texture, it's just that it draws it twice, independently of texture size.
I'm not going to change anything about how it works.
Re: [GZDoom] 544 tall skies still wrapping
Posted: Thu Mar 29, 2012 4:15 pm
by NeuralStunner
What about a new MapInfo key (GZDoom specific, ZDoom ignored) to enable single-image sky?
Re: [GZDoom] 544 tall skies still wrapping
Posted: Thu Mar 29, 2012 4:22 pm
by Gez
Unless Graf does it, it won't happen.
Re: [GZDoom] 544 tall skies still wrapping
Posted: Thu Mar 29, 2012 4:23 pm
by NeuralStunner
Would you recommend an official suggestion on yon GZDoom forum, then?
Re: [GZDoom] 544 tall skies still wrapping
Posted: Thu Mar 29, 2012 4:40 pm
by Gez
You can try.
Re: [GZDoom] 544 tall skies still wrapping
Posted: Thu Mar 29, 2012 4:50 pm
by Graf Zahl
Well, such tall skies were never considered when the function was written
Re: [GZDoom] 544 tall skies still wrapping
Posted: Sat Mar 31, 2012 12:23 am
by printz
What is the equivalent skybox for how GZDoom renders the skies natively? How large should that cylinder be, where is the camera placed? I know this post would be better for the drdteam forum, but I don't want to destroy the equivalent thread there.
Re: [GZDoom] 544 tall skies still wrapping
Posted: Sat Mar 31, 2012 12:43 am
by Gez
It's a sphere, not a cylinder. It's made of triangles like a
geodesic dome. The shape is a bit weird in that the upper hemisphere covers about everything, the lower hemisphere only plugs a tiny hole at the bottom (as shown on the OP's pic).
Re: [GZDoom] 544 tall skies still wrapping
Posted: Sat Mar 31, 2012 6:52 am
by Graf Zahl
Should be better now. I reworked the coordinate calculations for oversized skies (larger than 240 pixels. The old code wasn't meant to work for anything taller than 256 pixels.
Re: [GZDoom] 544 tall skies still wrapping
Posted: Sat Mar 31, 2012 9:44 am
by Gez
Indeed, much better. I got a strange variant of halls of mirrors with r1332 and a 1024x1024 sky texture (it seemed like some triangles were HOMing, others not), now it looks normal.