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.

Code Snippets / Find A Good Location For A Camera (DBP)

Author
Message
Codelike
18
Years of Service
User Offline
Joined: 13th Dec 2005
Location: DBP - Scouseland
Posted: 24th Jan 2006 20:31 Edited at: 24th Jan 2006 23:28
This prints your 3d object & the camera xyz position onto the screen. Useful if you want to put a camera in a specific location, but don't know the coords. The camera moves on keys & the xyz position updates. The cube always stays at 0,0,0.

This took me a while to figure out how to put the code in the right order to place the text over the 3d & may, also, be useful if you want to do the same.

n.b. keystates (the camera z-axis) a=30, z=44. This may be different on your machine.



The same code with camera rotation added...



I have an XP3000+, 1.5gb DDR333, a 6600GT and I'm programming 3k text-based exe's?!

Login to post a reply

Server time is: 2024-11-23 07:18:14
Your offset time is: 2024-11-23 07:18:14