Game Development Community

How do I use migrate the first and third-person camera POV capabilities from AFX to the Isometric Kit?

by Tom Stovall · in 3D Isometric Kit · 10/12/2009 (1:27 am) · 8 replies

May be the noobest question of the day, but I can't seem to make it happen, nor did I notice if anyone else had asked. I'm looking at moving over afxCamera.cpp, as well as pertinent header files, then recompiling, but I'm really not sure what I'm doing. Any help is most appreciated.

About the author

Recent Threads


#1
10/12/2009 (9:36 am)
afxcamera is already there and available if you want to change the view. look in game.cs where the cameras are set up. should be pretty easy to see, but if you still need help i will give you some more details.
#2
10/13/2009 (11:26 am)
Thanks! I was able to manipulate it once I read through, especially getting rid of the Godview offset. There are some anomalies, however, such as the mouse scroll wheel will zoom closer while in 3rd person, but not back out, and sometimes first person crashes the game.

I experimented with it a bit, but didn't fix it.
I attempted a "reverse" method by importing the ISK mission to Arcane AFX, along with the data and .cs files, since I'd much prefer its first- and third-person style and control, but now I'm having problems with selection, as in it won't select anything. Which is easier, getting ISK to have the same camera capabilities as AFX, or importing ISK to AFX?

I realize I've somewhat branched this into two topics... thanks for your help.
#3
10/15/2009 (9:38 am)
since ISK is built on top of AFX importing ISK to AFX is a not going to do anything for you. You have going to have to back out the modifications that are made to the ISK to get it more inline with what you are looking to do.
#4
10/15/2009 (12:49 pm)
Yes, I discovered this as I attempted to move files and features "backwards" to AFX, and though I understand it a bit more, I broke more than I fixed. I don't want to lose any of the functionality of ISK, I just would like to have the first and third person view capabilities of AFX, if you wouldn't mind detailing how to do so.
Thanks
#5
10/16/2009 (9:47 am)
if you want to change the camera view you can pretty much just rip out all of the advanced camera stuff and use the regular camera, then inside of AFXTSCtrl inside the engine code you can rip out the custom mouse movement inside the onmousemove function. Let me know if this helps.
#6
11/22/2009 (7:56 pm)
When changing the custom mouse movement code in the AFXTSCtrl function, the rebuild keeps going and never finishes. This is in VC++ 2008.
#7
11/22/2009 (8:06 pm)
It finished, but with over 30 errors. May be something to do with the conversion process from 2005 to 2008.
#8
01/21/2010 (9:33 pm)
you should just have to replace the code thats there now with the stock code from AFX.