To display a ZIM Label in front of a 3d model

In the example ZIM 3D Model with ThreeJS, JavaScript HTML 5 Canvas and CreateJS - Tips, Techniques and Tutorials , at the ZIM level, is it possible to display a ZIM Label in front of the 3d model (without adding the text in the three scene)? And trying to avoid the use of ZIM Tag.

You can add a label in front of the three.js by using a new Frame. You may need to turn the pointer events off on the new Frame:

newFrame.canvas.style.pointerEvents = "none";

I think...

Don't be worried about a new Frame - this is easy to do, we should do this quite often if optimizing interface versus dynamic drawing or areas of animation. See point 3 of the Optimize post: Optimizing ZIM

And the Tips: TIPS - ZIM JavaScript Canvas Framework - Code Creativity with ZIMjs!

I am learning a new thing which is about using multiple ZIM frame tfor optimisation. Will have some hands on that subject. Thank you Dr. Abstract.

1 Like