Browse Search Popular Register Upload Rules User list Login:
zDepth Change Demo

screenshot of the scene

Author: Xray

Group: Default

Filesize: 438.74 kB

Date added: 2017-01-01

Rating: 5

Downloads: 474

Views: 239

Comments: 5

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0


Scene tag

No tricks.... No gimmicks.... This is just a way to truly change the zDepth of an object.

For those not familiar with zDepth, it's a value in the script menus of all geometries that causes the relative placement of the objects to be in front of or behind other objects in the scene.

Comments? Suggestions? Kudos? :)
Please log in to rate this scene
Similar scenes
Title: ZDepth Change 2.5
Rating: 5
Filesize: 7.32 kB
Downloads: 236
Comments: 7
Ratings: 1
Date added: 2014/04/13 12:20:12
Made with: Algodoo v2.1.0
Rating: rated 5
Title: MapGenerator*DEMO
Rating: 6.8182
Filesize: 65.68 kB
Downloads: 632
Comments: 2
Ratings: 5
Date added: 2015/10/16 23:00:08
Made with: Algodoo v2.1.0
Rating: rated 6.8
Title: Turret V2
Rating: 5
Filesize: 60.15 kB
Downloads: 287
Comments: 1
Ratings: 1
Date added: 2010/05/05 21:39:06
Made with: Phun
Rating: rated 5
Title: John Deere 5420 tractor with loader and backhoe
Rating: 7.0834
Filesize: 218.68 kB
Downloads: 3033
Comments: 10
Ratings: 6
Date added: 2010/06/04 03:15:26
Made with: Phun
Rating: rated 7.1
Title: Compact 5-gear+R Gearbox
Rating: 5.625
Filesize: 34.09 kB
Downloads: 662
Comments: 6
Ratings: 2
Date added: 2017/06/28 02:54:24
Made with: Algodoo v2.1.0
Rating: rated 5.6
Title: Demo... Rally track ... para o torneio.. Beta v1
Rating: 5
Filesize: 0.53 MB
Downloads: 462
Comments: 0
Ratings: 1
Date added: 2009/09/11 01:46:47
Made with: Phun
Rating: rated 5
This scene is a response to:
Title Author Rating Downloads Comments Date added
ZDepth Change 2.5 s_noonan 5 (1 vote) 236 7 2014/04/13 12:20:12
show grid
Yeah we've talked about that with Gent some time ago. I also noticed that if you changed the zDepth of an object and then deleted another object (or spawned and deleted, doesn't matter) the same effect was achieved. I never tried killing an object in any way for this. Can you give it a try? I think this could be pretty useful in the future
True, we did discuss this issue a lot some time ago, and as you can see from observing other scenes by me, s_noonan, and I think maybe kilinich, there were many different ideas for doing it. The way that I did it in this scene (using undo and redo) seems to work, but it has not been thoroughly tested under various conditions to see if there are undesirable side-effects. I plan on testing it some more, and also trying the ideas that you mentioned.

My idea does have one noticable side effect, and that is, the scene sort of "hiccups" for a split second when either laser gets hit. I don't know yet if that hiccup will cause other undesirable effects, but that's where extensive testing would wring those things out.
That's the point. I don't remember why I needed to change zDepth but I guess it was for a firearm, and the time that the scene freezes when undoing-redoing is too noticeable
The Linkage,

I tried changing the zdepth and then creating and deleting another object and it didn't work. Maybe you should have tried it yourself before suggesting somebody else try it. If I'm wrong, and it does work, then please make a response scene to this one that demonstrates the effect.
You have to delete the object yourself, with the Delete key or the backspace. It does work, but it isn't very practical since you can't trigger that without the user deleting something

Yesterday I tried killing an object with density = 0, a killer, and removeEntity, but none worked, the only way to get the object with the changed zDepth to update its position was to delete another object or undo. Also changing an object's zDepth and then using shift+mousewheel on another object resets the zDepth of the first, as if it wasn't changed in the first place.