SA-MP Forums Archive
How to make a mirror? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to make a mirror? (/showthread.php?tid=655919)



How to make a mirror? - JR_Junior - 02.07.2018

Hello.
I would like to know how to create an object with reflective texture, looking like a mirror with SetObjectMaterial.

Example:


Is the effect on texture or color used?
Thank you!


Re: How to make a mirror? - JR_Junior - 03.07.2018

Bump...


Re: How to make a mirror? - Dignity - 03.07.2018

Big warehouse interior. Remove the floor using SAMP Construction or texturestudio and place down a wall object with opacity at .5 and you'll have the same effect.


Re: How to make a mirror? - NaS - 03.07.2018

There are several mirrors/mirroring floors in the game (in interiors, eg. Cluckin' Bell IIRC).

If you find one, you can just change the interior ID which will make the actual interior invisible, but the mirror effects stay. Then you can put your map there.


Re: How to make a mirror? - JR_Junior - 03.07.2018

Quote:
Originally Posted by Dignity
Посмотреть сообщение
Big warehouse interior. Remove the floor using SAMP Construction or texturestudio and place down a wall object with opacity at .5 and you'll have the same effect.
Quote:
Originally Posted by NaS
Посмотреть сообщение
There are several mirrors/mirroring floors in the game (in interiors, eg. Cluckin' Bell IIRC).

If you find one, you can just change the interior ID which will make the actual interior invisible, but the mirror effects stay. Then you can put your map there.
Thank you.
I found a tutorial on this: https://sampforum.blast.hk/showthread.php?pid=4002081#pid4002081

But in reality I do not want to make a reflective floor, but a mirror on the wall.


Re: How to make a mirror? - Dignity - 03.07.2018

Try mapping your map UNDER the floor and setting the wall opacities to .5 as well.

Not sure if it works but you can always try it.


Re: How to make a mirror? - JR_Junior - 03.07.2018

Quote:
Originally Posted by Dignity
Посмотреть сообщение
Try mapping your map UNDER the floor and setting the wall opacities to .5 as well.

Not sure if it works but you can always try it.
I understand you, but I do not want to build a map.
I want to get a wall (object), transform into a mirror and place where I want and not on a specific interior or map.


Re: How to make a mirror? - NaS - 03.07.2018

Quote:
Originally Posted by Dignity
Посмотреть сообщение
Try mapping your map UNDER the floor and setting the wall opacities to .5 as well.

Not sure if it works but you can always try it.
There are also wall mirrors (eg. CJ's changing room or one of the broken GF interiors which doesn't have any collision - so you don't "loose" a useful interior).

But you cannot add new mirrors as they are added via CULL zones which SAMP doesn't offer any functions for.

The only way would be creating an inverted version of the map you made, however that is really hard to do and does not show players obviously (it would only be an illusion of a mirrored map).


Re: How to make a mirror? - JR_Junior - 04.07.2018

Quote:
Originally Posted by NaS
Посмотреть сообщение
There are also wall mirrors (eg. CJ's changing room or one of the broken GF interiors which doesn't have any collision - so you don't "loose" a useful interior).

But you cannot add new mirrors as they are added via CULL zones which SAMP doesn't offer any functions for.

The only way would be creating an inverted version of the map you made, however that is really hard to do and does not show players obviously (it would only be an illusion of a mirrored map).
Thank you.
There's definitely no way to do that.


Re: How to make a mirror? - Sasino97 - 04.07.2018

Quote:
Originally Posted by NaS
Посмотреть сообщение
There are also wall mirrors (eg. CJ's changing room or one of the broken GF interiors which doesn't have any collision - so you don't "loose" a useful interior).
Well, the "loosing useful interiors" problem can be solved with Virtual Worlds.