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.

DarkBASIC Discussion / quick question, in need of quick answer!

Author
Message
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 30th Dec 2004 00:58
What would be the correct coordinates to point the camera directly down? Say you created an object, but you want to see it from exactly above, what numbers would you use in the point object command?

thanks.

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 30th Dec 2004 02:07
assuming your object is at 0,0,0 (where objects usualy end up when you make/load em), then you need the camera directly above the object, eg

position camera 0,100,0

puts it at 0,0 in the x and z and 100 up in the air, then you just point it at the object with

point camera 0,0,0

if your object is more than 100 tall then you will be inside it, if thats the case then just change the 100 for a larger number, something that will place the camera higher than your object.

Mentor.

PC1: P4 3ghz, 1gig mem, 3x160gig hd`s, Radeon 9800pro w cooler (3rd gfx card), 6 way speakers.
PC2: AMD 2ghz, 512mb ram, FX5200 ultra, 16 bit SB.
Mini ATX cases suck.
Nosnevel Xela
20
Years of Service
User Offline
Joined: 14th Dec 2004
Location: MA, USA
Posted: 7th Jan 2005 01:08 Edited at: 7th Jan 2005 01:09
Ok, the easiest way to do this (assuming that your object may be moving or changing position) is to position the camera directly above it, and point the camera at it. For example:

(object 1 is your guy/character that your looking at)



Note: The 150 is the distance between the camera and your object. You may need to make it bigger or smaller.

I am who I am

Login to post a reply

Server time is: 2025-05-24 19:26:38
Your offset time is: 2025-05-24 19:26:38