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

Share this post

Link to post
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

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now