Adding colors to wpc_ps - Printable Version +- Wings 3D Development Forum (https://www.wings3d.com/forum) +-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1) +--- Forum: Design & Development (https://www.wings3d.com/forum/forumdisplay.php?fid=6) +--- Thread: Adding colors to wpc_ps (/showthread.php?tid=3102) Pages:
1
2
|
Adding colors to wpc_ps - edb - 04-21-2023 Hello, I've added color support to wpc_ps so it can have some colors imported like the svg importer, my changes are at the branch: eb/ps-additions. I'll make a pull request after some more testing. I haven't made huge changes as postscript as a file format seems very complicated. Also an installable beam file: wpc_ps.tar I've tried to find some files to help with testing, I saw the thread but the google drive link seem to be gone: http://www.wings3d.com/forum/showthread.php?tid=2279&page=2 RE: Adding colors to wpc_ps - micheus - 04-21-2023 edb Wrote:I've tried to find some files to help with testing, I saw the thread but the google drive link seem to be gone: http://www.wings3d.com/forum/showthread....279&page=2Yeah, I just saw that. But, If I remember those files didn't use any color for the objects. The ones you see in that thread I assigned inside Wings3D for better visualize the source differences. As them were provided to me by tkbd I hope he can provide some with colours for your tests. RE: Adding colors to wpc_ps - edb - 04-26-2023 Thanks micheus for letting me know. I'll try testing with the software I have for now. I've added a small fix: wpc_ps.tar RE: Adding colors to wpc_ps - tkbd - 04-26-2023 I'm sorry. I tried the sample files in my HDD,but I couldn't find it because too old date. Unfortunately, I can't use GoogleDrive in my current environment. but,I can send you a test file if needed. You can also tell me your email address through direct message of the Wings3D forum. FYI: I tried to read PS/EPS files that created by various vector graphic Editors. I test MacOSX mojave and Wings3D 2.2.9 and installed your latest wpc_ps.tar Perhaps it treat too strigt to the data that SVG "creator" directive. So,many EPS/PS test files could not be read. These could be read by the Wings3D built-in EPS/PS importer before your version installation. I'll post some console output and the beginning of the file. Some PS/EPS files output error(It is no crash but file loading failure) The example in Wings3D console Code: {179,164}, It generally knowns that a PostScript file create by Print dialog with printer driver too. They append something string to "%%Creator:" directive of the PostScript file. Some printers or applications add string with unknown character encoding,then mojibake happen In the case,Wings3D refuse it that even correctly PostScript data part. In this case,PS format convert from PDF file... Wings3D console (for example) Code: wpc_ps: EPS Creator: "(\343\203\225\343\202\232\343\203\254\343\203\222\343\202\231\343\203\245\343\203\274: CGPDFTOPS CUPS FILTER)" Oct:343/203/225 -> Hex:E3 83 95 -> UTF-8:E38395 -> フ The octal data "\343\203\225\343\202\232\343\203\254\343\203\222\343\202\231\343\203\245\343\203\274" means the UTF-8 code(hex) as "E38395,E3829A,E383AC,E38392,E38299,E383A5,E383BC" ,and it stands for the string "フ゜レヒ゛ュー" it is a built in viewer application of MacOS PostScript file created by Printer driver Code: %!PS-Adobe-3.0 FYI:The head data of some PS/EPS files PS file created by Inkscape Code: %!PS-Adobe-3.0 PS file created by Illustrator Code: %!PS-Adobe-3.1 EPS file create by Affinity Code: %!PS-Adobe-3.0 EPSF-3.0 EPS file create by VectorStyler https://www.vectorstyler.com/ Code: %!PS-Adobe-3.1 EPSF-3.0 PS file create by VectorStyler Code: %!PS-Adobe-3.1 The eps files by Libreoffice and scribus too. Anyway, I will test other condifion If I find out anything, I may report it here. RE: Adding colors to wpc_ps - edb - 04-27-2023 Hello tkbd, Thanks for the information. I'll send a direct message soon. Another option is pastebin could be used to paste the ps/eps source. For the testing I'm going to limit the scope for the creators that was supported previously:
I don't have Illustrator so test files of shapes made in it will help a lot. (test files for the other software is helpful too!) RE: Adding colors to wpc_ps - tkbd - 04-30-2023 OK, I send data to you I also attached some useful test data and some issue reportss. edb Wrote:I don't have Illustrator so test files of shapes made in it will help a lot. (test files for the other software is helpful too!) --------- tkbd RE: Adding colors to wpc_ps - edb - 05-06-2023 Thanks tkbd, I received the test files. RE: Adding colors to wpc_ps - edb - 05-10-2023 Hello tkbd, I've fixed a few issues so far with aics5.eps and illustrator_ps2_error.ps, there's a few more fixes to do and I'll be posting a new build. RE: Adding colors to wpc_ps - edb - 05-13-2023 New wpc_ps build with many fixes, the original test files seem to work. wpc_ps.tar RE: Adding colors to wpc_ps - edb - 05-14-2023 New wpc_ps build now with affinity support, and the option of using a custom bind map file to load EPSs from other sources: wpc_ps.tar The vectorstyler EPS test file also now imports as a "generic" EPS, since it has an empty creator string it has to be treated as a generic EPS. |