how to show color legend and text on a viewport?

   8105   9   4
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
Hi, H experts,

Is there a way to put a color legend and associated texts on a viewport in Houdini?

something like the Ecotect interface shown below…

Thanks!

Attachments:
Ecotect.JPG (971.5 KB)

User Avatar
Member
401 posts
Joined:
Offline
The camera object has some parameter to point to another object.
This object contents will be drawn in screen space.

Or just parent something to your camera.

Or fix it in comp.
this is not a science fair.
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
sorry for raise this post again!

Can rdg or anybody kindly explain how to do what suggested by rdg?

Thanks!
User Avatar
Member
789 posts
Joined: April 2020
Offline
Hello,

Please have a look here:

http://www.sidefx.com/docs/houdini11.0/rendering/cameratips [sidefx.com]

in the section “Overlay a gate or graphics on the camera view”

I have not tried this myself, and dont know if it supports color, but it seems worth a try.

Cheers,
Koen
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
thanks, koen!

i sense it's exactly what i'm looking for.

will update you the progress later
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
Here's an example file of how to render any geometry as a slate on top of the camera in the viewport.

Attachments:
camera_slate_nprims.hip (80.5 KB)

There's at least one school like the old school!
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
dear jeff, thank you very much!

i'm testing along the suggestions proposed by you two.
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
dear experts,

I've come up with some nodes to create a color legend bar overlaying on top of a viewport according to the suggestions provided by the experts above.

However, the display of the color bar is not consistent with the one the camera “masks”.

Can you kindly help to explain the reason and suggest a solution?

Thanks!

Attachments:
color_bar.jpg (137.4 KB)
bgeo_file_referred_to.zip (40.4 KB)
legend_bar_v15.hipnc (103.8 KB)

User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
koen
Hello,

Please have a look here:

http://www.sidefx.com/docs/houdini11.0/rendering/cameratips [sidefx.com]

in the section “Overlay a gate or graphics on the camera view”

I have not tried this myself, and dont know if it supports color, but it seems worth a try.

Cheers,
Koen

Dear houdini experts,

Is there anyway to use scripts to automate the procedures as described in the Houdini help file on camera mask section?

May I ask how to use hscript or python in the scripts section of an otl to:
1. create a camera node on obj level once this otl is loaded into the scene?
(is it somethin like the following for the “OnCreated” type of scripts?)
cam = hou.node('/obj').createNode('cam')

2. add the three “view mask” parameters to the camera's parameter pannel and set the “mask aspect” as 1, “mask opacity as 0.5” and “mask overlay SOP” as a default path pointing to a node

Thanks!
User Avatar
Member
789 posts
Joined: April 2020
Offline
That sounds more like a task you would want to do in a shelf tool, have a look here:
http://www.sidefx.com/docs/houdini11.0/shelf/customize [sidefx.com]

Cheers,
Koen
  • Quick Links