This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?showtopic=353&mode=linear as retrieved on 19 Jul 2007 23:12:47 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:fj3XulqdxkQJ:www.flashsandy.org/forum/index.php%3Fshowtopic%3D353%26amp%3Bmode%3Dlinear+site:www.flashsandy.org+showtopic&hl=en&ct=clnk&cd=45


Google is neither affiliated with the authors of this page nor responsible for its content.
These terms only appear in links pointing to this page: showtopic

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> forced depth
3wme
post Mar 2 2007, 08:37 PM
Post #1


Member
**

Group: Members
Posts: 20
Joined: 27-February 07
Member No.: 846



I'm looking into sandy 1.2, partly because the forced depth facility sounds great. I have a plane3D as the floor, which should abvously always be at the lowest depth. I've tried it out but the floor still is sometimes at a higher depth than the other object.

CODE

floor.enableForcedDepth(true)
floor.setForcedDepth(1 )
;
if you leave it at the default depth (0) it is invisible.

I tried adding a check in the render method as another person suggested, forcing the depth of the plane3D to 1. I traced out the depths of the two objects, and the plane3D depth was lower, but it still sat higher than the other object. Has anyone used this property successfully?



Attached File(s)
Attached File  forced_depth.swf ( 223.54k ) Number of downloads: 94
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
kiroukou
post Mar 2 2007, 10:07 PM
Post #2


Administrator
***

Group: Root Admin
Posts: 865
Joined: 12-June 06
Member No.: 1



Hi,
It is possible for some reasons that the depth of an object exceed 1. That's why I recommend you to set a value of 2 to the forced depth to be sure of that!

After that, it is very interessting for non moving camera on the Y axis.
++ (IMG:style_emoticons/default/wink.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
3wme
post Mar 3 2007, 10:12 AM
Post #3


Member
**

Group: Members
Posts: 20
Joined: 27-February 07
Member No.: 846



Maybe I'm not explaining this very clearly. I want to force the floor plane to always be at the lowest depth. Setting the depth to 1 would seem to be the lowest depth possible. But if you look at the swf I attached in the previous post: click the 'in' button. the camera moves on the y axis, and the floor is set to a higher depth than the other object? Perhaps I'm not setting the property properly? Is there any sample that uses the forced depth value?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
3wme
post Mar 3 2007, 10:30 AM
Post #4


Member
**

Group: Members
Posts: 20
Joined: 27-February 07
Member No.: 846



I've attached 2 swfs to demonstrate the problem. If the higher object is translated back on the z axis, the z sorting doesnt seem to work. I thought forced depth would take care of that?


Attached File(s)
Attached File  forced_depth1.swf ( 223.38k ) Number of downloads: 95
Attached File  forced_depth2.swf ( 223.38k ) Number of downloads: 91
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
madchild
post Mar 31 2007, 08:21 PM
Post #5


Newbie
*

Group: Members
Posts: 1
Joined: 9-February 07
Member No.: 783



if you still have the prob try this: change the sortmethod in __render() of World3D.as to aF.sortOn( ["_forcedDepth", "depth"], Array.NUMERIC | Array.DESCENDING ); that helped me out
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
kiroukou
post Apr 2 2007, 09:27 AM
Post #6


Administrator
***

Group: Root Admin
Posts: 865
Joined: 12-June 06
Member No.: 1



thanks madchild for the trick.

I must say that I don't know why this can happen since the depth value shall be overriden by the forcedone before render time.

What beta are you using?

++
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

- Lo-Fi Version Time is now: 19th July 2007 - 10:54 PM
phpMyVisites