Shiny floor shader with mirror effect -1 reply

Please wait...

Arkan__

Creation surpasses Destruction

50 XP

29th August 2008

0 Uploads

22 Posts

0 Threads

#1 9 years ago

Hello,

I was wondering if any of you guys know how I can make a mirror-shiny-floor in GTKradiant 1.5. A shader would be appreciated aswell.

Any comments/links/help would be appreciated,

Thanks in advance




Guest

I didn't make it!

0 XP

 
#2 9 years ago

If you want an exact mirror where you can reflect your character it would lag terribly. Instead a shiny floor is easy by just using this shader:

textures/shaderfolder/texturename { q3map_material material { map $lightmap } { map textures/shaderfolder/texturename blendFunc GL_DST_COLOR GL_ZERO } { map textures/common/environ9a.jpg blendFunc GL_SRC_ALPHA GL_ONE alphaGen const 0.25 tcGen environment } }

The Italic fields should be replaced with the appropriate names.




Guest

I didn't make it!

0 XP

 
#3 9 years ago
Juggernut;4947069If you want an exact mirror where you can reflect your character it would lag terribly.

Doesn't it simply double the number of polygons being drawn, or does it do more than that? If so, you'd just have to be careful to keep the polycount of that room down. On second thought, the only part that had any lagg on Szico's Midgarv 3 map was the room with a mirrored floor, and that didn't have very much detail.




Arkan__

Creation surpasses Destruction

50 XP

29th August 2008

0 Uploads

22 Posts

0 Threads

#4 9 years ago

The shine works, thanks for that.

I was going to use the mirrored floor in an outside area, I dont believe it would be smart. What about a blend image, just like the shine, but than a blurred image of the outside area? Something like water reflection, that should work, wouldnt it?




Guest

I didn't make it!

0 XP

 
#5 9 years ago
The Soleutator;4947228Doesn't it simply double the number of polygons being drawn, or does it do more than that? If so, you'd just have to be careful to keep the polycount of that room down. On second thought, the only part that had any lagg on Szico's Midgarv 3 map was the room with a mirrored floor, and that didn't have very much detail.

Well yes, it creates an exact version of the reflected area and puts mirrored under you. With only a few players it would lag.

@Arkan__: You could use a cubemap to make it look quite good, but it would require some heavy testing and modifying before you get it to look it that way. It also depends on the area that the floor is.




Arkan__

Creation surpasses Destruction

50 XP

29th August 2008

0 Uploads

22 Posts

0 Threads

#6 9 years ago

Do you can post a link to a tutorial for that or explain it plain and simple? Thank you