On Monday, December 06, 1999 2:38 PM, Rick Goldberg
[SMTP:[EMAIL PROTECTED]] wrote:
> Hi Alan,
>
> there is a new compile script for windows running cygnus bash,
> and maybe someday automake and autoconf will make the build
> more portable, but in the meantime please check out
> http://www.web3d.org/cgi-bin/cvsweb.cgi/x3d/build.sh
> ( and in general for latest CVS information,
> http://www.web3d.org/TaskGroups/x3d/sun/cvs.html )
>
Thanks. Got it all to compile. And CVS worked great. I'm likely to be
fixing alot of things soon as I'm busily working on a VRML/Java3D project
this month.
Attached is Evagation.java(niffty name btw). It fixes a navigation bug
where after dragging the mouse for awhile in WALK mode it will stop moving.
This was caused by the sceneExaminer sensor being found when looking for
dragSensors. I changed the code to ignore the sceneExaminer when not in
EXAMINE mode. Should work when/if FLY mode is added.
if (sv != null) {
Enumeration e = sv.elements();
while(e.hasMoreElements()) {
vs = (VrmlSensor)(e.nextElement());
if (vs instanceof DragSensor && !mmb &&
(navMode.equals("EXAMINE") || vs != sceneExaminer)) { // giles -- fix nav
bug
browser.canvas.getPixelLocationInImagePlate(x,y,p1);
browser.canvas.getPixelLocationInImagePlate(x+dx,y+dy,p2);
p1.z = p2.z = eyeZoffset;
// this is the first drag segment,
// The sensor may need to inspect the stuffDragged path
// to get the transform above.
((DragSensor)vs).update(p1,p2,step,stuffDragged[i]);
System.out.println("Setting drag_sensor
true");
dragIsSensor = true;
curDragSensor = (DragSensor)vs;
} else {
curDragSensor = null;
}
}
}
Evagation.java