[fixed]Skybox changing orientation

Bugs that have been resolved.

Moderator: Graf Zahl

User avatar
Enjay
Developer
Developer
Posts: 4753
Joined: Tue Aug 30, 2005 23:19
Location: Scotland

[fixed]Skybox changing orientation

Post by Enjay »

Here's a weird one. I expect it's nothing you can do anything about unless it becomes repeatable or an obvious cause presents itself. However, I thought I'd mention it because, aside from anything else, it was an interesting oddity.

After making some significant changes to a number of levels, I rebuilt my personal IWAD and was quickly going through all the maps by typing "map mapXX" at the console. I'd take note of any messages I got at the console, quickly look around the map and then move on to the next map.

It just so happens that the last map uses a skybox of the 6 sided GZDoom type. It's also the case that this skybox has a very clear orientation because the moon is shown on one of the sides. What's more, the level has quite a few "shadows" behind structures made by darker sectors. All this made it very obvious that the skybox had apparently rotated by 180 degrees because the moon was now shining directly onto the areas of the map that were in shadow.

So, that's it. I'm not sure if more than just this skybox showed the oddity or if any regular skies had. I just know that the skybox for my final map had rotated (everything was still aligned - so the whole sky had moved, not just one side or anything). The sky is not set to scroll or change in any way on that level. When I quit GZDoom, restarted and went back to the map, the skybox was the correct way round.

Well, like I said, probably nothing really useful here, but at least you know it happened. :?
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia

Post by Nash »

Very weird indeed! The mystery of the moving sky. ;)
User avatar
Enjay
Developer
Developer
Posts: 4753
Joined: Tue Aug 30, 2005 23:19
Location: Scotland

Post by Enjay »

I've managed to make it happen a few times now. I haven't seen it happen when just playing through maps in the order laid down in MAPINFO, but warping to maps certainly seems to cause it.

I also noticed a lightning sky I have seems to be out of synch. SKY1 and SKY2 are identical aside from some lightning bolts drawn onto the texture used for SKY2. The sky in the level is set to scroll. It used to be the case that when the lightning flashed, SKY2 would be shown in exactly the same position that SKY1 had scrolled to and when the flash was over, the SKY1 view returned, still in synch with SKY2 and the game carried on. So effectively the bolts appeared on the sky and then disappeared again. Now, however, the SKY1 and SKY2 textures seem to be in different positions relative to eachother so its a less pleasing effect as the clouds seem to jump around too. I don't know if this is happening in Zdoom as well as GZDoom.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

Post by Graf Zahl »

Do you have a map with which I can test this?
User avatar
Enjay
Developer
Developer
Posts: 4753
Joined: Tue Aug 30, 2005 23:19
Location: Scotland

Post by Enjay »

I'll put something together when I get home.
User avatar
Enjay
Developer
Developer
Posts: 4753
Joined: Tue Aug 30, 2005 23:19
Location: Scotland

Post by Enjay »

OK, I admit it, I'm stumped. The attached WAD uses exactly the same sky lumps as in my WAD. The MAPINFO is set up the same too - except that mine has a cluster defined and runs on map35. Yet in Doom2, the regular and lightning skies are in synch, in my mod they are always out. :shrug:

Also, I've been trying to make the skybox orientation thing show up with the skybox resource I posted over at the other thread, but I simply can't get it to reproduce. All I can offer by way of evidence that I am not going insane is some screenshots of the map where it happens (people who have played "Europe" will recognise the security towers. This runs on map105 of my mod. On going directly to the level after starting a game, I took the shot "correct.jpg". Then I used "map map01" - "map map105" and took "wrong1.jpg" and "wrong2.jpg"

Sorry I can't be any more help than that. If I come up with something a bit more concrete, I'll be sure to post it.
User avatar
Enjay
Developer
Developer
Posts: 4753
Joined: Tue Aug 30, 2005 23:19
Location: Scotland

Post by Enjay »

And the screen shots
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

Post by Graf Zahl »

I think I got it. ZDoom never resets the sky's scroll position. Logically this is fatal in maps that require exact positioning.

I have to test this in ZDoom and then eventually report this back to Randy.


EDIT: confirmed. The bug can even be reproduced in standard Hexen. Just go to the Wolf Chapel, look outside and remember the position of the mountains. Now go to Darkmere, wait a little and go back. The mountains have moved.


Fixed.
User avatar
Enjay
Developer
Developer
Posts: 4753
Joined: Tue Aug 30, 2005 23:19
Location: Scotland

Post by Enjay »

Cool. Nice to know I'm not insane. ;) Why does it affect the map that the screenshots came from? The sky in that one does not scroll at all. Do scrolling skies on other levels mess it up?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

Post by Graf Zahl »

That exactly is the problem. The scrolling sky in another map alters the sky's position and that value is never reset to the default.

Return to “Closed Bugs”