PDA

View Full Version : Text label, camera, look at - neeed help.


illa3d
07-03-2008, 12:43 PM
I've run into a brick wall.

I'm need to create a text label that will float above an item, being constant size on the screen ( screen relative size ), even when camera moves away or rotates around it.

For now, I have that object linked with look at constraint towards the camera.
I'm quite clueless how to pull out the scale dependant on the camera distance. Or should i doit in another fashion?

Thanks!

illa3d
07-03-2008, 01:47 PM
To piss in my own bucket, I found a solution 10 mins after the post.
I just inverted the way of looking at the problem, the solution presented itself.

We have 3 things
1. the object of reference "xxx"
2. object's label
3. camera

- rotate camera towards the object
- create label in top viewport
( i suggest you create label really small, at least 10x smaller than object "xxx", because it will be rendered behind the object "xxx" the camera comes near the object )
- place it so it is in the desired spot on screen when looking from the camera view
- align orientation to camera if necessary with align tool, so it's looking at the camera
- enter edit pivot mode and align pivot with camera
- link label to the camera
- constrain the label with rotational look at constraint, looking at object "xxx"
(select label / motion tab / assign controler rollout / select rotation / click ? icon / look at constraint / go to look at constraint rollout / add LookAt target / select object "xxx" )
- Look At Axis = z, flipped
- deselect world for upnode, pick camera as upnode
- Upnode alignment, Source axis=y, aligned to Upnode axis=y
- remember that you need to have to center pivot in object "xxx" because label is aligned above the pivot.

Max file:
label_lookat.max (http://www.illa3d.com/bin/label_lookat.max)

Have phun!

CGTalk Moderation
07-03-2008, 01:47 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.