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 / converting 3D to 2D

Author
Message
genius
20
Years of Service
User Offline
Joined: 16th Oct 2003
Location: Utah, USA
Posted: 17th Apr 2004 22:14 Edited at: 18th Apr 2004 00:22
I am trying to draw lines for bullets and I am wondering how to convert a 3D coordent into a 2D coordent. The reason why I shouldn't use the object screen x/objects screen y is because i am drawing lines for bullets to add a cool effect and i can't have too many objects on each object, by the way, it is in DBPro

cheers,
Colin

Be happy, tomorrow is another day
DK_
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 18th Apr 2004 02:38 Edited at: 18th Apr 2004 02:38
try experimenting with these commands:

object in screen(object number) will return a 1 if the specified object appears on the screen

object screen x(object number) will return the x coordinate of an object on the screen(object doesn't need to be an the screen, will still get a value)

object screen y(object number)



genius
20
Years of Service
User Offline
Joined: 16th Oct 2003
Location: Utah, USA
Posted: 18th Apr 2004 04:54
I found Demitry K's code snippet to do it, thanks!

Be happy, tomorrow is another day

Login to post a reply

Server time is: 2024-09-22 05:33:10
Your offset time is: 2024-09-22 05:33:10