That's the thing; I don't have much code at all I've just started following your Scaleform/UDK tutorials (which are great, kudos, by the way!)
The only pieces of code include the obligatory
_global.gfxExtensions = true;
As well as the _z attributes for the layers. When I test it with the Scaleform launcher in Flash, I can see the movieclip being farther/closer based on the _z value I give it, and it looks the same in UDK, but rendered flat to a surface, kind of like my second example image up there.
I was assuming the layers would automatically sort (with depth) in the 3D world in UDK, using just one swf and one surface. Should they be, or am I assuming the impossible?
Announcement
Collapse
No announcement yet.
3Di features problem in UDK
Collapse
X
-
Griptor started a topic 3Di features problem in UDK3Di features problem in UDK
I'm using Scaleform's 3Di features to try and achieve a "Dead Space"-like effect on one object in-game.
What I thought would happen was this: I code my UI in Flash/Scaleform using Scaleform's "_z" attribute for each object to give them each depth, connect the SWF to a material/render target in UDK, apply it to a plane, and the 3D effect would be there thanks to Scaleform.
What instead happens is that everything is rendered flat on the surface that I apply the material to.
So, what I'm trying to achieve is, in one SWF and on one Material, using this:
layer1._z = 500;
layer2._z = 0;
layer3._z = -500;
is this:
But instead of having any depth the material renders in flat 2D like so:
(notice the 1, 2 and 3 squished into one)
My question is...am I missing something key? In this case, do I have to have three separate planes AND three separate SWF files for each layer that I want to apply depth to? Can Scaleform not compute the depth automatically in UDK, based on the code in the SWF file that alters the movieclips' _z attribute?
Thanks guys.Tags: None
Leave a comment: