Giter Club home page Giter Club logo

Comments (8)

splace avatar splace commented on June 7, 2024

i took a look (just another user) and checking the console output....

Couldn't load URL 'http://lhodges.users37.interdns.co.uk/me/xcard2/musician.wrl': 
********************************************************************************
Parser error at line 40:7
in 'http://lhodges.users37.interdns.co.uk/me/xcard2/musician.wrl'


	level [
      ^
Unknown field 'level' in class 'LOD'.
********************************************************************************
x_ite.min.js:20:18440
Couldn't load URL 'http://lhodges.users37.interdns.co.uk/me/xcard2/ground.wrl': 
********************************************************************************
Parser error at line 11:7
in 'http://lhodges.users37.interdns.co.uk/me/xcard2/ground.wrl'


	level [
      ^
Unknown field 'level' in class 'LOD'.
********************************************************************************

seems the files aren't loaded because the 'level' field of LOD isn't recognised.

this has to be the result of the fields' name being changed, to 'children' between V2 (vrml) and V3 (x3d), but 'level' should be supported in a vrml2 file, so it is a bug.

i would guess you could cure, now, by changing the field name. (and ideally change the header in the files where the name was changed to have a header '#X3D V3.0 utf8')

Alternatively;

because LOD is an optimisation and given the advances in computer rendering, any vrml2 world isn't going to noticeably benefit, that is, the world will almost certainly render fine with just the highest level of the Level Of Detail's, so they could just be removed. (replaced with just what is inside the first level.)

from x_ite.

create3000 avatar create3000 commented on June 7, 2024

Your file begins with the following header statement:
#VRML V2.0 utf8 musician.wrl V0.1
There is a 'tab' character after 'utf8' which is not recognized by the parser, change it to a 'space' character and it will work. I have also changed the parser, thus it will work in further versions of X_ITE.

You can get additional debug information when you go over an empty space of the web page and select 'Inspect Element' from the menu, then click on 'Console'. The Console shows additional debug information.

from x_ite.

create3000 avatar create3000 commented on June 7, 2024

Note: you have used LOD's without a range field, ie. it depends on the performance of the browser which level is displayed. Reading the spec:

An empty range field is an exception to this rule. This case is a hint to the browser that it may choose a level automatically to maintain a constant display rate.

from x_ite.

lawriehodges avatar lawriehodges commented on June 7, 2024

Thank you both. I have looked your suggestions and acted on some of them. I have the model working reasonably in Chrome. Difficulties in testing arise from caching, which acts confusingly by loading old file versions when a new version has been provided. In Chrome I was able to get round this by loading a New Incognito Window . Having cleared the cache and allowed music to auto start it now works also in Firefox. The limitations are now in my model, rather than in the interactions with servers and browsers. It is twenty years since I wrote this and I have forgotten most of the code and the logic behind it. I have only come back to it when trying to repair the holes in my old, outdated website.

from x_ite.

splace avatar splace commented on June 7, 2024

Difficulties in testing arise from caching, which acts confusingly by loading old file versions when a new version has been provided.

page refresh; keyboard shortcut "F5" or "Ctrl+F5" to bypass cache.

from x_ite.

lawriehodges avatar lawriehodges commented on June 7, 2024

Thanks for that.
In Chrome, I found: Settings | Advanced | Privacy and security | Clear browsing data, Check Cached images and files | Clear data

Well buried!

In Firefox: in top right menu: Options | Privacy and Security | Cookies and Site Data | Clear Data. Check Cached Web Content and uncheck Cookies and Site Data | Clear.

from x_ite.

create3000 avatar create3000 commented on June 7, 2024

There is an 'Empty Cache' extension for Firefox https://addons.mozilla.org/en-US/firefox/addon/empty-cache-button/ maybe there is something similar for Chrome.

from x_ite.

lawriehodges avatar lawriehodges commented on June 7, 2024

Thank you. I have added it. And, there IS something similar for Chrome:
https://chrome.google.com/webstore/detail/clear-cache-shortcut/jnajhcakejgchhbjlchkfmdidgjefleg/related?hl=en

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.