Comments (4)
It seems you have a .wrl file with some nodes and a node of type Panel, which is probably a PROTO, and this node has a field aspectRatio
.
Due to the nature of the VRML encoding you use, it is not possible, nor to skip this field. This feature is first possible with X3D XML encoding. You should remove this field(s), or comment out, then your files should be possible to be loaded.
from x_ite.
Thanks for your response. So you are saying is it not possible to just warn on unknown fields and continue the parse?
This is a snippet of the VRML:
DEF SafeAreaFrame Switch
{
choice
[
DEF FrameGroup Group
{
children
[
DEF FP1 Panel
{
source HTMLText
{
body ""
padding []
shadow FALSE
shadowTransparency 0
shadowSize 8
shadowOffset 3
shadowColor 0 0 0
}
top "0"
left "0"
right ""
bottom ""
width "1"
height "1"
offsetLeft ""
offsetTop ""
aspectRatio 0
sticky FALSE
enabled FALSE
backgroundTransparency 1
backgroundColor 1 1 1
borderSize 1
borderRadius "0"
borderColor 1 0 0
}
If necessary I could preprocess the file to remove the offending line but I wasn't sure if this was something in the VRML standard that you might want to support?
from x_ite.
On closer inspection there is a reference further up in the WRL to:
["urn:inet:parallelgraphics.com:cortona:Panel" "http://www.parallelgraphics.com/vrml/proto/Cortona/extensions.wrl#Panel"]
I can see this is failing to load as part of the parse (CORS issues) which I assume is leading to the error shown above.
Thanks for your speedy response - looks like I need to fix this elsewhere.
from x_ite.
Think we can have it with next version, ie. unknown nodes and fields will be ignored during parse, but there will be at least a warning, that there was something unknown.
from x_ite.
Related Issues (20)
- Issue with model in X3D archives HOT 2
- Can't use x_ite from inside a Firefox extension; can ResizeSensor.js be pruned? HOT 9
- Scientific data visualization HOT 6
- Weird shader effects, missing images, possibly due to reconfiguring Firewall, hostname, DNS servers HOT 1
- Custom elements issue with x_ite.mjs in Microsoft Edge? HOT 3
- npx sunrize [files] HOT 5
- X_ITE React implementation questions HOT 5
- Despite no errors on the console, X_ITE shows no graphics HOT 10
- Use RENDERER on Firefox HOT 1
- ExternProtoDeclare not downloading? X3D checks in X3D-Edit. HOT 3
- Mono Sound plays only over left speaker HOT 3
- How to start X_ITE in a browser window in fullscreen mode HOT 3
- "Better" webpack.config.js, for Git Bash under Windows 10 HOT 5
- Replace webpack "string-replace-webpack-plugin" or provide dependency overrides in package.json HOT 2
- Adding a new node HOT 13
- Filling up an empty scene with Javascript HOT 8
- IndexedFaceSet solid false and alpha HOT 1
- EnvironmentLight has no effect (noob question number 3) HOT 3
- Unknown node type 'ProtoDeclare' 'ProtoBody' 'InstancedShape' HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from x_ite.