[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4752: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4754: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
The Gaming Union • View topic - Weird effect.

Weird effect.

Moderators: Meurig, Spooky, Crook, Thursday

Postby maxdamage » Wed Sep 08, 2004 12:45 am

I found this effect when making HW2 maps earlier this year.Couldn't remember how I got it but after 30 mins of tweaking and testing here it is:
function NonDetermChunk()

fogSetActive(300)
setGlareIntensity(1)
setLevelShadowColour(0,0,0, 1)
loadBackground("m13")
setSensorsManagerCameraDistances(15000, 70000)
setDefaultMusic("Data:sound/music/battle/battle_keeper")
end
As you can see by changing the setGlareIntensity to 1 produces a bright red glow on the various .hods
Image
and
Image

maxdamage.

[size="1"][ 08. September 2004, 12:51 AM: Message edited by: maxdamage ][/size]
Image [url=http://www.nfsplanet.com/en/nfsc/showcase/author/10916/
]NFS:C[/URL]
"Now witness the firepower of this fully armed and operational battle-station"- Emperor Palpatine in the Star Wars movie Star Wars Episode 6:Return of the Jedi!
"I was elected to lead not read!" by Pres.Schwarzenegger in The Simpsons :The movie!
User avatar
maxdamage
 
Posts: 2541
Joined: Tue Sep 02, 2003 12:00 am
Location: Gauteng, South Africa

Postby Supernova » Wed Sep 08, 2004 4:25 am

Its called bloom. In real life its a lens artifact caused by specular reflections. In homeworld2 its a slightly underdevoloped pixel shader(?) that wasn't used much, most likely because it just didn't look good enough to warrent the performance hit of adding more "points" to make it look better... It is my understanding from fiddling the game adds a block to every specular area within a certain range of the last at a certain size. To make it look better they would have to decrease the size, as well as the range so that there were more blocks closer together - after awhile this becomes quite the problem performance wise.

As for the function;
setGlareIntensity(nAmount)

nAmount - can be any number between 0, and 1. 0 denotes not bloom, while 1 means there will be bloom with each spec hit. Any number between, ie 0.25, will mean that any specular hit of 75% (75% above no spec.) or higher a block is added. for say .75, any specular hit thats above 25% of no spec, a block is added.

Good luck figuring out my definitions...

[size="1"][ 08. September 2004, 04:34 AM: Message edited by: Supernova ][/size]
Supernova
 
Posts: 688
Joined: Sat Feb 24, 2001 1:00 pm
Location: Take a guess.



Return to Homeworld 2




Users browsing this forum: No registered users and 3 guests

cron