Grasshopper

algorithmic modeling for Rhino

I am using DrawViewportWires to display text dots with salient information at a number of positions in my models.

Text dots retain their size relative to the screen. When zoomed out they get effectively larger compared to the model. Unfortunately when zoomed out to see my whole model, the text dots obscure a large proportion of it.

Is there a way to keep the size of the text dots constant with respect to the model (i.e. zoom out take up less space on the screen)?

Views: 1486

Replies to This Discussion

No.

--

David Rutten

david@mcneel.com

If you want text that scales, you'll have to draw actual 3D text objects. You could also include a capsule like background if you want, but you have to draw it all from scratch.

--

David Rutten

david@mcneel.com

Ah I had tried that but then its orientation is also fixed so when you rotate your view the text ends up upside down.

Is it possible to work out the plane of the viewport camera so the 3d text plane can be updated and the orientation remain correct?

You can't draw the same 3D text all the time, you have to actually make new 3D text that is camera aligned for every redraw in every viewport.

--

David Rutten

david@mcneel.com

Would that be onerous? I would envisage there being up to about 300 text entities.

How would I go about finding the correct plane to draw in to remain camera aligned?

EDIT: I didn't see the VB, C# script etc so you can ignore this as an approach

Chameleon and Horster plug-ins both have access to camera properties. From this you can redraw the plane on which to place the text.

 

Here's my example of this:

Horster GetCamera Demo from Danny Boyes on Vimeo.

http://www.grasshopper3d.com/group/horster-tools/forum/topics/horst...

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service