|
[fixed] When Import any ps/eps file,Output error log.
|
|
12-07-2016, 04:50 PM
(This post was last modified: 12-09-2016 11:49 AM by micheus.)
Post: #4
|
||||
|
||||
RE: When Import any ps/eps file,Output error log.
(12-06-2016 09:16 AM)tkbd Wrote: I tried test by several Illustrator 8 EPS and Postscript files.Hi tkbd, I was taking a look on this to see if I'm able to do something about (still, not sure I can). Checking the wpc_ps.erl code and some specifications I noticed two things related to your sample: 1) The %%BoundingBox tag is used for nothing by Wings3D. It calls internal bbox function after process the .ps file in order to get that information. 2) The %%Pages is absent in the sample file; Specification: "The file should be a single page image (in DSC terms, the %%Pages comment must have a value of 0 or 1)." Wings3D code note for after_end_setup_ps/1: % skip until after %%Page: 1 1 line, as we currently use nothing before that, % then convert rest of binary to list of characters as it's never found, that results in a null list ([]) which is the initial reason for the crash. So, it seems like the exporter ins't creating a proper .ps file. Anyway, maybe we need a better feedback to the user, instead of a single crash.
|
||||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)




@MicheusVieira
MicheusVieira
Micheuss
micheus4wings3d