Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / Sharper Character Visuals

Author
Message
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 17th Mar 2008 15:42 Edited at: 17th Mar 2008 15:43
Hi Guys,

Just a quick tip for you. I was playing with new character submissions from future FPSC artists and noticed some of the characters relied heavily on strong lighting for the best effect. Currently X9 users cannot control this, and currently rely on a fixed shader. I just wanted to to point you to the file which will allow you to change the ratio a little:

Ensure you make suitable backups, then navigate to this folder:

FPS Creator Files effectbank fastbone

And open the shader file FASTBONE.FX, then locate the line:

gogo = (max(0, dot(netNormal, L))*SurfColor*0.25) + (SurfColor*0.75) + AmbiColor;

And replace it with:

// gogo = (max(0, dot(netNormal, L))*SurfColor*0.25) + (SurfColor*0.75) + AmbiColor;
gogo = (max(0, dot(netNormal, L))*SurfColor*0.9) + (SurfColor*0.1) + AmbiColor;

This will change the ratio of directed light vs area lighting from 25/75 to 90/10, meaning 90% of the characters illumination will come from the point light in the local area, and only 10% will come from the general average lighting irrespective of whether the polygon is facing those light sources.

A great way to learn shaders is to change little things inside working shaders and see the results. If the shader fails to load, that means you have changed too much and so always maintain backups before radically changing your shader. Although NOTEPAD is great, it does not have very good undo/redo features. Find a nice text editor with great undo/redo and you are on your way to playing with shaders and making your visuals unique to your game!

"Small, smart, and running around the legs of dinosaurs to find enough food to survive, bedroom programmers aren't extinct after all "
Rick123
18
Years of Service
User Offline
Joined: 26th May 2005
Location:
Posted: 17th Mar 2008 16:21
Thanks for the tip.
Aaagreen
16
Years of Service
User Offline
Joined: 4th Sep 2007
Location: City 17
Posted: 17th Mar 2008 16:59
Thanks. Been doing any fpsc updating lately? EFX and lemur are beating you with the x10 migration

Formerly Bum Fat Cheese
Nickydude
Retired Moderator
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 17th Mar 2008 17:12
Thanks Lee, added to the guide

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 17th Mar 2008 17:47
So if I understand this correctly, the characters will not be so visible when they are in a dark area, as now they sometimes seem to glow in the dark. If so, is this the same reason doors seem to glow even in a dark room?

Thanks for the tip.

Qwartje
16
Years of Service
User Offline
Joined: 27th Dec 2007
Location: I am in ur heads staring in teh deep!!
Posted: 17th Mar 2008 22:35
Quote: " If so, is this the same reason doors seem to glow even in a dark room?
"


Stock Sci-fi segment also glow (or atleast dont go black) With the ambient all down..

I am under ur postz, end i stolenz ur siggy!
AaronG
17
Years of Service
User Offline
Joined: 28th Oct 2006
Location: Millstone, NJ
Posted: 17th Mar 2008 22:47
What happens when I use this shader, is that the lights dynamicly affect the character. So, if I have a brown light on one side, and a white light on the other, BOTH of the lights will go on the character too, and effect it.

It's nothing to WOW about...but it's amazing all in all, haha.


8800 640mb GTS, 4gb RAM, 500gb HDD, Vista Home Premium, 3 Dual Panel Casing Fans
Nickydude
Retired Moderator
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 17th Mar 2008 22:51
Has anyone tried this? Anyone have a screenshot? How does it fair?

RedneckRambo
17
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 17th Mar 2008 23:11
I tried it out. I don't remember what it used to look like but this is it now.



There is the character with no light cast on him.



There he is with the flashlight by s4real (I think.)

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 17th Mar 2008 23:32
Looks like it's working well. Thanks.

best.

FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 17th Mar 2008 23:34
It works for me as well.

RIP Floating Skull unknown-2007 we will miss you in FPSC x10
Zdrok
17
Years of Service
User Offline
Joined: 19th Dec 2006
Location: Pittsburgh
Posted: 18th Mar 2008 00:08
Lee,

Thanks very much for this, I've always tried to fix the former enemies' problem, but to no avail. I will test it out later. Have a pint of Guinness because it's St. Patrick's today .
~AI

Nickydude
Retired Moderator
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 18th Mar 2008 00:29 Edited at: 18th Mar 2008 00:31
NVM

SamHH
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: Vermont
Posted: 18th Mar 2008 00:30
Thanks.



Urlforce Studios
17
Years of Service
User Offline
Joined: 16th Oct 2006
Location:
Posted: 18th Mar 2008 18:36
Nicky- pop this in your guide!

Nickydude
Retired Moderator
17
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 18th Mar 2008 19:07
Quote: "Nicky- pop this in your guide!"


See third post after Lee's.

Login to post a reply

Server time is: 2024-05-04 13:22:44
Your offset time is: 2024-05-04 13:22:44