![]() |
#1 |
Fix for Prey Ambient lighting
As some of you may or may not know, the ambient lighting in the D3 engine is rather ugly. This was caused by a bug in the interaction.vfp shader file that made the ambient light cast harsh, black shadows upon itself from a fixed angle.
The file at this link is a modified interaction.vfp file that fixes that problem. This was made with the D3 version of the file, but I think all versions are the same. If it doesn't work...someone may need to search through the file and find the relevant parts. http://www.trisoup.net/temp/d3ambient/ |
|
![]() |
![]() |
#2 |
Re: Fix for Prey Ambient lighting.
Never noticed that...
__________________
{<- machines have no conscience ->} {<- “Shoot him!” They say, Who will be the killer? Who will be the winner? ->} |
|
![]() |
![]() |
#3 |
Re: Fix for Prey Ambient lighting.
It looks like it's removing the bump map effect, or is that just me..?
__________________
A true genius does not need boundaries such as 'common sense' |
|
![]() |
![]() |
#4 |
Re: Fix for Prey Ambient lighting.
I couldn't tell ya...I've gotten so lost in what's what with engines that I couldn't tell bump mapping to better lighting from the game engine
![]() I loaded up Prey with the mod and can't tell a difference in how it looks...still looks the same to my blind eyes ![]()
__________________
{<- machines have no conscience ->} {<- “Shoot him!” They say, Who will be the killer? Who will be the winner? ->} |
|
![]() |
![]() |
#5 |
Re: Fix for Prey Ambient lighting.
From what rebb at doom 3 world has said, it doesn't completely remove the bumpmaps from the ambient lights, it's simply changing the way it treats them.
If you lit your level with a single ambient light, it might look flat since an ambient light is placed uniformly on all surfaces. For example. Old ambients ![]() Fixed ambients ![]() This fix is likely more important to mappers than players. |
|
![]() |
![]() |
#6 |
Re: Fix for Prey Ambient lighting.
Looks better broken to me :\
__________________
Staying Frosty Since 09/06/07 - I love you Katie <3 “Software is like sex; it's better when it's free.” - Linus Torvalds “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” - Calvin & Hobbes [INSERT SYSTEM SPECS THAT NO ONE CARES ABOUT HERE] |
|
![]() |
![]() |
#7 |
Re: Fix for Prey Ambient lighting.
Where as I like the fixed version
![]() |
|
![]() |
![]() |
#8 |
Re: Fix for Prey Ambient lighting.
In game shots? I don't have Doom 3 installed anymore.
__________________
Staying Frosty Since 09/06/07 - I love you Katie <3 “Software is like sex; it's better when it's free.” - Linus Torvalds “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” - Calvin & Hobbes [INSERT SYSTEM SPECS THAT NO ONE CARES ABOUT HERE] |
|
![]() |
![]() |
#9 |
Re: Fix for Prey Ambient lighting.
Well son...you're either not a mapper or don't have a keen eye for what a base level ambient is supposed to look like.
![]() For example: This is a level lit with the 'fixed' non-directional, no fall off ambient. Everything appears slightly more uniform due to the perfectly even lighting. You would never want to have an ambient this bright in a real level. I think I have it at around 20 or 25 here. ![]() This image has the ambient turned down to a reasonable level of 2 or 3. Then a 'real' light is placed to light the area. All the ambient does is keep the shadows from being completely pitch black. ![]()
Last edited by New Horizon; 02-22-2008 at 03:13 PM.
|
|
![]() |
![]() |
#10 |
Re: Fix for Prey Ambient lighting.
Your first screens weren't that informative. Also, will it trigger punkbuster? Since you have modified the files?
__________________
Duke Nukem Forever Who am I to judge? |
|
![]() |
![]() |
#11 |
Re: Fix for Prey Ambient lighting.
|
|
![]() |
![]() |
#12 |
Re: Fix for Prey Ambient lighting.
__________________
Staying Frosty Since 09/06/07 - I love you Katie <3 “Software is like sex; it's better when it's free.” - Linus Torvalds “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” - Calvin & Hobbes [INSERT SYSTEM SPECS THAT NO ONE CARES ABOUT HERE] |
|
![]() |
![]() |
#13 |
Re: Fix for Prey Ambient lighting.
|
|
![]() |
![]() |
#14 |
Re: Fix for Prey Ambient lighting.
so your saying that in game it wont make a difference?
__________________
is it weird when a psychonaut plays psychonauts? |
|
![]() |
![]() |
#15 |
Re: Fix for Prey Ambient lighting.
It will make a difference if the map uses ambient lighting to lighten up the dark shadows. Before the fix, ambient lighting was very ugly because it was broken and caused harsh black splotches. You couldn't really use it to any degree. At any rate, it's here for mappers/ modders to use in their projects.
|
|
![]() |
![]() |
#16 |
Re: Fix for Prey Ambient lighting.
would it make any visual difference in prey or doom 3?
__________________
is it weird when a psychonaut plays psychonauts? |
|
![]() |
![]() |
#17 |
Re: Fix for Prey Ambient lighting.
This all seems useless to me without proper Doom 3 / Prey screenshots. I have no idea what you were trying to show in those previous shots....as it's not either game and you simply removed bumpmapping and shading. Show us what it looks like in-game, since thats all that matters.
|
|
![]() |
![]() |
#18 | |
Re: Fix for Prey Ambient lighting.
Quote:
Last edited by New Horizon; 02-26-2008 at 12:49 PM.
|
||
![]() |
![]() |
#19 |
Re: Fix for Prey Ambient lighting.
what is map?
__________________
is it weird when a psychonaut plays psychonauts? |
|
![]() |
![]() |
#20 |
Re: Fix for Prey Ambient lighting.
|
|
![]() |
![]() |
#21 |
Re: Fix for Prey Ambient lighting.
I'm a mapper... and don't have a clue what you're on about.
|
|
![]() |
![]() |
#22 |
Re: Fix for Prey Ambient lighting.
God, Doom 3 ambient was broken like that? I guess it wasn't very used given the dark nature of the game so I guess no-one noticed.
For all of you commenting that the first shot looks better, a short piece of background: The lighting model generally used in realtime rasterizers is computed using three components named ambient, diffuse and specular. While diffuse represents the actual light emitted by a light source (and specular its direct reflection on a shiny surface), ambient is designed to approximate all of the indirect reflection of this source, causing areas that aren't directly in the beam to still light up. Due to its nature, ambient lighting doesn't have a direction and is supposed to slightly affect every pixel regardless of its normal, race or color as long as it's in the range of the light (ambient lighting is basically a lousy attempt at approximating secondary rays in raytracing). The first two screenshots lights don't have any diffuse or specular component, which of course should never happen and isn't natural at all. There are just a demonstration of how broken it was to people who actually know what ambient lighting is. This fix isn't probably going to affect much of the forementioned games given that they all take place in dark corridors, but it may definitely come in handy for mappers trying to design outdoors areas. I wouldn't be surprised if ETQW already had ambient lighting fixed.
__________________
EDuke32 - "The corrupt doctrine of terror has begun." |
|
![]() |
![]() |
#23 | |
Re: Fix for Prey Ambient lighting.
You must be joking right? You are a mapper (make levels for games or mods) and don't know what is ambient lights?
I'm no mapper and i know what they are (as any 3d modeler does), and New Horizon works for the Thief like DarkMod so he knows what is talking about. Here is a wiki quote for you guys. ![]() Quote:
|
||
![]() |
![]() |
#24 |
Re: Fix for Prey Ambient lighting.
I know what ambient lights are... I ain't that uninformed. I'm just wondering why you would assume ID didn't know what they were doing?
Adding ambient lights in real-time calculated lighting significantly increases render-time and lowers performance. In a lot of cases it just doesn't pay to have them unless you really feel it needs it or can afford to in the scene. |
|
![]() |
![]() |
#25 | |
Re: Fix for Prey Ambient lighting.
Quote:
Well, no. Ambient lighting is practically free compared to any other kind of lighting.
__________________
EDuke32 - "The corrupt doctrine of terror has begun." |
||
![]() |
![]() |
#26 | |
Re: Fix for Prey Ambient lighting.
Quote:
For our mod(based on the Thief games), proper ambient lighting is an absolute necessity. Our missions take place at night, and having pitch black shadows completely ruins the playability of the missions since you can't see anything in the black shadows. Ambient is crucial for far more than just daylight missions. With our improved ambient, we're able to get softer looking scenes like this. ![]() ![]() As it turns out, our fix only works with Doom 3. We've also run into Nvidia vs. ATI issues with the fix. It doesn't seem to work properly across the ATI cards, but all Nvidia cards have accepted any attempted fix we throw at them. Thanks ATI! |
||
![]() |
![]() |
#27 |
Re: Fix for Prey Ambient lighting.
Those screens look great New Horizon, I know exactly what your talking about with the ambient lighting but I find that sort of ambience makes the scene look a little flat and lifeless. Have you thought about some sort of Ambient occlusion? I'm not talking about the screen space stuff from Crysis etc but ambient occlusion based off a cube map. I use an engine (C4) which has this feature and you can get some excellent results, the downside being, it isn't dynamic and can take a while to calculate.
|
|
![]() |
Bookmarks |
|
|