This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?act=Print&client=printer&f=17&t=412 as retrieved on 1 Aug 2007 09:29:14 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:J-jEJmopFt8J:www.flashsandy.org/forum/index.php%3Fact%3DPrint%26client%3Dprinter%26f%3D17%26t%3D412+act%3DPrint+%22index+php%22+-lofiversion+site:www.flashsandy.org&hl=en&ct=clnk&cd=32


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: act print index php

Printable Version of Topic

Click here to view this topic in its original format

Sandy's Forum _ AS2 1.x versions _ Translate Many Planes on the X

Posted by: chris_pem Mar 25 2007, 05:10 PM

Attached File  CoverFlow.zip ( 708.65k ) Number of downloads: 8


Hi,

I am trying to create my own version of CoverFlow which can be seen in iTunes (iStore). Basically its many textured planes translating on the X and some rotation. When I started I thought it would be a piece of cake. Oh how wrong I was. I am not doing this for any commercial use but more my own personal learning and now it had become a mission.

I can set the planes to there initial rotation and translation but am having problems moving them after that. I have a slide bar which when moved will call a function.

I have the function currently just trying to move one item to the left a little but when I do it seems to make the plane disappear.

Im not sure if its my method, if there is an easier way or if im just doing something wrong.

I have attached a zip file of all my files. It would be great if someone could take a look for me and let me know where im going wrong.

I hope this post helps others.

Many thanks and great work guys.

Posted by: zeusprod Mar 25 2007, 06:28 PM

QUOTE(chris_pem @ Mar 25 2007, 12:10 PM) *


I have the function currently just trying to move one item to the left a little but when I do it seems to make the plane disappear.


If your plane disappears, try disabling backface culling. You may be seeing the back side of the plane, which is invisible.

You need to set the instance's enableBackFaceCulling property to false.
Bruce

Posted by: chris_pem Mar 26 2007, 01:25 PM

QUOTE(zeusprod @ Mar 25 2007, 07:28 PM) *

If your plane disappears, try disabling backface culling. You may be seeing the back side of the plane, which is invisible.

You need to set the instance's enableBackFaceCulling property to false.
Bruce


Thanks for your response. I have only textured one side and am rotating the plane into view. I have as you mentioned set the enableBackFaceCulling both to false and true but no difference. In theory is the plane is rotated to face the camera then enableBackFaceCulling should make no difference?

Posted by: zeusprod Mar 26 2007, 02:37 PM

Use setBackSkin() to set a different skin for the back of the plane and make sure you can see it.

At least then, you should be able to confirm you've successfully turned off backface culling and you can tell which side of the plane is facing the camera.

Of course, other things can make your plane disappear, but this is the most likely.

Oh, I just re-read your initial post. If they disappear when you try to move or rotate them using a slider, it is because you are not correctly remembering their initial positions and setting all three values (x, y, and z) of the rotation or translation vector.

That is most likely the problem. See Petit's tutorial for a detail explanation of and solution to the problem.

Cheers,
Bruce

Posted by: zeusprod Mar 26 2007, 03:57 PM

I just added this FAQ.

Feedback welcome:

http://www.flashsandy.org/faq/noshow

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)