UFO:Alien Invasion

Archive => Bugs prior to release 2.4 => Topic started by: MCR on November 25, 2010, 04:34:34 pm

Title: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: MCR on November 25, 2010, 04:34:34 pm
These are some screenshots from v2.1 of the game. Where have these features gone ?
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: MCR on November 25, 2010, 04:36:57 pm
Soft shadows, soft lighting:
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: MCR on November 25, 2010, 04:40:17 pm
Actors standing in the shadow/light:
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: MCR on November 25, 2010, 04:46:16 pm
It seems that in the actual git master version shadows have disappeared completely, also there does not seem to be much difference between day/night versions of a map.  :'(

Please bring back light & shadow !
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: MCR on November 25, 2010, 04:51:42 pm
Here we have the farm map @ daytime:
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: MCR on November 25, 2010, 04:52:43 pm
The same map @ night:  ::)
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: MCR on November 25, 2010, 04:56:50 pm
Did anyone else notice the absence of shadows or is it just me ?
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: Crystan on November 25, 2010, 05:02:40 pm
Well havnt noticed it because i cant dl the newest maps. Probably the shadows are now rendered realtime and you cant see them because of the ATI bug?
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: MCR on November 25, 2010, 05:33:02 pm
Probably the shadows are now rendered realtime and you cant see them because of the ATI bug?

Well, actually this is what Arisian was working on before he left, but I do not believe that such a big step forward would not be announced  ;)
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: H-Hour on November 25, 2010, 07:03:27 pm
I'm not sure what you mean by "soft shadows, soft lighting", but it looks to me like you have compiled the maps without lighting. I have shadows in my maps.

The main difference seems to be that the saturation of colors has been kicked up quite a bit. But this could probably be a number of things.
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: MCR on November 25, 2010, 07:17:30 pm
I'm not sure what you mean by "soft shadows, soft lighting", but it looks to me like you have compiled the maps without lighting. I have shadows in my maps.


By soft shadows I mean the edges of the shadows, which are looking somehow smoother in the old version.

I compiled the maps using compile_maps.bat & also downloaded another version of the bsps using Muton's tool, but I am happy to hear that the shadow bug seems to be affecting just me...

Maybe someone could tell me how to compile the maps with shadows enabled...
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: H-Hour on November 25, 2010, 07:28:17 pm
Try this compile_maps_old.bat. Kildor sent it to me when I was having trouble with compile_maps.bat a while ago and I use it some. Put it next to the current compile_maps.bat (/contrib/scripts) and call it like:

compile_maps_old.bat farm

That should compile with lighting. Another thing you can try is to pick one tile and compile it with ufo2map.exe:

ufo2map -quant 3 -extra maps/farm/filename.map
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: MCR on November 25, 2010, 07:33:04 pm
Thanx.
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: Muton on November 26, 2010, 08:58:16 pm
Load 4x4 city map
you know this endless compiling map
It was recompiled a week ago
and i can see shadows there ....

On farm map the firebird does have a shadow while the ufo lack the shadow


My tool doesnt use -quant n
maps.mk will use -quant 4 btw
It would be nice if a mapper could clarify this option


what about maps from map-get.py ?
map-get.py upgrade
run msys.bat
cd to your ufoai source
type
contrib/scripts/map-get.py upgrade
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: H-Hour on November 26, 2010, 10:37:09 pm
My tool doesnt use -quant n
maps.mk will use -quant 4 btw
It would be nice if a mapper could clarify this option

I'm not sure if any of us know technically what it does, but in the end it produces much sharper shadow lines. If you look at the shadows closely, you will see that an angled shadow line comes out in small squares (like pixels). Lower quant reduces the size of these boxes to produce cleaner shadow lines. It's not the difference between "blurry" and sharp, but about straight or broken into little squares.

Mattn was playing with the default -quant setting recently, but I don't know where he left it. Small quant values (such as 2) resulted in map compiling errors for some maps (max lightmap). Quant 2 is tons better than 3 and in my opinion our goal should be to support it, but I'm not sure anyone knows a good way to get there. I was told increasing lightmap size is not a good idea.
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: MCR on November 27, 2010, 09:36:56 am
The problem I had with the shadows was due to a wrong lightmap scale setting.
After reducing the lightmap scale light & shadow on the maps are back.  8)



Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: MCR on November 27, 2010, 09:52:17 am

On farm map the firebird does have a shadow while the ufo lack the shadow


I also noticed that on some maps, like africa or farm for example, the small ufos (fighter, scout) do not generate any shadows, while on other maps they do. So some small bug with the shadows remains...
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: MCR on November 27, 2010, 10:01:28 am
I'm not sure if any of us know technically what it does, but in the end it produces much sharper shadow lines. If you look at the shadows closely, you will see that an angled shadow line comes out in small squares (like pixels). Lower quant reduces the size of these boxes to produce cleaner shadow lines. It's not the difference between "blurry" and sharp, but about straight or broken into little squares.

Mattn was playing with the default -quant setting recently, but I don't know where he left it. Small quant values (such as 2) resulted in map compiling errors for some maps (max lightmap). Quant 2 is tons better than 3 and in my opinion our goal should be to support it, but I'm not sure anyone knows a good way to get there. I was told increasing lightmap size is not a good idea.

IMHO we should use the setting, which produces the best visual quality for the map compilation. Enhanced visual quality on the battlescape in the end results in getting a better atmosphere & also would justify even longer map compiling times.
Great to see that there are experiments regarding this undertaken already...
Title: Re: Missing gfx features in v2.4. (compared to v2.1 of the game)
Post by: H-Hour on November 27, 2010, 11:56:17 am
I also noticed that on some maps, like africa or farm for example, the small ufos (fighter, scout) do not generate any shadows, while on other maps they do. So some small bug with the shadows remains...

This is probably because they lack noclip or lightclip brushes (models do not cast shadows by default, so we must add hidden brushes that cast shadows). If you can make a list and add it as a bug report on sf that will help.