Is it possible to have a vector TileMap? Or make platforming maps with vector graphics?

Title. I plan on making something using vector graphics, to simulate the old Flash style, stretching to accommodate any screen size and zooming in and out without losing fidelity is something I’d like.

Now, I know that I can import a svg file into a TileMap node, but it’ll be rasterized and act just like a png. Searching around YT and google aren’t yielding many results about using vector graphics with Godot.

ImpossibleRubiksCube,

I’m not perfectly aware of immediate support for that, but it would likely be really easy to implement. Probably just use Polygon2D and some SVG differing logic.

ICastFist,
@ICastFist@programming.dev avatar

Is there a way to apply bezier curves to polygons? I can’t see anything regarding curves or “bezier” in the polygon docs. There is a Curve2D object type, so it seems I’d have to extend it

ImpossibleRubiksCube,

That’s a good point, SVG handles solid geometry too. It may be possible to tesselate it, if you can get away with it.

sirJayro, (edited )

From what I read in the docs, SVGs are rasterized when they are imported by godot. Are the SVGs you use for other things besides the tile map importing as rasterized images too? Or is it just the ones for the tilemap?

EDIT: After a bit more research, godot doesnt support SVG images as vector graphics. When they get imported the are rasterized and used as textures. But there are plugins that allow the use of vector graphics. https://godotengine.org/asset-library/asset/1544This one is old, for use with 3.x, but you might be able to find a newer one.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • [email protected]
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • TheResearchGuardian
  • Ask_kbincafe
  • KbinCafe
  • feritale
  • Socialism
  • oklahoma
  • SuperSentai
  • KamenRider
  • All magazines