scythe3000
Chieftain
- Joined
- Dec 17, 2007
- Messages
- 3
Ok this is starting to bother me now. I have a mod idea that requires information about where the user's Camera location is in real time. Both camera location and lookat location would be ideal but currently i've been unable to extract ANY information about the camera.
So far I have marked up every Camera related function that I can find within the SDK with my own outputdebugstring comment function assuming that camera co-ordinates would more likely me located in C/C++ code. The function is also exposed to the Python part of the code base and I have marked up pretty much the entirety of the CvCameraControls.py with debug comments as well.
None of this seems to give anything out at all. From what I can tell none of this even seems to get called? Which just sounds like madness tbh. I know the debug string function works in Python in real time as one of the functions in CvCameraControls.py calls it (i'm using debugview to catch these and the dll is a debug dll atm), namely "def onUpdate( self, fDeltaTime ):" the last function in the file. As far as I can tell however no other function in there gets called.
Syntax has been checked, checked and rechecked and I am simply printing out a string so no dynamic information is even being sent at this point.
I would be most grateful for any help with this as this is doing my nut in. SURELY getting the camera location shouldn't be this taxing, or so I thought when I started
Acceptable alternatives would be the co-ords of the tile that is considered to be at the center of the screen...if thats any easier.
So far I have marked up every Camera related function that I can find within the SDK with my own outputdebugstring comment function assuming that camera co-ordinates would more likely me located in C/C++ code. The function is also exposed to the Python part of the code base and I have marked up pretty much the entirety of the CvCameraControls.py with debug comments as well.
None of this seems to give anything out at all. From what I can tell none of this even seems to get called? Which just sounds like madness tbh. I know the debug string function works in Python in real time as one of the functions in CvCameraControls.py calls it (i'm using debugview to catch these and the dll is a debug dll atm), namely "def onUpdate( self, fDeltaTime ):" the last function in the file. As far as I can tell however no other function in there gets called.
Syntax has been checked, checked and rechecked and I am simply printing out a string so no dynamic information is even being sent at this point.
I would be most grateful for any help with this as this is doing my nut in. SURELY getting the camera location shouldn't be this taxing, or so I thought when I started

Acceptable alternatives would be the co-ords of the tile that is considered to be at the center of the screen...if thats any easier.