Is it possible to draw a mesh on top of a background image in flash ?
problem trying draw 3d mesh on top of image or object in flash model drawing under image time don't know how sort problem since bit new flash development .
please me thank you.
are adding image child of display object using graphics class draw mesh? graphics class draws @ bottom level of current display object.
e.g.
var container:sprite = new sprite();
// add existing myimage sprite library (exported as)
var myimage:sprite = new myimage();
// add image container
container.addchild(myimage);
// draw black square using graphics
container.graphics.beginfill(0x0,1);
container.graphics.drawrect(0,0,100,100);
container.endfill();
the black square drawn under image, though code happened after image added. you'd need make new display object above image draw , add on image.
e.g.
// make new sprite, draw black box
var mesh:sprite = new sprite();
mesh.graphics.beginfill(0x0,1);
mesh.graphics.drawrect(0,0,100,100);
mesh.endfill();
// add container, on image
container.addchild(mesh);
just add code draw mesh , make sure it's added on image.
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment