[X3D-Public] Prototype

Andreas Plesch andreasplesch at gmail.com
Tue Oct 7 07:03:27 PDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20141007/08e12393/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compose-unknown-contact.jpg
Type: image/jpeg
Size: 770 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20141007/08e12393/attachment.jpg>


More information about the X3D-Public mailing list