Browse Search Popular Register Upload Rules User list Login:

screenshot of the scene

Author: Xray

Group: Default

Filesize: 397.38 kB

Date added: 2013-05-26

Rating: 5.6

Downloads: 410

Views: 186

Comments: 4

Ratings: 2

Times favored: 0

Made with: Algodoo v2.1.0


Scene tag

This scene is considered a tutorial. Under normal conditions, when you move or relocate a box or circle that has a texture (i.e., Texture = " .jpg, .png, .gif, or .bmp" file), the texture moves in a fixed position relative to the geometry along with the geometry. But there may be a situation where you do not want the texture to move with the geometry, but rather have it stay put relative to the background, and as you move or relocate the circle or box, you will see a different view of the texture because the geometry is now "looking" at a different location on the texture. The result is like moving a glass window to a new location on the wall of your house. You will see a different view of the same scenery outside the house. If this doesn't make sense, run the scene and then I think you will understand what I'm saying. :)

EDIT - Corrected slight texture movement in the circle that moves across the scene from left to right. Now the texture and the circle move EXACTLY in synch. My thanks to s_noonan for catching this little bug.
Last edited at 2013/11/15 20:08:31 by Xray
Please log in to rate this scene
Similar scenes
Title: magnet motor(4 cyl) synchronized
Rating: 5
Filesize: 65.43 kB
Downloads: 734
Comments: 3
Ratings: 1
Date added: 2010/02/21 20:12:21
Made with: Phun
Rating: rated 5
Rating: 5.625
Filesize: 0.89 MB
Downloads: 461
Comments: 4
Ratings: 2
Date added: 2013/11/13 05:15:07
Made with: Algodoo v2.1.0
Rating: rated 5.6
Title: How texture matrix, clamping works
Rating: 5.25
Filesize: 283 kB
Downloads: 176
Comments: 1
Ratings: 2
Date added: 2016/05/29 12:25:46
Made with: Algodoo v2.1.0
Rating: rated 5.3
Title: 3D Ball With Texture
Rating: 6.6364
Filesize: 120.77 kB
Downloads: 1015
Comments: 9
Ratings: 5
Date added: 2015/07/20 06:42:12
Made with: Algodoo v2.1.0
Rating: rated 6.6
Title: Attak IN
Rating: 5.4
Filesize: 3.69 MB
Downloads: 1266
Comments: 1
Ratings: 4
Date added: 2010/02/09 15:40:29
Made with: Phun
Rating: rated 5.4
Title: Mustang texture car with bug
Rating: 5
Filesize: 92.33 kB
Downloads: 1313
Comments: 10
Ratings: 1
Date added: 2009/03/21 19:33:22
Made with: Phun
Rating: rated 5
Nice Demo.

"One script makes a circle slowly move to the right at exactly the same rate as the texture, so that it appears like the texture is not moving in that circle."

On my PC it is close to the same rate, but not exact. Also it only works for simulation frequency value = 60.

This is what I did to make it exact and frequency independent:

1. Set all _counts = 0.0
2. Replace pos = {[1.8 + (sim.time / 20) % 3, 4.2]}
with pos = {[1.8 - _count, 4.2]}
3. (Optional) Replace textureMatrix = {[1.0, 0.0, _count + pos(0), 0.0, 1.0, pos(1), 0.0, 0.0, 1.0]}
with textureMatrix = {[1.0, 0.0, 1.8, 0.0, 1.0, 4.2, 0.0, 0.0, 1.0]}
Thanks for the comments and the suggested mods, but I wasn't going for accuracy or precision. I just wanted to show a different method of displaying a texture than the usual method. The user can tweak his/her scene any way they want to for various visual effects.
I agree. A simpler fix would be to replace the word "exactly" with "almost". ;)
FIXED! I can now correctly use the word "exactly"! :lol: