Giter VIP home page Giter VIP logo

Comments (6)

jamesleesaunders avatar jamesleesaunders commented on July 22, 2024

Ahh, this is only an issue when I have profile=Interactive. If I go to Full it does not error about TEXT node type.
Should this happen?
(I switches to Interactive to stop the Tesxture3d.js asm warnings)

from x_ite.

create3000 avatar create3000 commented on July 22, 2024

Because it is now possible and because the Text component is a littler larger I made an external component of it and it is only loaded on demand now.

This means for you the Interactive profile does not include the Text component and therefor you should add it manually if needed. X3D nodes are grouped in components and components are grouped in profiles. To add a component to your X3D world use the following example code.

<X3D profile='Interactive' version='4.0'>
  <head>
    <component name='Text' level='1'/>
  </head>
...

Specification with list of components:
https://www.web3d.org/documents/specifications/19775-1/V4.0/Part01/Architecture.html

You should use a profile you like, and add the missing components from which you use nodes. There can be as many component elements as you need.

from x_ite.

create3000 avatar create3000 commented on July 22, 2024

I now could get rid of the Texture3D.js asm warnings. But I really want to encourage you to use the right component/profile statements.

from x_ite.

jamesleesaunders avatar jamesleesaunders commented on July 22, 2024

Brill Thanks again!
I have added head + component = Text and this appears to be all good. 😄

I see now from the Interactive profile that Text is not listed in the Components and levels section:
https://www.web3d.org/documents/specifications/19775-1/V4.0/Part01/interactive.html
So I now understand why you removed it.

Sorry I have raised a few bugs recently - It feels like I am turning into your #1 tester! .. I have learn lots along the way also!

I have also make sure adding this head + component works with x3dom as I am keen to keep d3-x3d agnostic and work on both x3dom and x_ite).

from x_ite.

create3000 avatar create3000 commented on July 22, 2024

Don't bother to submit bug reports. Every issue is welcome.

Component/profile statement are integral part of X3D and therefor well specified.

Have a look at the Web3D.org examples archive, all examples have component/profile statements, and can be tests either in X3DOM or in X_ITE.

https://www.web3d.org/x3d/content/examples/Basic/

from x_ite.

andreasplesch avatar andreasplesch commented on July 22, 2024

Brill Thanks again! I have added head + component = Text and this appears to be all good. smile

I see now from the Interactive profile that Text is not listed in the Components and levels section: https://www.web3d.org/documents/specifications/19775-1/V4.0/Part01/interactive.html So I now understand why you removed it.

Sorry I have raised a few bugs recently - It feels like I am turning into your #1 tester! .. I have learn lots along the way also!

I have also make sure adding this head + component works with x3dom as I am keen to keep d3-x3d agnostic and work on both x3dom and x_ite).

x3dom ignores profiles and component statements to keep things simple and avoid traffic.

from x_ite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.