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 Professional Discussion / 3rd person camera

Author
Message
Khorelis Sylvari
13
Years of Service
User Offline
Joined: 5th Apr 2013
Location:
Posted: 4th May 2013 00:00
Ok, so here is the problem. I have a model that was made in 3ds max and converting to .x using conv3ds. I am using the model as a placeholder until I get a final main character model but as I'm seeing this issue arise now, I'd rather have it figured out before we have a finished main character. I'm using some common 3rd person camera code utilizing "set camera to follow". The code is shown below:



The problem here is that when the App is compiled and runs, this is what is shown on the screen:



I cannot for the life of me figure out how to get the model object rotated so the camera is BEHIND the character rather than to the side. If I alter the objects rotation, it also screws up the movement since "move object" only wants to move the object forward and backward in relation to its rotation. W and S become strafe left and strafe right rather than forward and back in this case.
Khorelis Sylvari
13
Years of Service
User Offline
Joined: 5th Apr 2013
Location:
Posted: 4th May 2013 07:05
Actually, I have figured it out. Apparently I had to rotate the model in 3ds max first before exporting it. That was a rather easy fix to what seemed like a complicated situation!

Thanks anyway everyone!
Ortu
DBPro Master
18
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 4th May 2013 08:53
after you rotate the object use the "fix object pivot" command to apply the rotation as the new base rotation, should fix the movement issues as it will no longer be considered 'rotated' if that makes sense

Shazam!

Login to post a reply

Server time is: 2026-07-07 04:32:49
Your offset time is: 2026-07-07 04:32:49