|
I've
got a simple Sandy project going where I just have a spinning cube. It
all works fine when I have a SimpleColorSkin or MixedSkin on the
object. But when I try to use a TextureSkin or a MovieSkin instead, I
see nothing.
Example:
//works
var skin:Skin = new MixedSkin (0x00FF00, 100, 0, 100, 1);
//object disappears
var skin:Skin = new TextureSkin(BitmapData.loadBitmap('test'));
Where 'test' is the ActionScript name of an image in my library (assigned with the Linkage option).
Here is how I create the object:
var o:Object3D = new Box (50, 50, 50, 'tri');
As you can see I am using the triangle mode so it ought to work right?
Any ideas what I could be doing wrong?
Thanks,
Jeremy
Hi and welcome.
Well it seems that you are doing correctly the process.
Can you provide a bit more of code?
And can you precise the version of Sandy you are using and the compiler (MM or MTASC)
++
Well, it spontaneously started working so I suppose the problem is moot :-)
Not
sure why it wasn't working before. I added a new image to the library
and then converted it to a movie clip and tried it as a MovieTexture,
and it worked. Then I went back and tried the original and it was
working. So... it's a mystery I guess.
Thanks,
Jeremy
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)