|
Can anybody give me a hint how i can place different movieskins on different faces?
Well, it depends on the kind of object you are using.
If you are trying to place MovieSkin's on a cube, you can get an Array of the Face's,using
Thanks for reply.
But
there are still some other problems. As you can see in the attached
swf, the images are only shown if you navigate (means: push the mouse
button ot use the ARROW KEYS). For what reason?
The other problem is the distortion of the pictures if you turn around. Is there any possibility to get rid of that?
Thank you,
plastichorse
Attached File(s)
061114_test1.swf ( 241.98k )
Number of downloads: 19
Hi,
Are you using Sandy 1.1?
Otherwise
without any code information (what happen when you push the keyboard
key, etc.) I can't say more about your problem (can't watch the swf
from here)
++
Yes I do.
Here is the as-file, too. Thanks for the fast reply.
Attached File(s)
Test.as ( 3.34k )
Number of downloads: 10
I looked at your code, and the problems doesn't seems to be here...
Just a remark :
my3DObject.swapCulling();
my3DObject.enableBackFaceCulling = false;
If you disable the backfaceculling, you don't it to swap it
I'll say more once I can see the swf at home.
++
thanks for that. but without swapCulling and enableBackFaceCulling, i don't see anything.
This might be completely wrong - take it as guesswork.
It looks immersive, so I guess you're inside the cube.
Yuo swap the backface culling so only the inside faces should be drawn.
Then to avoid the extra drawings of the outside of the faces, you should have back face culling enabled.
Then you don't see anything, because you have no images on the inside of the cube,
You have no setBackFace( skin ) calls for your faces.
So you disable back face culling, and somehow the outside skins are shining through, when you pan.
If I an right you should just set the back face skins.
If I'm right, I'm only lucky
Good luck!
NOP.
I tested this and used only back skins.
The only difference is that I didn't have to use swapCulling.
The result is the same. The MovieSkin's only render when the image cube is moving,
either by mouse press or Key.RIGHT and Key.LEFT.
It looks as if the rendering stops, when the cube isn't moving.
Strange!
Well, stubborn as I am, I'm back.
When
you create your skins, you set the automatic update to false, which
means the Worls3D onRenderEvent does not automatically update the
textures.
When you interact by using your mouse or keyboard, the
camera is moved, and schedules the skins for an update ( new
perspective ).
Your worlds onRenderEvent has a handler called interactions.
The handler check for the mouse and key board, and if any interaction is going on, moves the camera,
and the textures will be updated.
If there is no current interactions, the camera doesn't move, and the textures are not rendered.
My quick and dirty solution was to always move the camera at the top of the interactions method, like this:
This is a cache problem.
Sandy has a cache that allows you to avoid extra computations when nothing is moving.
Don't remember with the 1.1, but the demo I've rewritten with 1.2 works fine.
As
I'm preparing a new release, I just recommend for instance to fix this
problem as Petit said (even if it looks horrible to me )
Yapp,
changed it to backfaces now. And solved the problem by using the cam rotation.
@kiroukou:
I know this is an annoying question: But when is the new version of
sandy going to be released? And will it be ported to AS3 already?
The
next release will be ready quite soon. Few problems still exists, and I
want to fix them first. But you can expect it to be available in a
month in the worst case.
I'll talk about AS3 a bit later...
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)