News:

When replying to a specific statement be sure to quote the previous post.

Main Menu

Camera

Started by Crispy, March 14, 2013, 09:01:22 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Crispy

I have a 3d object performing some animated movements.  I want to have a camera rotate around it, so it looks like my animated object is rotating.  I've read some about attaching a camera to a spline, making both the spline and camera actors, etc.. I guess my first question is.. How do I get my camera to look at the center point of my object.. And how do I get it to stay looking at the center point of my object while the camera is rotating around my spline?

Thx

Chris
TC 17 PRO
AL v5

mike mahan

Your "actor" is the camera. Use the command CameraPosByPath to move the camera. You need to make the path an "actor" to use this command. Use the command CameraLookAt to make it look the location of your object. This command points the camera to a particular place, not at a particular object. You will probably need to use the command CameraUp to keep the camera upright. Be careful because AniLab's x,y,z axis are not necessarily the same as your drawing's x,y,x axis.
mike
TC user since v3. MacMini 5.1. 2.3 GHz. 16 Gig RAM.
TC 19 Pro 64 bit. Windows 7.

Crispy

Mike..

I noticed that.. My x, y & z status I put in AL isn't working.. I get an error message. How do I know what the AL coordinates are? Why aren't they the same as TC?

mike mahan

I don't know why x,y,z is different in AniLab. The way you know what they are is trial and error. Do something simple to determine before you run a complex senario. What was the error message?
mike
TC user since v3. MacMini 5.1. 2.3 GHz. 16 Gig RAM.
TC 19 Pro 64 bit. Windows 7.

Crispy

A "VBScript" window comes up.  It says..

Error: Syntax error.
Command: '0 60 CameraLookAt 4.88-in 0.63-in 4.31-in'
Actor = 'Camera'
Step = 0

mike mahan

Play with your units and formatting, it's pretty sensitive.
mike
TC user since v3. MacMini 5.1. 2.3 GHz. 16 Gig RAM.
TC 19 Pro 64 bit. Windows 7.

John R

Quote from: Crispy on March 14, 2013, 10:08:40 AM
A "VBScript" window comes up.  It says..

Error: Syntax error.
Command: '0 60 CameraLookAt 4.88-in 0.63-in 4.31-in'
Actor = 'Camera'
Step = 0

I don't think you need to include the 'inches' reference, just the numbers.
For CameraUp (UP Vector), try "0 0 1", not the numbers shown in Camera Properties.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Tim Stewart

Hi again,

you could select a suitable object, even a non-visible one, make it an actor and use the Rotate Command to rotate around this object.

Essentially, this is a camera rotating around whatever you choose.  ;)

Regards Tim
Regards Tim

You can design without engineering, but you cannot engineer without design.
Windows 10 Pro (19043.1165) 64-bit, TurboCAD Designer 2017-2020 and Pro. Plat. 2018-2020 + LW (64-bit) + AnimationLab 6
Intel i5 2500@3.3GHz 8GB Ram NVIDIA Quadro K2200

WenchDeal

Hi guys! I want to buy a 3d camera in cheap price, Please give suggestion How can I can buy a 3d camera....?