Export svg for blender is incorrect

Bug #636564 reported by angelwar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

I use frequently inkscape and blender, but in the inkscape there is a problem. Inkscape not export svg full compatible for blender. if i save a file in svg format from the illustrator blender import this file in correct mode, but i save the file from inkscape blender not import in correct mode this file. Is not possible two software open source not communicate perfectly. Please resolve this bug. Thanks.

Tags: svg
Revision history for this message
su_v (suv-lp) wrote :

My tests with importing SVG into Blender 2.49b on OS X 10.5.8 showed that the issue is not on Inkscape's side, but that - similar to other programs - Blender's support for SVG is limited: it does not like Inkscape's optimized path data (default since 0.47). SVG files created with 'Optimzed path data' turned off imported without major issues in Blender.

Proposing to close as 'Invalid' in Inkscape -> please report the issue with Blender.

Links:
Optimized path data:
<http://wiki.inkscape.org/wiki/index.php/Release_notes/0.47#Optimized_path_data>
Discussion in (German) Inkscape User forum:
<http://www.inkscape-forum.de/discussion/2466/geloest-inkscape-svg-wird-in-blender-importiert-nur-teilweise-angezeigt/#Item_0>
Similar issues in other applications:
Bug #458388 “Rendering errors in QtSvgRenderer due to changed SVG output in Inkscape 0.47”
<https://bugs.launchpad.net/inkscape/+bug/458388>
Issues with SVG preview on Kubuntu:
<http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/33719>

tags: added: svg
Revision history for this message
su_v (suv-lp) wrote :

Workaround confirmed by other Blender users [1]:

Change 'Inkscape Preferences > SVG output > Path data' to
[ ] Allow relative coordinates
[x] Force repeat commands

This takes effect for new files. For existing files, Inkscape has to be forced to rewrite the path data:
- select all objects
- move them for example 10px in x-direction and back
  (or a nudge up and back down using the cursor keys)

[1] <http://www.inkscape-forum.de/discussion/2466/geloest-inkscape-svg-wird-in-blender-importiert-nur-teilweise-angezeigt/>

Revision history for this message
su_v (suv-lp) wrote :

If import into Blender still produces unexpected results after changing Inkscape's preferences for SVG Output (screenshot), please attach a sample SVG file and the Blender file with the imported SVG drawing.

Changed in inkscape:
status: New → Incomplete
Changed in inkscape:
status: Incomplete → Invalid
status: Invalid → Incomplete
Revision history for this message
su_v (suv-lp) wrote :

Closing as 'Invalid' due to lack of feedback.

This issue needs to be solved in Blender's import routines (the path data in Inkscape's SVG files is valid and according to the SVG specification). For those using older blender versions, the workaround is described in the comments - current blender (tested with 2.58 on OS X) does appear to correctly handle Inkscape's optimized path data.

Please add a comment and reopen the report if you think it was closed in error.

Changed in inkscape:
status: Incomplete → Invalid
Revision history for this message
Guillermo Espertino (Gez) (gespertino-gmail) wrote :

I'd just like to add, just for the record, that all the problems regarding SVG import in Blender were caused by its faulty importer in all versions prior 2.5. That importer was so limited that it wasn't included in the first 2.5x development versions.
Fortunately that has changed recently: Developer Sergey Sharybin (Nazgul) created a new importer from scratch that works very well and no workarounds are needed anymore.
It's worth to mention that Blender 2.58 is the current stable release and all users of previous versions are encouraged to switch.

...So yes, this report is invalid :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.