Skip to content

Text to screen #284

Answered by marcomusy
jonnymaserati asked this question in Q&A
Dec 29, 2020 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

How cool is that! :)
You have various options, use a "follower" object which is locked to face the camera (you can make any mesh obj become a follower by adding mesh.followCamera()) or just overlay some text on the rendering window:

from vedo import *

s = Arrow([0,0,1], [1,1,2])

cam = dict(pos=(4.80, -4.56, 3.32),
           focalPoint=(0.186, 0.0532, 1.05),
           viewup=(-0.230, 0.235, 0.944),
           distance=6.90, clippingRange=(4.75, 9.90))
# (press "C" in rendering window to get the above)

axs = Axes(xrange=(-1,1), yrange=(-1,1), zrange=(0,3), yzGrid=0)

vd=Video()
for i in range(100):
    s.rotateZ(3.6).addShadow(z=0)
    msg1 = Text2D("Some welleng data:\n\Lambda = 10 km",…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jonnymaserati
Comment options

Answer selected by marcomusy
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants