Mirror texture?

Questions and answers about the how and why of making maps.
Post Reply
User avatar
clarahobbs
Private First Class
Private First Class
Posts: 272
Joined: Thu Jan 10, 2008 1:45 am
Location: The Fourth Dimension

Mirror texture?

Post by clarahobbs »

Is it possible to make a texture that reflects everything like a mirror? If so, how is it done? Just curious.
FKA Ratfink
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

the only mirror bzflag supports is the ground.
ImageJeffM
z[h]ero
Private First Class
Private First Class
Posts: 204
Joined: Mon Jan 31, 2005 12:00 am
Location: hiding behind box...a real Bz coward :/

Post by z[h]ero »

Code: Select all

set _mirror
Wirth's law: "Software is getting slower more rapidly than hardware becomes faster."
lol_u died

Post by lol_u died »

z[h]ero wrote:

Code: Select all

set _mirror
To be more specific, in the game you will need to type in the following.

/set _mirror

Now there are lots of colors to choose such as black, blue, green, pink, red, etc. so let's say you want the ground to be green simply,

/set _mirror green


Now if you are making the /set from the config file, then you need to do
set _mirror <color>

I believe. Correct me if I'm wrong since I don't think I remember the config file part.
User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 809
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Post by allejo »

lol_u died wrote: Now if you are making the /set from the config file, then you need to do
set _mirror <color>

I believe. Correct me if I'm wrong since I don't think I remember the config file part.
actually i think in the config is should be

Code: Select all

-set _mirror <color>
User avatar
flying_popcorn
Private First Class
Private First Class
Posts: 88
Joined: Wed Dec 14, 2005 2:40 am
Contact:

Post by flying_popcorn »

If you want a mirror as a wall, you could make the wall semi-transparent, and then put duplicates of all the objects inside the transparent wall. (I think that should work, but I haven't tested it)
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Post by blast »

flying_popcorn wrote:If you want a mirror as a wall, you could make the wall semi-transparent, and then put duplicates of all the objects inside the transparent wall. (I think that should work, but I haven't tested it)
Nope, that wouldn't work. It would act like a window on a building instead of a reflection.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
Abominable
Private First Class
Private First Class
Posts: 141
Joined: Mon Oct 22, 2007 12:31 am

Post by Abominable »

Code: Select all

-set _mirror <color>
This is for changing variables in the config file.

Code: Select all

/set _mirror <color>
This is for setting variables in game.

Just so you know the difference.
Image
Image
User avatar
Crallion
Private First Class
Private First Class
Posts: 201
Joined: Mon Mar 09, 2009 6:26 am
Location: The USA
Contact:

Re: Mirror texture?

Post by Crallion »

I understand this is an old strand, but will there be the ability to make other things mirror in 3.0?
Time is a great teacher, but unfortunately, it kills all its pupils ... - Louis Hector Berlioz

To err is human. To really foul up requires the root password.
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Re: Mirror texture?

Post by trepan »

no.
User avatar
Crallion
Private First Class
Private First Class
Posts: 201
Joined: Mon Mar 09, 2009 6:26 am
Location: The USA
Contact:

Re: Mirror texture?

Post by Crallion »

Too bad.

P.S. That was the fastest response to a post that I have ever gotten.
Time is a great teacher, but unfortunately, it kills all its pupils ... - Louis Hector Berlioz

To err is human. To really foul up requires the root password.
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1054
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Mirror texture?

Post by optic delusion »

You can sort of simulate a mirror with the spheremap material option. There's no actual mirroring going on, but it can be a very cool effect if used correctly.

Try this old experiment that I was calling "The Hole of Justice"
hole_of_justice95.bzw
share-alike license
(162.09 KiB) Downloaded 126 times
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
User avatar
Dontkillme
Private First Class
Private First Class
Posts: 69
Joined: Thu May 15, 2008 4:42 pm
Location: Germany

Re: Mirror texture?

Post by Dontkillme »

You can make a meshbox with a texture;
If your map size is 400 you need

Code: Select all

meshbox
position 0 0 0
size 400 400 0.5
matref example
end
and the material

Code: Select all

material
name example
addtexture (your texture)
color 1 1 1 0.5 (alpha)
end
then you make a mirror

Code: Select all

/set _mirror white
I tested it:
tests.bzw
Test file
(200 Bytes) Downloaded 120 times
it really works:
Image
(jpg doesn´t support alpha so it doesn´t look very nice on the screenshots...)
User avatar
Dontkillme
Private First Class
Private First Class
Posts: 69
Joined: Thu May 15, 2008 4:42 pm
Location: Germany

Re: Mirror texture?

Post by Dontkillme »

User avatar
Crallion
Private First Class
Private First Class
Posts: 201
Joined: Mon Mar 09, 2009 6:26 am
Location: The USA
Contact:

Re: Mirror texture?

Post by Crallion »

Isn't that just a partially transparent box on top of the normal mirror ground, or is it an actual mirror box?
Time is a great teacher, but unfortunately, it kills all its pupils ... - Louis Hector Berlioz

To err is human. To really foul up requires the root password.
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1405
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom

Re: Mirror texture?

Post by Spazzy McGee »

Crallion wrote:Isn't that just a partially transparent box on top of the normal mirror ground, or is it an actual mirror box?
It is a partially transparent box on top of the normal mirror ground... and fairly useless, to be honest.
"Life is what happens to you while you're busy making other plans." - John Lennon
User avatar
Dontkillme
Private First Class
Private First Class
Posts: 69
Joined: Thu May 15, 2008 4:42 pm
Location: Germany

Re: Mirror texture?

Post by Dontkillme »

But it looks like a mirror :)
User avatar
joevano
General
General
Posts: 1863
Joined: Sat Jun 18, 2005 1:08 pm
Location: South Bend, Indiana, USA

Re: Mirror texture?

Post by joevano »

No the ground looks like a mirror, which we already knew could happen. Putting a see through box on top of it really isn't doing anything to advance this topic.
There is nothing worse than aggressive stupidity. -- Johann Wolfgang von Goethe
"How many legs does a dog have if you call his tail a leg? Four. Calling a tail a leg doesn't make it a leg." -- Abraham Lincoln
Post Reply