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 )

I'll look at the time change. There should be an equivalent
patch to the AudioClip timer as below. However, it also looks
like fixing AudioClip this way prevents it from sounding.




Index: TimeSensor.java
===================================================================
RCS file:
/var/dev/WorkingGroups/vrml-java3d/src/cvs/x3d/src/com/sun/j3d/loaders/vrml97/im
pl/TimeSensor.java,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 TimeSensor.java
*** TimeSensor.java     1999/04/26 22:31:52     1.1.1.1
--- TimeSensor.java     1999/12/06 19:39:56
***************
*** 232,238 ****
                if(!isActive.value)
                    isActive.setValue(true);
                updateFraction(now);
!           } else if ((now > startTime.time) && (!isActive.value)) {
                isActive.setValue(true);
                updateFraction(now);
            } else if (isActive.value) {
--- 232,238 ----
                if(!isActive.value)
                    isActive.setValue(true);
                updateFraction(now);
!           } else if ((now > startTime.time) && (stopTime.time >
startTime.time) && (!isActive.value)) {
                isActive.setValue(true);
                updateFraction(now);
            } else if (isActive.value) {

I'll check that in with the same in AudioClip. ( at one time they used to
be the same base class... )

Index: AudioClip.java
===================================================================
RCS file:
/var/dev/WorkingGroups/vrml-java3d/src/cvs/x3d/src/com/sun/j3d/loaders/vrml97/im
pl/AudioClip.java,v
retrieving revision 1.2
diff -c -r1.2 AudioClip.java
*** AudioClip.java      1999/07/19 17:47:50     1.2
--- AudioClip.java      1999/12/06 19:42:55
***************
*** 196,202 ****
            if(!isActive.value) {
                setSoundEnable(true);
            }
!       } else if ((now > startTime.time) && (!isActive.value)) {
            setSoundEnable(true);
        }

--- 196,202 ----
            if(!isActive.value) {
                setSoundEnable(true);
            }
!       } else if ((now > startTime.time) && (stopTime.time > startTime.time) &&
(!isActive.value)) {
            setSoundEnable(true);
        }



Regards,
______________________________________
Rick Goldberg - Member Technical Staff
Sun Microsystems
Graphics Products - Computer Systems
901 San Antonio Road, MS UMPK27-302
Palo Alto, CA 94043-4900
650 786-0108 Direct
650 856-2114 Fax
[EMAIL PROTECTED]

> MIME-Version: 1.0
> Date: Fri, 3 Dec 1999 19:11:40 -0600
> From: giles <[EMAIL PROTECTED]>
> Subject: [JAVA3D] VRML97 Startup Animation Bug -- Fixed
> To: [EMAIL PROTECTED]
>
>
> Seems that VRML animations have been starting when the world loads for
> awhile.  I fixed it today.  Attached is the new TimeSensor.java  I don't
> think I broke anything else but I'm still testing.
>
> The bug was on line 235.  A setActive event was being generated when is
> wasn't susposed too.  I added the check for stopTime.time >
> startTime.time...  on load a timer activated by TouchSensors usually has a
> startTime = 0 and a stopTime = 0.  If anyone finds this breaks something
> else please tell me.
>
>     } else if ((now > startTime.time) && (stopTime.time > startTime.time)
> && (!isActive.value)) {
>                 isActive.setValue(true);
>                 updateFraction(now);
>
>
> Since I can't currently compile the whole distribution I cannot provide a
> full vrml97.jar(problems with VrmlTokenManager.java).  Maybe the Sun or
> Vrml folks will integrate this change into a later release.  If someone can
> currently compile the whole release then maybe they can help me.  Send me a
> note if ya can compile the whole thing(tried Windows, haven't tried unix
> yet)
>
> If you compile this file then you can take the distributed jar file and
> update the TimeSensor.class in it
>
> jar -uf vrml97.jar com/sun/j3d/loaders/vrml97/impl/TimeSensor.class
>
> -Alan Hudson

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to