Recent

Author Topic: [SOLVED] 3D svg  (Read 2931 times)

lainz

  • Hero Member
  • *****
  • Posts: 4657
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: [SOLVED] 3D svg
« Reply #15 on: November 26, 2023, 12:37:51 pm »
Any number of CAD etc. packages can do that, but it doesn't necessarily make them the best tool for doing the conversion.

What matters is what OP is actually trying to do- and as somebody has helpfully remarked, the question is basically so vague as to be incomprehensible- and then selecting a suitable output format.

Something like Blender or a CAD package can undoubtedly do the job, but that doesn't necessarily make it the best choice. The problem is that a BLEND or STEP file will have a vast amount of cruft to support things that Blender etc. can also do, and this might actually be a disadvantage in the context of what OP is trying to do- whatever it is :-)

For example, if what he wants to do is read an SVG and deform it based on a simple property like face colour, he might actually be best off converting it to an STL which defines meshes based on the deformed vertices and edges.

So the crucial thing here is the choice of output format. And depending on what's to be done next, making sure that the output files don't contain a whole lot of unnecessary cruft put there by the generating software "because it might be useful at some point in the future".

Considering for example https://stackoverflow.com/questions/20840970/is-there-a-3d-format-which-is-a-3d-extension-to-svg and the more recent https://www.reddit.com/r/Frontend/comments/xbasxh/any_svg_equivalent_for_3d_objects/ I'd suggest that the 3D successor to SVG is X3D or possibly OBJ. But that depends entirely on what OP is trying to do: if he wants to smooth and "skin" the result then Blender is the obvious choice, while if he wants to manipulate in in e.g. an architectural context then he almost certainly needs something more CAD-like.

MarkMLl


Is not that vague in my opinion...

Hello forum members, is there any component that allows you to turn SVG graphics into 3D and export NMP to PNG?

Regards :)

The answer is NO. There is no component in Lazarus that can do that.

Except for Castle Game Engine as MarkMLI pointed. A third party plugin... and also I'm not sure if it can, because turning 2D into 3D with Castle Game Engine, well if possible showme the code  :) Then save as PNG.

Easy, no need of overcomplicating things. If the author needs CAD, or 3D printing, better use another tool rather than Blender, there are specific tools.

after conversion it expects 3D depth

But not mentioned, only mentioned converting from 2D SVG adding depth, like I showed..

MarkMLl

  • Hero Member
  • *****
  • Posts: 8090
Re: [SOLVED] 3D svg
« Reply #16 on: November 26, 2023, 12:59:00 pm »
I'd remind you that OP's been edited at least once.

Anyway, I've said my tuppenceworth.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

lainz

  • Hero Member
  • *****
  • Posts: 4657
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: [SOLVED] 3D svg
« Reply #17 on: November 26, 2023, 01:24:54 pm »
I'd remind you that OP's been edited at least once.

Anyway, I've said my tuppenceworth.

MarkMLl

Your points are completely valid.

Just saying my response is valid too.

Pe3s

  • Hero Member
  • *****
  • Posts: 590
Re: [SOLVED] 3D svg
« Reply #18 on: November 26, 2023, 07:06:48 pm »
@lainz I will give me a sufficient answer.
Quote
The functionality you say is very complex, no other than blender can do it for free...

 

TinyPortal © 2005-2018