Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

how do i make a reflective hangar floor?

Page: 1 of 1
 SD_Radical_Ed
12-11-2003, 3:51 PM
#1
i need a reflective hangar floor for my ja mp level, like this one:

http://www.lucasfiles.com/screenshots/867706.jpg)

how do i do it?
 WadeV1589
12-11-2003, 7:22 PM
#2
Heh, my map :)

Get yourself a nice looking texture, like dark marble, and create a shader for it using the following code (from my upcoming siege map, much more suttle reflection):

textures/sg_hatak/marble_reflect
{
qer_editorimage textures/sg_hatak/marble
portal
sort portal
surfaceparm forcefield
{
map textures/sg_hatak/marble
blendFunc GL_ONE GL_SRC_COLOR
depthWrite
alphaGen portal 512
}
{
map $lightmap
blendFunc GL_ZERO GL_SRC_COLOR
}
}


Place the shader texture onto the surface of a brush and place a misc_portal_surface entity on top of the brush (within 64 units of the surface).

Et voila, a lightmapped reflective floor - i.e. in shadows it doesn't reflect as much, much like a real reflective floor does.
 SD_Radical_Ed
12-11-2003, 8:43 PM
#3
Yay! Thanks! so this will even reflect my player?

in radiant, i cover the brush with the texture
then put another brush in front of it and right click it and select:misc_portal_surface?
 SD_Radical_Ed
12-11-2003, 8:52 PM
#4
ya if the texture that i want on my floor is called "blingbling_floor.jpg" in my textures/myroom folder, is this how the shader needs to work?

i named it "blingbling_floor.shader"

textures/myroom/blingbling_floor
{
qer_editorimage textures/myroom/blingbling_floor
portal
sort portal
surfaceparm forcefield
{
map textures/myroom/blingbling_floor
blendFunc GL_ONE GL_SRC_COLOR
depthWrite
alphaGen portal 512
}
{
map $lightmap
blendFunc GL_ZERO GL_SRC_COLOR
}
}
 Lil Killa
12-11-2003, 9:19 PM
#5
That's it...
Page: 1 of 1