cassius Posted September 6, 2012 Share Posted September 6, 2012 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? Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
gamecreator Posted September 6, 2012 Share Posted September 6, 2012 Wouldn't you just move the camera back? Quote Link to comment Share on other sites More sharing options...
cassius Posted September 6, 2012 Author Share Posted September 6, 2012 Thanks. I will try that. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
AggrorJorn Posted September 6, 2012 Share Posted September 6, 2012 Here is my approach. Place the camera at the players position. Offset the camera globally to that its height is correct. Use the same calculations for first person to rotate the camera. Then move the camera locally backwards with an offset. Quote Link to comment Share on other sites More sharing options...
cassius Posted September 6, 2012 Author Share Posted September 6, 2012 A problem I found is that the character ( now visible in front of the camera) is rotang as Irotate the mouse. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
AggrorJorn Posted September 6, 2012 Share Posted September 6, 2012 is the camera rotation applied to the player. you also might want to clear the parenting of the camera to the player. It works fine at first but when you combine it with the water plane, it goes wrong. Quote Link to comment Share on other sites More sharing options...
gamecreator Posted September 6, 2012 Share Posted September 6, 2012 Also: Aggror's Third person camera - ball game example http://www.leadwerks.com/werkspace/files/file/121-third-person-camera-ball-game-example/ klepto2's Simple Chase/3rd person camera class (new more advanced) http://www.leadwerks.com/werkspace/files/file/3-simple-chase3rd-person-camera-class-new-more-advanced/ Quote Link to comment Share on other sites More sharing options...
cassius Posted September 6, 2012 Author Share Posted September 6, 2012 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. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Recommended Posts
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.