mirror texture

mirror texture

Re: mirror texture Posted by Sam37 on Sat Jan 8th 2005 at 6:34pm
Sam37
47 posts
Posted 2005-01-08 6:34pm
Sam37
member
47 posts 5 snarkmarks Registered: Dec 15th 2004 Occupation: Student Location: UK
Hi, Is there a mirror texture (or a way of implementing a mirror using something else).

I want to make a mirror in a bathroom for HL2:DM

Thanx :smile:
Re: mirror texture Posted by Orpheus on Sat Jan 8th 2005 at 6:37pm
Orpheus
13860 posts
Posted 2005-01-08 6:37pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
<DIV class=quote>
<DIV class=quotetitle>? quoting Sam37</DIV>
<DIV class=quotetext>Hi, Is there a mirror texture (or a way of implementing a mirror using something else).

I want to make a mirror in a bathroom for HL2:DM

Thanx :smile:

</DIV></DIV>

it is my belief that if mirrors were possible, there would have been one in HL2.

since i have yet to complete the game i am not positive, but i would venture the answer is "you cannot make one"
did you see one in the game someplace?
Re: mirror texture Posted by Paladin on Sat Jan 8th 2005 at 6:45pm
Paladin
16 posts
Posted 2005-01-08 6:45pm
Paladin
member
16 posts 42 snarkmarks Registered: Nov 30th 2004 Occupation: Student Location: Germany
A mirror should definatly be posssible. As water and the specular
mapping of surfaces(with the use of cubemaps) reflect the area to a
certain degree it should be possible to create a new texture which
completely or almost completely reflects the surroundings.

I don't know how as I have near to no knowledge with texture creation
but maybe the tutorial section with its tutorials about textures can
help you.

As far as mirrors in HL2 go: I think they simply left them out of the
game because they want the player to really feel to be Gordon Freeman
and that illusion would be destroyed if you could view yourself in a
mirror.
Re: mirror texture Posted by Orpheus on Sat Jan 8th 2005 at 6:54pm
Orpheus
13860 posts
Posted 2005-01-08 6:54pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
i do have a suggestion. how about you put a camera directly in front of a TV type thing..???

it would simulate a mirror wouldn't it?
Re: mirror texture Posted by Joe-Bob on Sat Jan 8th 2005 at 7:01pm
Joe-Bob
180 posts
Posted 2005-01-08 7:01pm
Joe-Bob
member
180 posts 77 snarkmarks Registered: Dec 3rd 2004
It's possible that you could try that camera thing, have it focus at a
target entity, and have that target be parented to !player...

I'm not sure if that would work, you'd have to test it, and I'm sure it wouldn't look right in multiplayer.

Edit ) Even following the player wouldn't look right... you would
have to come up with some way to make the target entity point...
opposite of the player?
Re: mirror texture Posted by Sam37 on Sat Jan 8th 2005 at 9:00pm
Sam37
47 posts
Posted 2005-01-08 9:00pm
Sam37
member
47 posts 5 snarkmarks Registered: Dec 15th 2004 Occupation: Student Location: UK
ok thanx anyway :smile:
Re: mirror texture Posted by sXenoG on Sat Jan 8th 2005 at 9:57pm
sXenoG
49 posts
Posted 2005-01-08 9:57pm
sXenoG
member
49 posts 5 snarkmarks Registered: Dec 24th 2004
U know id ont know how its done but as said b4 im almost 100% positive
its possible becuz in HL2 at the top of a light tower if u look up
there theres is HIGHLY reflective matrial it was a bit distorted but
that was becuz of how it was made but it should most definately be
possible
Re: mirror texture Posted by rs6 on Sun Jan 9th 2005 at 2:12am
rs6
640 posts
Posted 2005-01-09 2:12am
rs6
member
640 posts 94 snarkmarks Registered: Dec 31st 2004 Occupation: koledge Location: New Jersey, USA
its probly possible; but you probly won;t be able to see your self in teh mirror, in cs source or HL2DM, becuase tehre probly is no model for that point of view.
Re: mirror texture Posted by sXenoG on Sun Jan 9th 2005 at 5:49am
sXenoG
49 posts
Posted 2005-01-09 5:49am
sXenoG
member
49 posts 5 snarkmarks Registered: Dec 24th 2004
well ive been looking thru aand as the previous replier wrote u cant
see urself and i kno this thru experience as well.. the model is never
drawn for urself so even if u had a mirror u might as well call the map
i_am_a_vampire since u cant see urself neways :smile:
Re: mirror texture Posted by mazemaster on Sun Jan 9th 2005 at 8:38am
mazemaster
890 posts
Posted 2005-01-09 8:38am
890 posts 438 snarkmarks Registered: Feb 12th 2002
HL2's DX9 shaders support it, but I'm not sure if Valve actually made a specific "mirror" material or if you would have to write one yourself. In any case, it will only work on high end systems.
Re: mirror texture Posted by Orpheus on Sun Jan 9th 2005 at 12:19pm
Orpheus
13860 posts
Posted 2005-01-09 12:19pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
<DIV class=quote>
<DIV class=quotetitle>? quoting mazemaster</DIV>
<DIV class=quotetext>HL2's DX9 shaders support it, but I'm not sure if Valve actually made a specific "mirror" material or if you would have to write one yourself. In any case, it will only work on high end systems. </DIV></DIV>

sad when you think about that. duke had them on my 486, and unreal 1 had it on my 400 mhz :/
wonder why HL2 can't do it well?
Re: mirror texture Posted by SirJim on Sun Jan 9th 2005 at 1:08pm
SirJim
18 posts
Posted 2005-01-09 1:08pm
SirJim
member
18 posts 22 snarkmarks Registered: Jan 7th 2005 Occupation: Student Location: UK
Just because it wasnt in the HL2 Singleplayer doesnt mean its not
possible. There apparently isnt a Gordon Freeman model in game, thats
why when you set up a camera, the player's invisible.
Re: mirror texture Posted by DrGlass on Sun Jan 9th 2005 at 4:12pm
DrGlass
1825 posts
Posted 2005-01-09 4:12pm
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
In CS and hl2:dm your player model IS drawn.

HL2 there is no player model.

in CS:S try and type "thirdperson" in console.
Re: mirror texture Posted by Jesta on Sun Jan 9th 2005 at 6:59pm
Jesta
7 posts
Posted 2005-01-09 6:59pm
Jesta
member
7 posts 1 snarkmarks Registered: Jan 9th 2005
<DIV class=quote>
<DIV class=quotetitle>? quoting DrGlass</DIV>
<DIV class=quotetext>In CS and hl2:dm your player model IS drawn.

HL2 there is no player model.

in CS:S try and type "thirdperson" in console.
</DIV></DIV>

If a mirror texture were made (should theoretically be possible) it will only work in multiplayer and only for users that have thirdperson enabled.

Generally, if you're playing in first-person mode, your player model is not drawn. other people see you cos it's drawn on their machine but not on yours. only the viewmodel (hands n weapon) is drawn.

So if you made a mirror in multiplayer, if you were playing first-person (as 99.9% of the world does), it would reflect the world & other players, but not you :smile:

Camera idea is defunct for the same reason - no player model for the camera to see. It'll work in multiplayer but the camera would have to dynamically more around for you to see the right thing in the mirror at different angles - this won't work in multiplayer cos the camera would have to be in 2 places at once if 2 players were in sight of the mirror. Impossible!
Also, any camera system wouldn't flip the image left to right like a real mirror appears to.

Basically the reflective part of the mirror is possible, it's just getting to actually reflect what you think it should reflect that is impossible. Some of the stuff just isnt there to be reflected.
Re: mirror texture Posted by Akuma-sama on Mon Jan 10th 2005 at 4:06am
Akuma-sama
1 post
Posted 2005-01-10 4:06am
1 post 0 snarkmarks Registered: Jan 7th 2005
mazemaster said:
HL2's DX9 shaders support it, but I'm not sure
if Valve actually made a specific "mirror" material or if you would
have to write one yourself. In any case, it will only work on high end systems.
sad when you think about that. duke had them on my 486, and unreal 1 had it on my 400 mhz :/

wonder why HL2 can't do it well?
Duke had fake mirrors, if I remember correctly. It was a blank area
behind the mirror wall; as soon as you walked in front of it, another
duke would be made in the area behind, simulating a mirror.

...this led to all kinds of bugs, of course.

As for unreal, well, it had portals, which is pretty much what Orpheus
said. And THAT, even my pathetic little low-end PC can render.

...'course, I'm not sure if I'm right. /me shoots UnrealED, the worst editor he's ever used

HL2 can do UT's version. But reflective surfaces, now that's another problem.

...hm, 9 hours ago, last post... not thread necromancy as far as I can tell...

(first post here, btw)
Re: mirror texture Posted by SaintGreg on Mon Jan 10th 2005 at 5:03am
SaintGreg
212 posts
Posted 2005-01-10 5:03am
212 posts 51 snarkmarks Registered: Dec 3rd 2004
I dont think the world is reflected in specular surfaces, only
light. Though I could be wrong about this. You could also
possibly write your own shader, if this was for your own mod.
Re: mirror texture Posted by Yak_Fighter on Mon Jan 10th 2005 at 5:22am
Yak_Fighter
1832 posts
Posted 2005-01-10 5:22am
1832 posts 742 snarkmarks Registered: Dec 30th 2001 Occupation: College Student/Slacker Location: Indianapolis, IN
The world is reflected in specular surfaces if you have your settings high enough.

Mirrors are not implimented because they cause too many visual errors and will almost never actually reflect what the player is doing. There's no better way of destroying the immersion than a mirror that shows your gun pointing straight ahead while the gun in your hand is being moved about in an idle animation. It's not because they are impossible.
Re: mirror texture Posted by Orpheus on Mon Jan 10th 2005 at 11:14am
Orpheus
13860 posts
Posted 2005-01-10 11:14am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
<DIV class=quote>
<DIV class=quotetitle>? quoting Yak_Fighter</DIV>
<DIV class=quotetext>

Mirrors are not implimented because they cause too many visual errors and will almost never actually reflect what the player is doing. There's no better way of destroying the immersion than a mirror that shows your gun pointing straight ahead while the gun in your hand is being moved about in an idle animation. It's not because they are impossible.

</DIV></DIV>
you know, upon reflection, this makes the most sense of any i have heard yet. (forgive the pun)
Re: mirror texture Posted by Bobv on Mon Jan 10th 2005 at 10:35pm
Bobv
198 posts
Posted 2005-01-10 10:35pm
Bobv
member
198 posts 40 snarkmarks Registered: Jan 9th 2005 Occupation: n/a Location: USA
what if you just make a camera that is right on the screen.... and itll be kinda like a mirror...

or 2 screens and 2 cameras for video conference :biggrin:
Re: mirror texture Posted by Leperous on Mon Jan 10th 2005 at 10:59pm
Leperous
3382 posts
Posted 2005-01-10 10:59pm
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
Even Doom 3's mirrors weren't that great- close, but even on my system there was a noticeable 'lag' with what was happening and what was being shown reflected :/
Re: mirror texture Posted by Bobv on Mon Jan 10th 2005 at 11:01pm
Bobv
198 posts
Posted 2005-01-10 11:01pm
Bobv
member
198 posts 40 snarkmarks Registered: Jan 9th 2005 Occupation: n/a Location: USA
Even Doom 3's mirrors weren't that great- close, but even on my
system there was a noticeable 'lag' with what was happening and what
was being shown reflected :/
yes but DOOM 3 covered it up with cool scary flashbacks so you were too freaked out to notice the lag
Re: mirror texture Posted by brett5010 on Tue Jan 11th 2005 at 6:24pm
brett5010
80 posts
Posted 2005-01-11 6:24pm
80 posts 18 snarkmarks Registered: Jan 6th 2005 Occupation: Student Location: Australia
If they could do it in HL2 they wouldnt have because if they did there would have to be a model of Freeman...
Re: mirror texture Posted by Bobv on Tue Jan 11th 2005 at 8:13pm
Bobv
198 posts
Posted 2005-01-11 8:13pm
Bobv
member
198 posts 40 snarkmarks Registered: Jan 9th 2005 Occupation: n/a Location: USA
If they could do it in HL2 they wouldnt have because if they did there would have to be a model of Freeman...
i think they have a model of freeman, they just didnt put it ingame -
some pictures have freeman, what is obviously a model........... but
what's the point of drawing the model if you dont get to see it?

unless... to see it in a mirror
Re: mirror texture Posted by brett5010 on Tue Jan 11th 2005 at 10:45pm
brett5010
80 posts
Posted 2005-01-11 10:45pm
80 posts 18 snarkmarks Registered: Jan 6th 2005 Occupation: Student Location: Australia
indeed.^
Re: mirror texture Posted by Jesta on Tue Jan 11th 2005 at 10:58pm
Jesta
7 posts
Posted 2005-01-11 10:58pm
Jesta
member
7 posts 1 snarkmarks Registered: Jan 9th 2005
Hmm yeah thinking about it, the protal idea might work....there are portal systems in HL2, just not entirely sure how they work....will try it and see....

but i think the lack of player model (at least, one that is drawn in-game) will still b the big problem.
Re: mirror texture Posted by Leperous on Fri Jan 28th 2005 at 12:30am
Leperous
3382 posts
Posted 2005-01-28 12:30am
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
I think the answer here is, Yes it's probably possible if you made a mod but there are many reasons why you wouldn't want to.
Re: mirror texture Posted by Nickelplate on Fri Jan 28th 2005 at 2:00am
Nickelplate
2770 posts
Posted 2005-01-28 2:00am
2770 posts 346 snarkmarks Registered: Nov 23rd 2004 Occupation: Prince of Pleasure Location: US
You make a camera/TV setup and then point a camera facing directly out of the middle of the screen. that way the screen (mirror) displays exactly what's in front of it. Anyway that's how i did it.... :biggrin:
Re: mirror texture Posted by Sp3ctre on Fri Jan 28th 2005 at 1:23pm
Sp3ctre
27 posts
Posted 2005-01-28 1:23pm
Sp3ctre
member
27 posts 23 snarkmarks Registered: Dec 11th 2004 Occupation: Student Location: Italy
Never looked at the prop called Envballs in the shadertest folder? two
of the balls has effectively mirroring materials on them (with proper
cubemaps applied) but that will not surely reflect props and others
Re: mirror texture Posted by G4MER on Wed Jun 1st 2005 at 12:40am
G4MER
2460 posts
Posted 2005-06-01 12:40am
G4MER
floaty snark rage
member
2460 posts 360 snarkmarks Registered: Sep 6th 2003 Location: USA
Nickelplate said:
You make a camera/TV setup and then point a camera facing directly out of the middle of the screen. that way the screen (mirror) displays exactly what's in front of it. Anyway that's how i did it.... :biggrin:
Is there a Tutorial on here for that? Id like to use that in my Haunted Church.
Re: mirror texture Posted by fishy on Wed Jun 1st 2005 at 1:20am
fishy
2623 posts
Posted 2005-06-01 1:20am
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
a whitish texture with a white specular mask will do a fair job of reflecting the world around it, but only the world as it was during the buildcubemaps proccess, when the reflections get created. you could probably have huge glass buildings that reflected the surrounding buildings, but nothing you could shave in front of.
i eat paint
Re: mirror texture Posted by Gwil on Wed Jun 1st 2005 at 3:02am
Gwil
2864 posts
Posted 2005-06-01 3:02am
Gwil
super admin
2864 posts 315 snarkmarks Registered: Oct 13th 2001 Occupation: Student Location: Derbyshire, UK
MoneyShot said:
<DIV class=quote>
<DIV class=quotetitle>・quoting Nickelplate</DIV>
<DIV class=quotetext>You make a camera/TV setup and then point a camera facing directly out of the middle of the screen. that way the screen (mirror) displays exactly what's in front of it. Anyway that's how i did it.... :biggrin:
Is there a Tutorial on here for that? Id like to use that in my Haunted Church.</div></div>

http://www.snarkpit.net/editing.php?page=tutorials&game=HL2&id=127
Is a good introduction to cameras..
Re: mirror texture Posted by G4MER on Wed Jun 1st 2005 at 7:32pm
G4MER
2460 posts
Posted 2005-06-01 7:32pm
G4MER
floaty snark rage
member
2460 posts 360 snarkmarks Registered: Sep 6th 2003 Location: USA
Ok the problem with that is, you can only have one camera on at a time.. so I have been told. And if you had a full length mirror the image would end up being stretched.

So How else could someone make a mirror? It has been suggested to me to try and do something with a water surface since they are reflective.
Re: mirror texture Posted by MeanDroneFrog on Wed Jun 1st 2005 at 8:59pm
MeanDroneFrog
18 posts
Posted 2005-06-01 8:59pm
18 posts 2 snarkmarks Registered: Jan 12th 2005 Location: UK
Re: mirror texture Posted by G4MER on Thu Jun 2nd 2005 at 12:48am
G4MER
2460 posts
Posted 2005-06-02 12:48am
G4MER
floaty snark rage
member
2460 posts 360 snarkmarks Registered: Sep 6th 2003 Location: USA
Thats perfect.. thanks. I had never seen that page before. Thank U!

EDIT:AHH BUMMER It wont reflect players.. darn.. thats not what I need then.
Re: mirror texture Posted by fishy on Thu Jun 2nd 2005 at 1:21am
fishy
2623 posts
Posted 2005-06-02 1:21am
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
ever tried fixing your hair while watching yourself on a webcam? i don't think the camera idea would work very well as a mirror.
i eat paint
Re: mirror texture Posted by DrGlass on Thu Jun 2nd 2005 at 5:46am
DrGlass
1825 posts
Posted 2005-06-02 5:46am
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
it wont, you cant have diffrent sized mirrors and also you can only have one.

you would also have to make a custom texture that didn't have scan lines, so you might as well make a reflective texture.