VRML import issues #45195

Closed
opened 2015-06-25 17:33:54 +02:00 by Marek · 8 comments

System Information
OS X 10.9 on MacBook Pro 13 (Intel Iris graphics)

Blender Version
Broken: 2.74 (2015-Mar-31)

Problems importing VRML files generated by the popular chemistry tool JMol

Exact steps for others to reproduce the error

First problem:

1.) Start with the default empty project
2.) Try to import test.wrl.
3.) Obtain no error message, but also no imported objects. Viewing the file with e.g. "view3dscene" gives the correct result and no warnings.

**System Information** OS X 10.9 on MacBook Pro 13 (Intel Iris graphics) **Blender Version** Broken: 2.74 (2015-Mar-31) Problems importing VRML files generated by the popular chemistry tool JMol **Exact steps for others to reproduce the error** First problem: 1.) Start with the default empty project 2.) Try to import [test.wrl](https://archive.blender.org/developer/F197348/test.wrl). 3.) Obtain no error message, but also no imported objects. Viewing the file with e.g. "view3dscene" gives the correct result and no warnings.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @mpik

Added subscriber: @mpik
Aaron Carlisle self-assigned this 2015-06-25 18:40:44 +02:00
Aaron Carlisle removed their assignment 2015-06-25 18:41:51 +02:00
Member

Added subscriber: @Blendify

Added subscriber: @Blendify

Added subscriber: @mont29

Added subscriber: @mont29

First of all, please do not report several issue in a single thread, we want one report per issue (much easier to handle).

Split this one in two (#45203).

First of all, please do not report several issue in a single thread, we want one report per issue (much easier to handle). Split this one in two (#45203).
Bastien Montagne changed title from VRML and X3D import issues to VRML import issues 2015-06-26 16:17:26 +02:00
Bastien Montagne self-assigned this 2015-06-26 16:17:26 +02:00

This issue was referenced by 7051ad3028

This issue was referenced by 7051ad3028c3ee46decd8d58e95f03c97e7c3cb1

Issue is with long lines like this one:

 Transform{translation 1.262 1.293 .184 children DEF _0 Shape{geometry Sphere{radius 0.476} appearance  DEF _1 Appearance{material Material{diffuseColor .621 .313 .711 transparency 0}}}}

Current code would end up reading whole translation 1.262 1.293 .184 children DEF _0 Shape at once and miss the new child node defined at the end.

For now, solution is to separate each property (field in vrml slang) on a single line during our pre-process step. That way, fields implying a new node or more (like children one) are correctly handled, even if they do not explicitly have their - [ ] braces (this is valid vrml syntax, if MFNode field has a single node, - [ ] are not mandatory…).

Issue is with long lines like this one: ``` Transform{translation 1.262 1.293 .184 children DEF _0 Shape{geometry Sphere{radius 0.476} appearance DEF _1 Appearance{material Material{diffuseColor .621 .313 .711 transparency 0}}}} ``` Current code would end up reading whole `translation 1.262 1.293 .184 children DEF _0 Shape` at once and miss the new child node defined at the end. For now, solution is to separate each property (field in vrml slang) on a single line during our pre-process step. That way, fields implying a new node or more (like `children` one) are correctly handled, even if they do not explicitly have their `- [ ]` braces (this is valid vrml syntax, if `MFNode` field has a single node, `- [ ]` are not mandatory…).

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#45195
No description provided.