Re: mirror texture
Posted by Sam37 on
Sat Jan 8th 2005 at 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 Paladin on
Sat Jan 8th 2005 at 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
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
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 sXenoG on
Sat Jan 8th 2005 at 9:57pm
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
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
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
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 SirJim on
Sun Jan 9th 2005 at 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
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 SaintGreg on
Mon Jan 10th 2005 at 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
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 Bobv on
Mon Jan 10th 2005 at 10:35pm
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
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 brett5010 on
Tue Jan 11th 2005 at 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 Jesta on
Tue Jan 11th 2005 at 10:58pm
Posted
2005-01-11 10:58pm
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
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
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
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 fishy on
Wed Jun 1st 2005 at 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 G4MER on
Wed Jun 1st 2005 at 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 G4MER on
Thu Jun 2nd 2005 at 12:48am
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
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
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.