0

Im trying to make plane with full (background) texture and partial (element) texture on 1 plane. Partial element will change often in runtime , so Im curious if can use kind of double drawing on single plane element ?

Is is possible ? Or I have to make 2 planes , one above another ?

1 Answer 1

0

A simple solution would be to extend BitmapTexture and create a class similar to WebcamTexture where you composite the images and assign the results to the texture's bitmapdata.

Look at the update function in the WebcamTexure class, that's where they grab the camera bitmapdata and apply it to the texture.

If autoUpdate is true the update() function is called from uploadContent(), similar to OnEnterFrame. To manually update the texture set autoUpdate to false and call update() only when needed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.