VRML Import Error #105398
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#105398
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.09
Blender Version
Broken: version: 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash:
9be62e85b727
Worked: (newest version of Blender that worked as expected)
Addon Information
Name: Web3D X3D/VRML2 format (2, 3, 1)
Author: Campbell Barton, Bart, Bastien Montagne, Seva Alekseyev
Short description of error
[Python:Traceback (most recent call last) error occurs when trying to import any .wrl file. This error persists on multiple versions of Blender as well (4.1.1,4.2)]
Exact steps for others to reproduce the error
[FIRST TIME: File> Import > X3D Extensible 3D> Click Operator Presets/Restore Operator Defaults >Select File >Import
SUBSEQUENT TIMES: File> Import > X3D Extensible 3D> Select File > Import ]
Could you post the exact error message as well?
I tested the import with the attached file and it works on my end. How about you? If that works then probably your .wrl is corrupted, could you attach it as well?
Btw the X3D Addon got moved to the extension platform for blender 4.2+, you may create a full issue ticket there as well: https://projects.blender.org/extensions/io_scene_x3d/issues
The exact error message is attatched. It's every .wrl file I have, and files that used to work now give that error. No saving conditions got changed on the .wrl files as well.
Seems essentially the same as #101604.
Could you do following:
Sorry, what you attached is not a .wrl file. Could you upload a valid file?
How did you create it? Assuming from the current file ending it'*s from soildwork?
It was a part created in Solidworks. Here is that correct file.
Cedric Steiert referenced this issue from extensions/io_scene_x3d2024-07-19 20:24:53 +02:00
@G-10 The VRML file you provided does not respect the standard, see here http://graphcomp.com/info/specs/sgi/vrml/spec/part1/nodesRef.html#IndexedFaceSet :
The color property is probably not necessary since it's the same color for all faces and it's the same value as the one provided in the Material node.
To fix this kind of broken files, we could either ignore that broken attribute, which would be fine in this case, or build a "per face" list by recycling the provided incomplet list, resulting in possibly weird results. I'd prefer the first solution. I removed the color attribute form the IndexedFaceSet and it loaded correctly.
Just for the record, I just patched the x3d/VRML add-on on my side because it couldn't import my TopSolid V6 VRML files correctly, especially keeping vertices normals. I have one strange behavior left but could provide a patch. Since it solve multiple problems, can I post it in a single patch or should I break it into several small ones ?
@Hombre57
Fork https://projects.blender.org/extensions/io_scene_x3d and create a PR there, it probably would be best to create multiple PRs for each problem (if those are not directly related).
Tbh yes, ignoring would be cleaner according to the standard definition you posted. However those "broken" files exist and i see no harm in processing those values (like in my PR).