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.

AppGameKit Classic Chat / How would i set the camera so an offset object doesnt appear rotated offcenter

Author
Message
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 4th Mar 2019 21:50
If I have an object positioned like SetObjectPosition(Obj,-20,-10,40)
and the camera SetCameraPosition(1,0,0,0)

the object appears rotated I know this is correct for the way 3D appears but how
would I make it so as the object doesn't appear rotated when its not at the same
location as the camera

Ive been looking through the help commands and still not sure how
fubar
puzzler2018
User Banned
Posted: 4th Mar 2019 22:40
Correct always set your camera at 0,0,0 and move things around the camera

SetCameraLookAt maybe
Tier 1 Developer
Ortu
DBPro Master
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 4th Mar 2019 22:46
If your talking about the apparent rotation due to perspective distortion, you would "fix" that by using an orthographic camera.
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 4th Mar 2019 22:59
thanks Ortu SetCameraFOV(1,0) achieves that quite well
I tried it before but mustve had the wrong camera value or something as it didn't do anything
fubar

Login to post a reply

Server time is: 2024-11-23 05:32:44
Your offset time is: 2024-11-23 05:32:44