Jump to content
Sign in to follow this  
bentraje

[SOLVED] Face Camera and Use Geo's Normal for Scattering?

Recommended Posts

Posted (edited)

Hi,

I have a bunch of cards scattered on a geo. They are oriented to always face the camera.
But is it possible for them to also use the mesh's normal to have a more natural rotation AND still face the camera.

You can check the image below for illustration.

modified_aim_constraint.hipnc

modified_aim_constraint.jpg

Edited by bentraje

Share this post


Link to post
Share on other sites
Posted (edited)

have a look at the attached file. It uses a bit of different technique, it brings the geometry into the camera space and flattens the normals and then creates an up vector along the z axis (camera axis). I swap the N and the up and then then it moves the geo back to world space.

This is not exactly what you asked for(don't have much time). the grids are now parallel to the camera plane, not necessarily facing the center of the camera, but it should be close enough.

modified_aim_constraint_doc_v1.hipnc

Edited by doc
  • Like 1

Share this post


Link to post
Share on other sites

Hi @doc

Thanks for the file! it works as expected. Didn't know there was a handy use case for Object Merge's Transform Into Specified Object option :)

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
Sign in to follow this  

×