3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Simulate blacklight effects  (Read 225 times)

« on: May 06, 2014, 03:06:08 PM »
 Hey is there any way to use maybe a shader or script to control what part of a texture "reflects" light levels? Like if a blacklight was used the neon colors are vivid while the rest of the texture or wall is bland maybe even with a halo or glow effect only affecting the area desired?
 also was curious if there was a way to have light used in a way to reveal "hidden" things in a scene, say you have a flashlight object with colored lenses for it? Plain white light would show the basics, walls, floors, items. Pop on a colored lens like red and see bloody writing on the same wall you just looked at with the plain light, or see "ghosts" wandering around. Change lenses and poof you now in that wall see a door that was hidden ... scripting?? shaders?? dream??
"This town is infested with Killer Cockroaches!"

You have 3 options: Good, Fast, and Cheap. Pick TWO.
« Reply #1 on: May 06, 2014, 07:39:20 PM »
for the black light effect you might wanna rake a look at Shadmar's Glowmap shader (System Shaders)...

you'll need a purple texture patch (256x256 texture :) ) saved in the skinmesh of your choice's folder as userTextureA.dds...

then add a light and turn it all the way down so that it's dark outside...

finally, add a script that adjusts the color to the way you want it... 
something like this...

Code: [Select]
void Main()
{
   iShaderFloat3Set(OBJ_0,"cColor",0.1,0.1,0.6);
   iShaderFloatSet(OBJ_0,"cEmissive",2);
}


try it on andro...

--Mike

« Reply #2 on: May 07, 2014, 03:24:15 AM »
Awesome!  ;D

Had completely forgotten some of these great shaders.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #3 on: May 07, 2014, 07:04:37 AM »
Holy moly this is exactly what I  am looking for !!!
"This town is infested with Killer Cockroaches!"

You have 3 options: Good, Fast, and Cheap. Pick TWO.
« Reply #4 on: May 08, 2014, 01:29:50 AM »
Here are the arena wall segments and the creepy looking HQ units for the gme. Will make it both here in 3D Rad and in FPSC Classic and Reloaded. They use ,fx shader files as well so possibly some of their shaders will work in 3D Rad too if anyone is interested to try.

EDIT also here is the original phaser too.
« Last Edit: May 08, 2014, 01:31:28 AM by DolphinLover30 »
"This town is infested with Killer Cockroaches!"

You have 3 options: Good, Fast, and Cheap. Pick TWO.
Pages: [1]