flash - Using Stage 3D inside a Direct3D or OpenGL application -
before there stage 3d, capture output of flash rendering engine in-place site , use texture. now, there stage 3d seems can't rendered windowless...
is there way capture output of flash control running in direct mode? or there way let them render supplied surface?
you can capture stage3d buffer bitmapdata
try method context3d.drawtobitmapdata()
var renderedbitmapdata:bitmapdata = new bitmapdata(viewwidth, viewheight, true); rendercontext.drawtobitmapdata(renderedbitmapdata); rendercontext.present(); //add stage bitmap = new bitmap(renderedbitmapdata); this.addchild(bitmap);
Comments
Post a Comment