Doom3world

The world is yours! Doom 3 - Quake 4 - ET:QW - Prey - Rage
It is currently Sat May 25, 2013 7:54 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 17 posts ] 
Author Message
 Post subject: ambient lights without normalmapping
PostPosted: Fri Sep 14, 2007 2:16 pm 
Offline
is connecting to Doom3world.org
User avatar

Joined: Fri Sep 14, 2007 2:01 pm
Posts: 4
Hi all!

Is there some way to render ambientlights without normalmaps? cuz when i turning off bumpmapping, ambient looks alot more better than with it, especially on models. i looked at ambientlight.vfp, but im noob in shader languages :cry: It would be really really cool if anyone got it fixed.

p.s. sorry 4 the english, cuz im russian.
p.p.s preved, krosavtchegi :wink:

_________________
S4mEng


Top
 Profile E-mail  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Sat Sep 15, 2007 11:41 pm 
Offline
Last man standing
User avatar

Joined: Fri Apr 22, 2005 11:55 pm
Posts: 1180
I think D3 ambientlights don't use normalmaps...
Try to light a surface with an ambientlight... it'll look flat.

What would be cool is to have Q4-like ambientlights working in D3 :)

_________________
Fragging Free - a frantic Doom3:ROE single-player modification.


Top
 Profile  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Sun Sep 16, 2007 6:40 pm 
Offline
is connecting to Doom3world.org
User avatar

Joined: Fri Sep 14, 2007 2:01 pm
Posts: 4
r_skipbump=0 84kb
r_skipbump=1 59 kb

so, waddaya think now 8)

p.s. hehe, sorry, im an idiot :mrgreen: . fixed

_________________
S4mEng


Last edited by ant013 on Sun Sep 16, 2007 10:50 pm, edited 1 time in total.

Top
 Profile E-mail  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Sun Sep 16, 2007 10:03 pm 
Offline
Last man standing
User avatar

Joined: Fri Apr 22, 2005 11:55 pm
Posts: 1180
I think that they are the same image.. please fix the link :)

Edit: wow, now I understand. I've never noticed how it looks bad with ambientlights... mostly because I always use ambientlights with a brightness lower than 30 or 40 and only as "background" of other lights.

But is seems like you can enable / disable bumbmap for the entire game and not for the single light...

I hope someone will help you... I know nothing about shader languages :lol:

_________________
Fragging Free - a frantic Doom3:ROE single-player modification.


Top
 Profile  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Mon Feb 18, 2008 6:09 am 
Offline
picked up 200 ammo

Joined: Fri Nov 05, 2004 5:59 am
Posts: 245
Anyone ever look into this?

It would definitely make the game look better as the no fall off ambients look like absolute crap since they render the bump maps incorrectly.


Top
 Profile  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Mon Feb 18, 2008 9:56 am 
Offline
a gun & a nice word
User avatar

Joined: Sat Jan 11, 2003 9:30 pm
Posts: 8713
Location: Orlando, FL
I don't suppose there's any harm in detracting from the topic a bit so what constitutes an ambient light anyway? I mean we know what they do in the context of the game but what effect are they supposed to represent in the real world?

I'm guessing it's supposed to be light that doesn't have a defined source or direction. It's supposed to be a cheap alternative to ambient occlusion.

And if that's the case, I don't know how anyone would go about fixing the problem short of implementing some kind of real-time ambient occlusion. I'm not even sure that's possible without access to the full source code.

I imagine adding falloff wouldn't do anything other than dull the relief of surfaces closer to the center of an ambient light. It's a slight improvement, but the fundemental problem present with ambient lights would remain.

_________________
Image Staff
Learn something today? Why not write an article about it on modwiki.net?


Top
 Profile  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Mon Feb 18, 2008 2:52 pm 
Offline
picked up 200 ammo

Joined: Fri Nov 05, 2004 5:59 am
Posts: 245
Well for our work in Dark Mod, we only use an extremely low level of the 'no fall off' ambient. For us, this simulates the worlds global illumination...diffuse reflection...or whatever you wish to call it. Shadows without a very small amount of ambient are unnaturally pitch black in doom 3, as I'm sure you know.

In any case, the no falloff ambient incorrectly lights the bump map...making it look like it's lit from an angle..instead of flat. We use such a low level that's really not noticeable but it would still be nice to fix it.


Top
 Profile  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Mon Feb 18, 2008 4:20 pm 
Offline
Very Senior Forum Poster
User avatar

Joined: Sun May 29, 2005 10:02 pm
Posts: 7083
Location: Here, not there.
ant013 wrote:
Hi all!
Is there some way to render ambientlights without normalmaps? cuz when i turning off bumpmapping, ambient looks alot more better than with it, especially on models. i looked at ambientlight.vfp, but im noob in shader languages :cry: It would be really really cool if anyone got it fixed.


Try turning the ambient down. What's the EXACT ambient light-shader you're using? I ended up making my own custom ones for Q4 because I didn't like the ones included. Sadly, I don't have have my Q4 content anymore, but here's a link to a map I made:
http://planetquake.gamespy.com/View.php ... tail&id=64

In there should be some good ambient lights that don't brighten the place up to much but DO make things so you can see them.
Ambient lights normally don't interact with anything (from what I remember). What I would do with them is use them to fill in an area so you can see @ a certain light level, then use normal lights for the rest. Sadly, all the threads I have bookmarked about lights are gone (they were on non-d3w sites).

Quote:
p.s. sorry 4 the english, cuz im russian.


Better english then me. :D

_________________
Fuzzy Logic Inc
PAINTBALL DOOM 3!!!!
Check out my Q2 server! q2server.fuzzylogicinc.com :D
Doom 3, Paintball! d3server.fuzzylogicinc.com


Top
 Profile E-mail  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Mon Feb 18, 2008 10:56 pm 
Offline
picked up 100 armour
User avatar

Joined: Wed Apr 13, 2005 4:52 pm
Posts: 145
Location: Oregon
The Happy Friar wrote:
ant013 wrote:
Better english then me. :D


lol

Better english than me. :P Sorry, just had to point that out, considering the context. ;)

_________________
Phantazm11.com


Top
 Profile  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Tue Feb 19, 2008 12:43 am 
Offline
Very Senior Forum Poster
User avatar

Joined: Sun May 29, 2005 10:02 pm
Posts: 7083
Location: Here, not there.
phantazm11 wrote:
The Happy Friar wrote:
ant013 wrote:
Better english then me. :D

lol
Better english than me. :P Sorry, just had to point that out, considering the context. ;)


this is dedicated to all the grammar nazi's out there: http://www.kloonigames.com/blog/games/grammar

:D

_________________
Fuzzy Logic Inc
PAINTBALL DOOM 3!!!!
Check out my Q2 server! q2server.fuzzylogicinc.com :D
Doom 3, Paintball! d3server.fuzzylogicinc.com


Top
 Profile E-mail  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Tue Feb 19, 2008 5:17 am 
Offline
The first 10 posts have been the best...

Joined: Sun Aug 05, 2007 3:39 am
Posts: 16
The Happy Friar wrote:
this is dedicated to all the grammar nazi's out there:


it's "grammar nazis" not "grammar nazi's"!

:)

-


Top
 Profile E-mail  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Tue Feb 19, 2008 4:19 pm 
Offline
Very Senior Forum Poster
User avatar

Joined: Sun May 29, 2005 10:02 pm
Posts: 7083
Location: Here, not there.
maybe i was making it possessive. :D

_________________
Fuzzy Logic Inc
PAINTBALL DOOM 3!!!!
Check out my Q2 server! q2server.fuzzylogicinc.com :D
Doom 3, Paintball! d3server.fuzzylogicinc.com


Top
 Profile E-mail  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Wed Feb 20, 2008 8:30 am 
Offline
The first 10 posts have been the best...

Joined: Sun Aug 05, 2007 3:39 am
Posts: 16
The Happy Friar wrote:
maybe i was making it possessive. :D

aah, possessed by a grammar nazi, i see. :wink:

about that ambient light thingie and chances to fix it:
i found a comment in lights.mtr (line 949)

Code:
// an ambient light will do non-directional bump mapping, and won't have specular lighting
// or shadows

so i understand doing "non-directional bump mapping" is the problem. then looking at the material shaders for ambient lights i see they all start like this:

Code:
lights/ambientLightName
{
   ambientLight
   blah blah blah

normal lights do not have this "ambientLight"-argument in their shader.
i know next to nothing about these things, but does it call a special ambientlight-func in the renderer? if so, then it cannot be fixed without access to the source code.
but maybe it is pointing somewhere else? or there are different types of light, that can be misused for some non bumpmapping ambient light fake?

r_skipbump=1 turns off all the bumpmapping and makes everything look old school. definately not a fix.

-


Top
 Profile E-mail  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Wed Feb 20, 2008 12:29 pm 
Offline
picked up 200 ammo

Joined: Fri Nov 05, 2004 5:59 am
Posts: 245
Yeah, if there was some way to 'abuse' r_skipbump 1 to be used with a single ambient light, but not other lights...then we would be somewhere. There has to be a way.


Top
 Profile  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Wed Feb 20, 2008 5:34 pm 
Offline
missed 400 shots

Joined: Sat Jul 05, 2003 4:08 pm
Posts: 452
Antispam measure: What is larger? The Sun or the Galaxy?: sun
There is. 8)

_________________
( imagine obnoxiously huge Image here )
Doom3 Ambient Light Fix - Thread - Site


Top
 Profile  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Thu Feb 21, 2008 3:32 am 
Offline
picked up 200 ammo

Joined: Fri Nov 05, 2004 5:59 am
Posts: 245
Haha. Please share rebb!


Top
 Profile  
 
 Post subject: Re: ambient lights without normalmapping
PostPosted: Thu Feb 21, 2008 7:11 pm 
Offline
missed 400 shots

Joined: Sat Jul 05, 2003 4:08 pm
Posts: 452
Antispam measure: What is larger? The Sun or the Galaxy?: sun
Look here, hope it helps. :)

viewtopic.php?f=39&t=21230

_________________
( imagine obnoxiously huge Image here )
Doom3 Ambient Light Fix - Thread - Site


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group