<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="Helvetica, Arial, sans-serif">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. <br>
<br>
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.<br>
<br>
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.<br>
<br>
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.<br>
so, i changed this line [320]:<br>
return ((float)tv.tv_sec + ((float)tv.tv_usec / 1000000.0));<br>
to:<br>
return ((double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0));<br>
<br>
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.<br>
<br>
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.<br>
<br>
thanks!<br>
ken<br>
<br>
</font><br>
On 06/15/2010 12:53 PM, Maris Nartiss wrote:
<blockquote
cite="mid:AANLkTimNH_Y_Yy71zl4ySib-6k6-C_0VeVvv_o86zgyY@mail.gmail.com"
type="cite">
<pre wrap="">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:
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/visualization/nviz/scripts">http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/visualization/nviz/scripts</a>
(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 <a class="moz-txt-link-rfc2396E" href="mailto:ken.kwasnicki@gmail.com"><ken.kwasnicki@gmail.com></a>:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Maris,
Thanks for the reply! Too bad. I guess I'll have to install on a 32bit
system. For what it's worth my system is Slackware 13.0 64bit and also
Nvidia driver, so nothing really new to add to the bug report other than the
variance in linux distribution.
Any speculation where this bug might occur in the nviz code? Just in case
I'm feeling ambitious enough to take a crack at debugging it.
Thanks,
Ken
On 06/15/2010 12:14 AM, Maris Nartiss wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
Known issue, currently no fix.
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/grass/ticket/46">http://trac.osgeo.org/grass/ticket/46</a>
Maris.
2010/6/14, Kwas <a class="moz-txt-link-rfc2396E" href="mailto:ken.kwasnicki@gmail.com"><ken.kwasnicki@gmail.com></a>:
</pre>
<blockquote type="cite">
<pre wrap="">
Helo,
I've used NVIZ in the past and not had this problem but after rebuilding
Grass/Nviz for a new system (Slackware 13 64bit) I now find when I try
to
"fly" to move the landscape it keeps resetting back to its originall
position after a few frames. ie: it will start to move in the
direction
of my mouse motion but then keeps jumping back so that I am unable to
zoom
in or position the view where I want.
Has anybody seen this problem before or know what I should do to fix it?
Appreciate any assistance.
Thanks,
Ken
--
View this message in context:
<a class="moz-txt-link-freetext" href="http://osgeo-org.1803224.n2.nabble.com/NVIZ-help-fly-keeps-resetting-jumping-back-to-center-tp5178852p5178852.html">http://osgeo-org.1803224.n2.nabble.com/NVIZ-help-fly-keeps-resetting-jumping-back-to-center-tp5178852p5178852.html</a>
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
</body>
</html>