Jump to content

Autofit camera to object bound [SOLVED]

Recommended Posts

Hey all :)

The idea is I have bunch of objects and would like to render small image (like icon 256x256) of the object. Now instead fiting the one by one I was thiking of using some Houdini power.
Switch node to maybe object bound...to camera position...distance thing...
anyone tried something like that?

Thanks a bunch

Edited by chromaKiki
Link to comment
Share on other sites

Well, I found another way around it.
Don't try to fit the camera to object bound, try to fit object to some fixed bound and there is a great sop node that does normalized scale!
So I just used the switch to feed it and set two flags on. Scale to Fit and Uniform Scale > Best fit. Love it!
See image below.
So now the camera is in fixed perspective to this bounding box and all geo gets normalized and moved into it so you just press render :)


Edited by chromaKiki
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...