|
Yes, I my slackware can run
32bit apps. I tried recompiling grass without the --enable-64bit option
but still had the same nviz problem , although i expect i'm still
compiling to 64bit. However, I've looked at the togl_flythrough.c code and found the problem. Or at least found a change the fixes this on my system. I had added some debug output to mouse_valuator just to show the thisTime value, initially I just wanted to see if I would even see the output from a printf statement when running nviz. What I noticed was that the "seconds" value for thisTime was not incrementing, only the decimal part was changing, which I guess is why the view would return to its original position after a 1 second lapse. in the function "this_time" the time values are being cast to float which is maxing out so i changed them to double which is the return value anyway. so, i changed this line [320]: return ((float)tv.tv_sec + ((float)tv.tv_usec / 1000000.0)); to: return ((double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0)); and that appears to have fixed the problem. the same change may need to be made for the MINGW32 version of the code, but I left that alone. i've made this change in my download of the 6.4.0RC6 version of the code but for now I'll leave it up to you, or others to make this change as I'm currently not set up to submit code. thanks! ken On 06/15/2010 12:53 PM, Maris Nartiss wrote: Hello, at first - You can compile 32bit version on 64bit machine (if it's possible on Slackware).Second - once I took a look at code. It was not good, still I didn't managed to find the root cause. Fly mode is TCL/C hybrid. TCL part is here: http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/visualization/nviz/scripts (flythrough.tcl) Some support is located in nviz/src/ (togl_flythrough.c) Main rendering is done by OGSF lib/ogsf OGSF should be fine, problem is somewhere in nviz part. Probably in C/TCL interaction. Good luck. If You need some help with coding, feel free to as at grass-dev ML. We are short on resources and thys any help is wecomed. Maris. 2010/6/15, Ken Kwasnicki <[email protected]>: |
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
