I was endlessly surprised at the messages i received about the Bazaar Dungeon but one of the most asked questions was ‘how did you make that mirror?”

The mirror was in the Spring of Souls, a chamber with a big tree in it, the roots of which reached out across the floor between puddles of water. Against the tree was a big mirror which when you looked in saw a reflection of the room but filled with ghosts.

A month or so before fantasy faire 2018 i saw a post on a Second Life Jira request for real time mirrors to be added to SL, which isn’t going to happen. At the bottom of comments was a post by Beev Fallen that took me to a video on Flikr showing a rather impressive cracked mirror effect, but not only was the room reflected in the mirror,  the walls around the mirror showed slight mirrored effect also. I contacted my friend Silas who has been working on Mirrors for a while and he too was very impressed. We both visited Beev’s amazing demo room and spent a while trying to figure out how the effect was done. This wasn’t a simple projected single image, the whole room was being mirrored 360.

I was later contacted by Silas with a workflow on how to create the illusion of 360 Mirroring in Second Life and it’s this i used to create the mirror in the Spring of Souls. 

There has recently been a few articles pop up about mirror illusions in Second Life but none has yet explained how to do 360 mirrors. Silas has given me permission to share the trick but before i do i should probably explain a few things. 

 

Environment Map

In second life every object can be set to be shiny using the objects material ‘Shininess’ settings. You have glossiness which if you have played with before know that it makes object look kinda shiny plastic. For mirrors this needs to be set to 255. Underneath that is ‘Environment’. Raising this setting determines how much of Second Life’s ‘environment map’ is reflected. 

 

The environment map is a giant spherical 360 image that is reflected in anything shiny. It’s quite boring, a simple line that is a bit like the SL horizon. The higher you raise the ‘environment’ setting the more visible this horizon image becomes on your shiny objects surface. Now the trick is to override this default Environment map with our own mini localised environment maps using the projector features.

You can grab this ready made Projector Cubemap from the Castle ruins on Escapades thanks to Silas Merlin.

 

We basically create a six sided inverted cube that projects it’s sides in on it’s self. Anything shiny inside the cube reflects what is is projected onto it. People already know this part, but what i was asked alot was how did i manage to 360 mirror the environment?

The answer is it’s now possible to take 360 snapshots in Second Life using a project viewer and convert them into what is known as 360 Cube Maps. Cube maps are 360 spherical images cut up into 6 textures. 

Once you have vertically flipped the Cube Map textures (in order to mirror the environment) you just upload and apply these textures to become projectors in the inverted cube.

Once all the projectors are set on the cube map simply position the phantom cube over the area to be mirrored. The resulting effect is a complete 360 mirroring of that environment. 

 

 

To see the effect for yourself and to grab a simple list of instructions visit the Castle Ruins on Escapades. 

 

Notes: 

There are some drawbacks to this illusion.

1. The obvious note is that you have to have advanced lighting enabled to see the effects.

2. Consider where you are going to place the Projector Cubemaps. They work best in small rooms as projectors only project up t0 20 metres. 

4. Any moving objects obviously wont appear moving.

5. Projectors will not project onto anything set to transparent.

6. Skies do not change so if you create a cube map out in the open during the day, by nighttime the reflection will still be showing daytime.

 

The benefits

In the right place this mini environment projected Cube Map trick can really add an effect of detailed realism. At the Bazaar Dungeon it was used to tell part of the legend about a Knight who had killed many traders, their souls appearing in the rooms reflection, not just in the mirror but the floor puddles too. At the Vortex Club there is a Projector Cubemap that ads an extra layer of sparkling cyberpunk colour to anyone wearing shiny attachments. 

It’s another example of how some features added to Second Life (360 Snapshots) end up being used in unexpected ways in the hands of the users.

2 thoughts on “How i made that Mirror at the Bazaar Dungeon.

Leave a Reply