Chopisland Posted May 28, 2022 Posted May 28, 2022 Hello, does anyone have any idea what the problem might be if i export a figure with a diameter of, say, 20mm, but in the 3D program it is approx. 600mm in size? I don't have this problem with inkscape. if it is created as 20mm there, it is also imported as 20mm in the 3D program. Thank you in advance Quote
GarryP Posted May 28, 2022 Posted May 28, 2022 Welcome to the forums @Chopisland I’m guessing that this might have something to do with DPI, or similar, but it’s difficult to tell. If you can supply the exact dimensions in each case then someone can do the relevant maths and try and figure it out. If you can also supply the original Affinity file and your exported image then that would probably help more (but you don't need to do that if it's private). Quote
R C-R Posted May 28, 2022 Posted May 28, 2022 6 hours ago, Chopisland said: does anyone have any idea what the problem might be if i export a figure with a diameter of, say, 20mm, but in the 3D program it is approx. 600mm in size? What file format are you exporting to? What 3D app are you using? What file type(s) does it accept for imports, & what kind of object does a 2D file like you can export from Affinity import as? Is it for 'painting' a surface texture onto a 3D object, a flat shape intended as the basis of an extrusion, or what? Quote All 3 1.10.8, & all 3 V2.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
Chopisland Posted May 28, 2022 Author Posted May 28, 2022 What file format are you exporting to? SVG What 3D app are you using? Freecad What file type(s) does it accept for imports, & what kind of object does a 2D file like you can export from Affinity import as? quite a lot, but only svg is relevant because i need the path for extruding Is it for 'painting' a surface texture onto a 3D object, a flat shape intended as the basis of an extrusion, or what? See last answer Quote
Chopisland Posted May 28, 2022 Author Posted May 28, 2022 Hello Garry, the exact size of the Affinity file is 24,3mm and now it is 196,52mm. Somehow strange and different from the first statement, but also completely wrong. The file is in the attachment. Affinity Klunkerkiste 24,3mm.svg Quote
v_kyr Posted May 28, 2022 Posted May 28, 2022 7 hours ago, Chopisland said: ...does anyone have any idea what the problem might be if i export a figure with a diameter of, say, 20mm, but in the 3D program it is approx. 600mm in size? I don't have this problem with inkscape. if it is created as 20mm there, it is also imported as 20mm in the 3D program. Depends on the way the exported SVG code will be generated here, aka if using SVG "width=100% height=100%" vs width="2481" height="3508" together with the viewBox="0 0 2481 3508" setting. - Note that when you specify a unit (like using mm) in/for SVG, it must first be scaled to pixels by multiplying by the number of pixels. In your case per mm where 1 mm is about 3.78 pixels. Further note that an SVG viewBox is effectively a transformation (some combination of a scaling and a translation). You can setup and control the SVG export options via the "more" button, further also inspect and edit the exported SVG code inside a plain text editor. Klunkerkiste.svg Klunkerkiste3.svg Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
Chopisland Posted May 28, 2022 Author Posted May 28, 2022 Thank you very much v_kyr. You have put me on the right way. Now it works, even though i didn't understand your answer 100%. But maybe i'll have an epiphany at some point. Quote
v_kyr Posted May 28, 2022 Posted May 28, 2022 4 hours ago, Chopisland said: ... even though i didn't understand your answer 100%. But maybe i'll have an epiphany at some point. Maybe the following articles about SVG viewport & viewBox give you a little bit more insight .... SVG Viewport and viewBox (For Complete Beginners) How to scale SVG Understanding SVG Coordinate Systems and Transformations (part 1) Why Your SVG Is the Way It Is Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.