This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > December 2004 > pop() and shift() in vrmlScript





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author pop() and shift() in vrmlScript
Peter

2004-12-22, 7:15 am

Hi !

I had similar results trying tu use pop() and shift()in vrml. It
might be not supported in some ecma/java/vrml -Script (reduced)
versions of some viewers, but it also could be a matter of using the
wrong constructors (eg.see the Blaxxun dev. documentation).

I would apreciate if somebody could confirm that point...

Peter
Braden McDaniel

2004-12-22, 12:16 pm

On Wed, 2004-12-22 at 00:39 -0800, Peter wrote:

> I had similar results trying tu use pop() and shift()in vrml. It
> might be not supported in some ecma/java/vrml -Script (reduced)
> versions of some viewers, but it also could be a matter of using the
> wrong constructors (eg.see the Blaxxun dev. documentation).
>
> I would apreciate if somebody could confirm that point...


You're right; basically, Contact doesn't have an ECMAScript
implementation. As I understand it, it has an "evolved" VRMLScript
implementation.

VRMLScript is not JavaScript or ECMAScript. It is a severely dumbed-down
version of JavaScript that originally appeared in the very first
versions of Cosmo Player (the 1.x betas that predated the Live3D
merger). SGI made the parser for it public. But it was abandoned for
Cosmo Player 2.0, which used a modified version of SpiderMonkey (the
JavaScript reference implementation from Netscape) to support actual
JavaScript (and hence ECMAScript, which the VRML97 spec had evolved to
support by the time Cosmo Player 2.0 was released).

Contact has added support for some JavaScript features beyond what
appeared in the original VRMLScript spec; however, it's still a far cry
from being an ECMAScript implementation.

--
Braden McDaniel e-mail: <braden@endoframe.com>
<http://endoframe.com> Jabber: <braden@jabber.org>

Braden McDaniel

2004-12-25, 12:14 pm

On Wed, 2004-12-22 at 00:39 -0800, Peter wrote:

> I had similar results trying tu use pop() and shift()in vrml. It
> might be not supported in some ecma/java/vrml -Script (reduced)
> versions of some viewers, but it also could be a matter of using the
> wrong constructors (eg.see the Blaxxun dev. documentation).
>
> I would apreciate if somebody could confirm that point...


You're right; basically, Contact doesn't have an ECMAScript
implementation. As I understand it, it has an "evolved" VRMLScript
implementation.

VRMLScript is not JavaScript or ECMAScript. It is a severely dumbed-down
version of JavaScript that originally appeared in the very first
versions of Cosmo Player (the 1.x betas that predated the Live3D
merger). SGI made the parser for it public. But it was abandoned for
Cosmo Player 2.0, which used a modified version of SpiderMonkey (the
JavaScript reference implementation from Netscape) to support actual
JavaScript (and hence ECMAScript, which the VRML97 spec had evolved to
support by the time Cosmo Player 2.0 was released).

Contact has added support for some JavaScript features beyond what
appeared in the original VRMLScript spec; however, it's still a far cry
from being an ECMAScript implementation.

--
Braden McDaniel e-mail: <braden@endoframe.com>
<http://endoframe.com> Jabber: <braden@jabber.org>

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews