Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Mirror, mirror...

Zena Juran
Registered User
Join date: 21 Jul 2007
Posts: 473
06-28-2009 08:22
HIyas Everyone,

I built a nice little bedroom vanity set that has mirrors (of course!). I took a snapshot of the area facing opposite of the vanity and applied that texture to the mirrors (with some FX).

Is it possible to script this process so that when the vanity is rezzed, the script will automatically position itself, take the appropriate pic, and apply it to the mirrors?

I can script most of the process but the "grabbing" of the texture has me a little out of my area. Any comments or help will be greatly appreciated. Thanx! :-)
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
06-28-2009 08:49
At the moment, you'd need a bot to upload the texture for you (for some value of "bot";). But come Snowglobe's full-fledged http-textures... :o uh, nevermind: you'd still need a bot to create the image.

We'll probably get real dynamic reflections again before there's a way to grab the image by script--especially since that image is never rendered on the server.

You could, however, give detailed instructions to a user of the mirror for how to do it themselves. (They could change the room around and need to do it again anyway, however it's done.) Might help to have the thing temporarily set llSitTarget(), llSetCameraAtOffset(), and llSetCameraEyeOffset() so they're looking in the direction you think the reflection should look best.

(Although I have to say, I've never seen this pasted-in mirror image look all that compelling, IMHO. I mean, there's at most one halfline of space for which the "reflection" is actually correct, right?)
Zena Juran
Registered User
Join date: 21 Jul 2007
Posts: 473
06-28-2009 09:16
From: Qie Niangao
At the moment, you'd need a bot to upload the texture for you (for some value of "bot";). But come Snowglobe's full-fledged http-textures... :o uh, nevermind: you'd still need a bot to create the image.

We'll probably get real dynamic reflections again before there's a way to grab the image by script--especially since that image is never rendered on the server.

You could, however, give detailed instructions to a user of the mirror for how to do it themselves. (They could change the room around and need to do it again anyway, however it's done.) Might help to have the thing temporarily set llSitTarget(), llSetCameraAtOffset(), and llSetCameraEyeOffset() so they're looking in the direction you think the reflection should look best.

(Although I have to say, I've never seen this pasted-in mirror image look all that compelling, IMHO. I mean, there's at most one halfline of space for which the "reflection" is actually correct, right?)



I kinda figured as much... twas a thought!

The pasted in image looks rather nice. Got to have it angled down a bit when taking the pic to include some of the vanity top itself. The only thing is that when you actually step in front of the mirror the illusion goes away... lol.

Hmmm.. I could do a touch "click to take a pic" and arrange it so that when the texture is dropped into the vanity it is appropriately applied. Naaa... to much work!

Thanx Qie! :-)
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
06-28-2009 10:30
you can increase the effective viewing angle of the mirror by using a concave face with this method, and you can get one mirror in SL if the edit the water to smooth glasslike and fully reflective but then it requires you to build sideways to use it =X (and even then you'll need to use the flycam to make it look believable.. but it's a fun effect for short videos)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Celty Westwick
Registered User
Join date: 24 Jun 2006
Posts: 145
06-30-2009 10:44
Or you can use the mirror effect trick of using an animation to put yourself in front of the mirror facing outwards, then using llSitTarget(), llSetCameraEyeOffset(), and llSetCameraAtOffset() to get your "view" looking at yourself.