Browse Search Popular Register Upload Rules User list Login:
Search:
Mirror Reflection

Image:
screenshot of the scene

Author: Xray

Group: Default

Filesize: 2.03 MB

Date added: 2016-03-20

Rating: 6.1

Downloads: 2440

Views: 542

Comments: 20

Ratings: 3

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Put a large mirror in a fancy hotel lobby, and it won't be long before a woman will stand in front of it! :lol:

This scene simulates a mirror reflection. I tried to make the reflected image behave as it would in a real mirror. It's not perfect, but it's close enough.

Move the girl closer to and farther away from the mirror with the Up and Down arrow keys.
Move the girl left and right with the left and right arrow keys.
Rotate the girl with the R key.

UPDATE: Swapped the girl images so that she is looking at the mirror (makes more sense!).
Last edited at 2016/03/20 05:47:27 by Xray
Please log in to rate this scene
edit
Similar scenes
Title: reflection
Rating: 5
Filesize: 55.49 kB
Downloads: 429
Comments: 0
Ratings: 1
Date added: 2017/01/25 14:48:17
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Rear View Mirror
Rating: 5
Filesize: 0.59 MB
Downloads: 345
Comments: 1
Ratings: 2
Date added: 2012/11/27 00:43:47
Made with: Algodoo v2.0.2 Edu
Rating: rated 5
download
Title: Laser Reflection Tracker
Rating: 5
Filesize: 56.79 kB
Downloads: 888
Comments: 0
Ratings: 1
Date added: 2013/03/25 12:05:55
Made with: Algodoo v2.0.2
Rating: rated 5
download
Title: Reflection Barrier
Rating: 6.5
Filesize: 27.32 kB
Downloads: 251
Comments: 2
Ratings: 2
Date added: 2009/02/08 00:05:26
Made with: Phun
Rating: rated 6.5
download
Title: Reflection Of Light Expirements
Rating: 5
Filesize: 261.69 kB
Downloads: 293
Comments: 0
Ratings: 1
Date added: 2021/08/08 19:00:01
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: mirror car
Rating: 5
Filesize: 30.3 kB
Downloads: 158
Comments: 1
Ratings: 1
Date added: 2015/04/15 13:52:41
Made with: Algodoo v2.1.0
Rating: rated 5
download
a little bit fake but still cool
@faytree - Yes, anything can happen in the world of Algodoo! :lol:

@danielreynard - I did say that it's not perfect. Thanks for the compliment!
Nice work coding. I assume you made or used a png with transparent background. I'm not sure how to make a transparent background yet. Good presentation of mirror reflection.:tup: :tup:
Last edited at 2016/03/25 00:36:13 by s_noonan
cool!
I like it!

Finally i can see some good usage of boolean operators, here:
&& ! scene.my.leftMin
which means "and NOT boolvariablename" which results into a bool.


for s_noonan: i just tested to draw something in mspaint.exe
e.g. a "D" and saved it as png. Then, if you drag it into algodoo,
the outside of this letter will be translucent automatically,
and the inside of the "D" remains white.

thanks Xray for the nice work :tup:
Thank you drBalk!

@s_noonan - I assume that you are referring to the transparent background (not translucent). Algodoo does it automatically, and so it's very easy to do! You just need to have a png or gif image with a solid background color that you (the user) defines as transparent.

For anyone not knowing the difference, "transparent" means that it passes light in varying intensity, and it passes clearly defined images. "translucent" means that it passes light in varying intensity, but it does not pass clearly defined images. Translucent material typically has a "milky" appearance (clouds are translucent), while transparent material is clear glass or plastic that you can see through and make out images.
Xray,

Thanks for the correction. Regarding "Algodoo does it automatically", Algodoo does what automatically? Does it make a transparent background? Regarding "You just need to have a png... that you (the user) defines as transparent.", can I do this in Algodoo or do I need another application. I mentioned that "I'm not sure how to make a transparent background yet." Well, I tried Algodoo, MS Paint, and Photoscape, and I still don't know how to make a png with a transparent background. Am I missing something obvious?

P.S. I just made a transparent background png using lunapic and it was quick and easy.
Last edited at 2016/03/25 00:57:36 by s_noonan
Oh, sorry. I shouldn't presume that everyone knows what I'm talking about when I convey a fact. I use Google Images for nearly all of my textures in my Algodoo scenes. Some of the images can be directly copied and pasted directly in the scene, and others need some pre-processing from my image editing program, PaintShop Pro. It is probably similar to Lunapic, but not sure. For Google Images that have solid white backgrounds (must be png or gif (not jpg)) I can click on the image to select it, and then press Ctl-C (copy). I then open Algodoo, and place the cursor where I want the image to be pasted, and then I press Ctl-V (paste). If the image has the correct solid color background, then Algodoo automatically tries to create a polygon of the image with the background removed. That's the part that I stated was automatic. If the polygon looks too ragged or chopped up, you can select it and press Ctl-Z, and Algodoo will undo the polygon that it made and the image will become a box with a texture, including the unmodified background.

If all this still doesn't make sense, maybe it would help if I posted a scene that actually shows the various steps of the process. Let me know....
Last edited at 2016/03/25 02:35:03 by Xray
How to make an image with transparent background and inset it into Algodoo:

1. Go to LunaPic, a free online photo editor.
2. Use LunaPic "Browse" to load a local file or "Open from URL" to load an internet image.
3. Go to LunaPic>Edit>Transparent and then click on the background to make the background transparent.
4. Go to LunaPic>File>Save Image and save the image to your local drive as a GIF or PNG.
5. Open Algodoo.
6. Open File Explorer and navigate to the file saved in step 4.
7. Drag the image file into Algodoo. The image is automatically trimmed and displays on a polygon.
8. Click Algodoo>Undo. The image is now displayed with transparent background on a box.
Last edited at 2016/03/25 12:07:50 by s_noonan
you deleted one of my scenes
what do you mean @josebosch
@s_noonan - Yes, that will work too. :tup:
That hotel has a LOT of Identical rooms
i got a messege saying that i was running out of boxes and i need to buy more
????
oh haha Aprils fools
Is the Buy Boxes thing a april 1st joke?
:s
No, it's real. You can purchase more boxes by sending money to me. You can use PayPal.
haha good one
no object limit so no running out of boxes