Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ComponentEditor] Display a X3D file in the component editor #99

Open
tpaviot opened this issue Sep 22, 2013 · 4 comments
Open

[ComponentEditor] Display a X3D file in the component editor #99

tpaviot opened this issue Sep 22, 2013 · 4 comments

Comments

@tpaviot
Copy link
Contributor

tpaviot commented Sep 22, 2013

How is it possible to display an X3D file streamed to a string ?

@yjung
Copy link

yjung commented Sep 22, 2013

I'd rather use an Inline node (cp. http://www.web3d.org/files/specifications/19775-1/V3.2/Part01/components/networking.html#Inline): the X3D file can be seen as a resource on a server and via the Inline node, this resource is streamed and integrated by setting its 'url' field to the resource path.

@yjung
Copy link

yjung commented Sep 22, 2013

Another, but not so nice, possibility is to use everything below the scene node of the streamed file as innerHTML of an already present group node.

@tpaviot
Copy link
Contributor Author

tpaviot commented Sep 22, 2013

@yjung is there any example about inline nodes somewhere ?

@yjung
Copy link

yjung commented Sep 22, 2013

Yes, in the editors' index.html files it is used for loading the coordinate frame. But be aware of cross-origin issues when loading from external resources from other domains. See here for more information: http://x3dom.org/docs/dev/notes/cors.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants