0
$\begingroup$

So I'm planning a new portfolio piece, and for it to turn out how I want, I need some help with constraints. There is going to be a star that always faces the camera, and that much I figured out. The problem is I want the star to always be right side up from the cameras POV, so I think there needs to be an additional rotation constraint as well. I don't know how to go about it though. Advice?

$\endgroup$
  • $\begingroup$ What is your setup like? Have you parented the camera to the star? This will both make the object always face the camera, as well as move with it (including rotation). $\endgroup$ – Christopher Bennett Jun 24 at 2:34
  • $\begingroup$ Are you trying to lock cam to object and limit rotation to single axis of object at same time? $\endgroup$ – Timaroberts Jun 24 at 2:54
  • $\begingroup$ Hi Christopher, I tried parenting the camera to the star, but it wasn't quite what I was looking for. More or less, I just want the star to orient itself to appear right side up in the camera's view, no matter what position the camera is in. And Timaroberts, I think that might be what I'm looking to do. How would I go about setting that up? $\endgroup$ – Michael Jun 24 at 3:45
2
$\begingroup$

One way to do this is with constraints. Namely the damped track and limit rotation constraints.

Here is how to do it:

First select your object and add a constraint, choose damped tracked from the drop down. In many cases, the axis will be -Z and in this case, our target will be the camera object. enter image description here

Next, add a limit rotation, and tick both axes you wish to lock or limit. Here, I have ticked the X and Y axes thus disabling them, permitting the star to only rotate around the Z axis as it tracks the camera. This of course can be arranged however you need for your specific scene.

enter image description here

This is the result:

enter image description here

| improve this answer | |
$\endgroup$
4
$\begingroup$

Locked Track Constraint

enter image description here

Locked Track Constraint

Setup Suzanne akin to a compass needle via the locked track constraint. Suzanne faces the camera (To -Y) and can only rotate on the Z axis (Lock)

| improve this answer | |
$\endgroup$
2
$\begingroup$

If I understand correctly, you want your star to behave as a "billboard". There are lots of tutorials out there, one for example here: https://www.blendernation.com/2019/04/27/how-to-properly-billboard-sprites-particles-in-blender/

This tutorial shows essentially the method also described by @batFINGER, using the "locked track"-constraint.

| improve this answer | |
$\endgroup$
  • $\begingroup$ Imagine this is the track to constraint... could you please flesh this out in answer. Link only answers often get removed in review. $\endgroup$ – batFINGER Jun 24 at 5:54
  • $\begingroup$ My answer is essentially a link to a tutorial describing the method you also posted as your answer with the "locked track" constraint. Mainly I wanted to bring up the "billboard"-keyword, so OP has a better lead for searching further instructions. $\endgroup$ – haarigertroll Jun 24 at 7:02
  • $\begingroup$ Thanks for the help everyone! Ultimately, it wound up being a combination of Tima and Batfinger's solutions. I applied both to the star. I also added a track to constraint on the camera, targeting an empty that was a child of the star It turned out beautifully! Thank you both! $\endgroup$ – Michael Jun 24 at 7:29
  • $\begingroup$ @haarigertroll Ok,I need to look it up too lol, assumed it was the full monty track to $\endgroup$ – batFINGER Jun 24 at 9:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.