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.

Author
Message
cassius_b
18
Years of Service
User Offline
Joined: 19th Feb 2006
Location:
Posted: 12th Mar 2006 02:23
Using dbpro. How do I print the camera x y z position on the screen so I can place objects in my level at the correct place?
code master
20
Years of Service
User Offline
Joined: 4th Dec 2003
Location: Illinois
Posted: 12th Mar 2006 02:40
Like this:


of course, that is for DBC, but it should work for pro to.

later

RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 12th Mar 2006 04:38
Though that'd give a number unseperated, not too hard to figure out but for someone that doesnt know how to get the camera positions I think a little more clarity is needed. Use three seperate prints instead, its easier to understand:

Or, edit the code that code master supplied to be a little more clear:


cassius_b
18
Years of Service
User Offline
Joined: 19th Feb 2006
Location:
Posted: 12th Mar 2006 08:41
Spoiled for choice. Thanks.
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 12th Mar 2006 18:55
Come to think of it, Master your code would just output the sum of the three positions.

code master
20
Years of Service
User Offline
Joined: 4th Dec 2003
Location: Illinois
Posted: 12th Mar 2006 22:47
Actually, with strings, the + operator only concontuates(SP?) or adds together the strings. I admit that my code would just run the numbers together, but i didn't have time to fix that. I don't know what the "|" operator does, but i assume it's the same as the +.

later

Classic Evil
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: watching you through your window
Posted: 12th Mar 2006 22:49
no it doesnt

There are two types of people in this world: people who are extremly cool and are good at everything and people who are me.
code master
20
Years of Service
User Offline
Joined: 4th Dec 2003
Location: Illinois
Posted: 12th Mar 2006 23:11
Are you sure? I'm sure it does . Odd...

later

RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 13th Mar 2006 17:44
In most OOP programming languages yes it does. But with DBP no it doesnt. The | in there isnt an operator, its a string separating the three numbers, so if your camera was at 10, 30, 50, it'd print:

10 | 30 | 50

code master
20
Years of Service
User Offline
Joined: 4th Dec 2003
Location: Illinois
Posted: 13th Mar 2006 18:36
Ahh. Ok, thanks for clearing that up RUCCUS

later

Login to post a reply

Server time is: 2024-11-27 01:42:31
Your offset time is: 2024-11-27 01:42:31