Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Camera parent to an object

Author
Message
Sodevrom
19
Years of Service
User Offline
Joined: 10th Jul 2005
Location: Timisoara
Posted: 31st Jul 2005 23:52
Hello, I have problems understanding how "parent" and "child" object work . Here is what I want :
I have a sphere object . I have a camera , I want the camera to stay on top of the sphere object . I want when I move the sphere , the camera to folow it , perservind the same distance between them. How can I do this ??? I also don't realy understand "LIMBS" Please help
caleb870
19
Years of Service
User Offline
Joined: 13th Jul 2005
Location: LOOK! Over there!
Posted: 1st Aug 2005 00:21
Try using:

Just replace the "#"'s with the object number of the sphere in the code to make it work.
The admiral
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 1st Aug 2005 08:57
That will only position the camera at the spheres position which will make it inside the sphere if its big enough. The code snippet below should fix this. But you will need to fiddle with the values to get the right position.

The admiral
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Aug 2005 11:52
A camera cannot be a parent/child. It cannot be a limb. Limbs can only be used to join 3D objects.

The Admiral's code is simple, and exactly what you need.

Sodevrom
19
Years of Service
User Offline
Joined: 10th Jul 2005
Location: Timisoara
Posted: 2nd Aug 2005 00:20
Thanx very much guys , I know that I ca use Poisition camera object position x(#),object position y(#),object position z(#) to move the camera like the object , I am not a begginer in 3D . I am a begginer in DBP. I want to know what exactly is a limb , maybe a tutorial or something , I don't know . I don't understand them . I have been using blitz 3d , but DBP is much more powerful . In blitz you had a function : Entityparent . What it the function in DBP ? thanx
The admiral
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 2nd Aug 2005 12:34
limbs are parts of objects which allow you to join them together and move rotate etc this is the same for most programming languages you should know this.

The admiral
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 2nd Aug 2005 13:51
They are all in the help files, this is what you are looking for...


PERFORM CHECKLIST FOR OBJECT LIMBS : PERFORM CHECKLIST FOR OBJECT LIMBS Object Number
OFFSET LIMB : OFFSET LIMB Object Number, Limb Number, X, Y, Z
SCALE LIMB : SCALE LIMB Object Number, Limb Number, XSize, YSize, ZSize
ROTATE LIMB : ROTATE LIMB Object Number, Limb Number, XAngle, YAngle, ZAngle
SHOW LIMB : SHOW LIMB Object Number, Limb Number
HIDE LIMB : HIDE LIMB Object Number, Limb Number
TEXTURE LIMB : TEXTURE LIMB Object Number, Limb Number, Image Number
COLOR LIMB : COLOR LIMB Object Number, Limb Number, Color Value
SCALE LIMB TEXTURE : SCALE LIMB TEXTURE Object Number, Limb Number, UScale, VScale
SCROLL LIMB TEXTURE : SCROLL LIMB TEXTURE Object Number, Limb Number, X, Y
ADD LIMB : ADD LIMB Object Number, Limb Number, Mesh Number
LINK LIMB : LINK LIMB Object Number, Limb Parent, Limb Child
REMOVE LIMB : REMOVE LIMB Object Number, Limb Number
SET LIMB SMOOTHING : SET LIMB SMOOTHING Object Number, Limb Number, Percentage

Login to post a reply

Server time is: 2024-11-12 03:08:16
Your offset time is: 2024-11-12 03:08:16