[X3D-Public] Prototype

John Richardson richards at spawar.navy.mil
Tue Oct 7 11:53:37 PDT 2014


Hello,

Is this a loss of usability from the development perspective?

John F. Richardson

-----Original Message-----
From: X3D-Public [mailto:x3d-public-bounces at web3d.org] On Behalf Of Andreas Plesch
Sent: Tuesday, October 07, 2014 7:03 AM
To: Daniel Vera
Cc: x3d-public at web3d.org
Subject: Re: [X3D-Public] Prototype

Hi Daniel,

there is the vague hint on http://www.x3dom.org/?page_id=158 to use DOM/HTML techniques, and there is a discussion on the x3dom developer mailing list suggesting to use the component system:

http://sourceforge.net/p/x3dom/mailman/message/30219569/

https://x3dom.readthedocs.org/en/latest/components/index.html#extending-x3dom

This talks about to how to define your own nodes, essentially in parallel to how x3dom.js defines nodes. Unfortunately, the example is a bit too basic and one would need to look at x3dom source to understand better how to do that. See for example https://github.com/x3dom/x3dom/blob/master/src/nodes/Geometry3D/Box.js .

Another basic idea is to create and manipulate nodes procedurally, not declaratively. The scene API helps with that:
http://doc.x3dom.org/author/index.html. So one could image a javascript function which inserts a series of nodes into the DOM based on provided parameters. This approach may be more accessible and there some basic examples on http://examples.x3dom.org/simpleExamples.html which provide pointers in that direction.

Hope this helps,

Andreas



On Tue, Oct 7, 2014 at 3:42 AM, Daniel Vera <d.a.vera at warwick.ac.uk> wrote:

> Hi Andreas,
>
> my impression is that this not a priority since there may be other 
> ways to achieve similar functionality
>
> Do you have anything specific in mind? Is there anything that can be 
> used currently to achieve functionalities similar to PROTO/EXTERNPROTO 
> in X3DOM?
>
> Best regards,
>
> --
>
> Daniel Vera
>
>
>
>  Andreas Plesch <andreasplesch at gmail.com>
>  05 October 2014 22:03
>
> Hi Joe,
>
> x3dom does not support proto nodes, see 
> http://www.x3dom.org/?page_id=158
>
> You could ask on the x3dom developer mailing list about plans but my 
> impression is that this not a priority since there may be other ways 
> to achieve similar functionality.
>
> Andreas
> _______________________________________________
> X3D-Public mailing list
> X3D-Public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>
>


--
Andreas Plesch
39 Barbara Rd.
Waltham, MA 02453




More information about the X3D-Public mailing list