[x3d-public] x3d-public Digest, Vol 118, Issue 32

Albert Jan Wonnink awonnink at hotmail.com
Mon Jan 21 16:54:58 PST 2019


Thank you, Don, for the references provided.
Just to clarify my case once more, I would like to show this scene: https://youtu.be/vPLYxkTrxX8
[https://i.ytimg.com/vi/vPLYxkTrxX8/maxresdefault.jpg]<https://youtu.be/vPLYxkTrxX8>

X3D inline anchor prototype<https://youtu.be/vPLYxkTrxX8>
youtu.be

The behavior here is implemented without any client-side scripting, just with a little extended X3D that allows to specify a target of an anchor within the 3D scene.
The suggested workaround using viewpoints seems complicated for this kind of scenario, but I might be wrong about this.

Albert Jan Wonnink


________________________________
Van: x3d-public <x3d-public-bounces at web3d.org> namens x3d-public-request at web3d.org <x3d-public-request at web3d.org>
Verzonden: zaterdag 12 januari 2019 06:20
Aan: x3d-public at web3d.org
Onderwerp: x3d-public Digest, Vol 118, Issue 32

Send x3d-public mailing list submissions to
        x3d-public at web3d.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://web3d.org/mailman/listinfo/x3d-public_web3d.org
or, via email, send a message with subject or body 'help' to
        x3d-public-request at web3d.org

You can reach the person managing the list at
        x3d-public-owner at web3d.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of x3d-public digest..."


Today's Topics:

   1. Results from upgrading X3D JSON schema, replaced $ref
      occurences of character | with %7C (legal URI) (John Carlson)
   2. Anchor target within scene (Albert Jan Wonnink)
   3. Re: Anchor target within scene (Leonard Daly)


----------------------------------------------------------------------

Message: 1
Date: Fri, 11 Jan 2019 17:30:04 -0600
From: John Carlson <yottzumm at gmail.com>
To: X3D Graphics public mailing list <x3d-public at web3d.org>,  Don
        Brutzman <brutzman at nps.edu>
Subject: [x3d-public] Results from upgrading X3D JSON schema, replaced
        $ref occurences of character | with %7C (legal URI)
Message-ID: <5c3926fa.1c69fb81.d0e96.7b78 at mx.google.com>
Content-Type: text/plain; charset="utf-8"

Replacing | with %7C in minimal places (only anchor URIs), proceeding to production validation on?https://coderextreme.net/X3DJSONLD/src/main/html/validator.html?(everit-org not used, Ajv used)
https://github.com/coderextreme/x3dschema/blob/master/javaresults.txt?(everit-org results)
https://github.com/coderextreme/x3dschema/blob/master/results3.txt?(Ajv results, autogenerated schema)
Results between two may vary by schema used.
https://github.com/coderextreme/x3dschema/blob/master/results6.txt?(Ajv results, hand generated schema)
In an ideal world, everit-org and Ajv should match up. I don't see any bad effects of using %7C in Ajv, so I will go ahead permit this issue to be closed (if not already). The two Ajv results are done by running the hand-generated results against the autogenerated results and subtracting (both ways), so they should be very different.

Proceed with validating your JSON objects with validator.html or X3DJSONLD.  Autogenerated schemas should be present and functional.
NEW PROJECT:
https://github.com/coderextreme/json-schema preparations for using everit-org on massive scale (now just one file).  Modify arg value in build.xml and run ant.

DISCUSSION:
Should we use %7C in URI?s for JSON schema, or change X3DUOM to a non-escaped URI character? The autogenerator can go either way, it will just appear that the X3DUOM and X3D JSON schema are different if we choose to go with %7C in X3D JSON schema URIs (we can?t really use | in X3D JSON schema URIs).
Thanks,

John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190111/ba928f3b/attachment-0001.html>

------------------------------

Message: 2
Date: Sat, 12 Jan 2019 02:35:05 +0000
From: Albert Jan Wonnink <awonnink at hotmail.com>
To: "x3d-public at web3d.org" <x3d-public at web3d.org>
Subject: [x3d-public] Anchor target within scene
Message-ID:
        <AM0PR0402MB3809B7C5004F65312EE72856DA860 at AM0PR0402MB3809.eurprd04.prod.outlook.com>

Content-Type: text/plain; charset="iso-8859-1"

One of the most useful implementations of the anchor in our experimental XR browser was to be able to specify a (Transform) node within the 3D scene as a target,  where the new x3d content would be displayed.
(This mimics the functionality of the (I)frame in 2d)

It allowed us for example to define some objects as (3d) buttons, each with and anchor to a X3D file containing a model, and each having the same target specification, being a node at a suitable presentation location.
Each button would then load and display another object at that location (replacing the former content of only that node).
This doesn't seem possible by the current specification (except by JavaScript), or is it?

Regards,

Albert Jan wonnink

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190112/b1a33cd6/attachment-0001.html>

------------------------------

Message: 3
Date: Fri, 11 Jan 2019 21:19:38 -0800
From: Leonard Daly <Leonard.Daly at realism.com>
To: x3d-public at web3d.org
Subject: Re: [x3d-public] Anchor target within scene
Message-ID: <6f827ef9-8da9-18a1-cc4f-47512e65bbcc at realism.com>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"

Hi Albert,

The basic answer to your question (using JavaScript) is sort-of.
Whatever you do, it must use the X3D API (aka SAI) to send a
removeChildren then an addChildren event has to send parsed X3D nodes to
the Group/Transform node. This can be done in JavaScript or Java or any
other language where there is the SAI library supported by the 3D
browser. In the case of a web browser this is only JavaScript; provided
that the X3D display library running in the web page "knows" how to do that.

A non-X3D, but DOM way to do it would be to just use the DOM methods
appendChild and related ones (see
https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild). The
X3D run-time would need to declare a mutation observer to catch the
change to the DOM and appropriate handle the scene graph.

I am concerned about your statement relating to iframe. In DOM-land an
iframe defines a new name space with a barrier between the enclosing
frame and the content frame. It defines a rectangular region in the
display where the target has sole control (at least at the z-index where
it is declared). What you are describing is reading in content from an
external source and inserting the new content into the existing scene
graph in the same name scope. In your example, there is no exclusion
region in virtual space, nor a name scope barrier as you discuss it.

A closer analogy between HTML and X3D would be the iframe and Inline
nodes. Inline has the capability to load and unload remote content. You
can send the Inline node a new URL. It will unload any content it
loaded, then load the new content. It maintains a semi-permeable barrier
between the parent (content with the Inline) and children (content
loaded by Inline).

This mechanism requires JavaScript to process the button, but the messy
work of changing content is all handled by Inline by changing the url field.

Leonard Daly




> One of the most useful implementations of the anchor in our
> experimental XR browser was to be able to specify a (Transform) node
> within the 3D scene as a target,? where the new x3d content would be
> displayed.
> (This mimics the functionality of the (I)frame in 2d)
>
> It allowed us for example to define some objects as (3d) buttons, each
> with and anchor to a X3D file containing a model, and each having the
> same target specification, being a node at a suitable presentation
> location.
> Each button would then load and display another object at that
> location (replacing the former content of only that node).
> This doesn't seem possible by the current specification (except by
> JavaScript), or is it?
>
> Regards,
>
> Albert Jan wonnink
>
>
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org


--
*Leonard Daly*
3D Systems & Cloud Consultant
LA ACM SIGGRAPH Past Chair
President, Daly Realism - /Creating the Future/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190111/aee89d69/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
x3d-public mailing list
x3d-public at web3d.org
http://web3d.org/mailman/listinfo/x3d-public_web3d.org


------------------------------

End of x3d-public Digest, Vol 118, Issue 32
*******************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190122/51a84a06/attachment-0001.html>


More information about the x3d-public mailing list