Jump to content

Recommended Posts

Posted

Hi

 

After some time using Bmax I have moved to c++ and codeblocks.

I have a first person loader up and running and now want to convert it to third person.

So whats the best approach? Should I try to move the player forward and parent the character to it or should I create a new body in front of the player?

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Posted

Here is my approach.

  1. Place the camera at the players position.
  2. Offset the camera globally to that its height is correct.
  3. Use the same calculations for first person to rotate the camera.
  4. Then move the camera locally backwards with an offset.

Posted

A problem I found is that the character ( now visible in front of the camera) is rotang as Irotate the mouse.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Posted

Thanks all. I got it working. I neededed to rotate the character itself with camrotation.I'm having fun with this c++ language.

I have the program running in both codeblocks and vc+= express.In terms of framerate there is not much difference but codeblocks is a bit more user friendly.

 

EDIT: I didnt use EntityParent as a lot of people say it can cause probs.

I had already seen ballgame its good but does not use framework.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...