Vector graphics in Irrlicht
-
- Competition winner
- Posts: 688
- Joined: Mon Sep 10, 2012 8:51 am
Vector graphics in Irrlicht
Anyone interested in adding vector graphics to irrlicht?
I've toyed with the idea. Currently I use Inkscape for vector graphics work, but it'd be nice to put vector graphics in a 3D setting, especially if you could use it to make displayable, controllable paths for entities.
I've toyed with the idea. Currently I use Inkscape for vector graphics work, but it'd be nice to put vector graphics in a 3D setting, especially if you could use it to make displayable, controllable paths for entities.
Re: Vector graphics in Irrlicht
SVG is an extremely complex standard. Even most libraries can't handle it all.
-
- Competition winner
- Posts: 688
- Joined: Mon Sep 10, 2012 8:51 am
Re: Vector graphics in Irrlicht
Okay, so we can skip SVG. Check. Now what about just implementing something simpler?
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Vector graphics in Irrlicht
Well, use any of the existing SVG or whatever rendering libs. They should be able to render to an image or maybe even to a shareable texture. That's it probably, tighter integration into Irrlicht wouldn't make much sense.
Re: Vector graphics in Irrlicht
Or maybe setting up the vector data not as graphics, but as renderable geometry, like the curved surfaces in the Quake III Engine
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
-
- Competition winner
- Posts: 688
- Joined: Mon Sep 10, 2012 8:51 am
Re: Vector graphics in Irrlicht
That's one thing I had in mind. The biggest issue I can see with that is shading, depending, of course, on how you implement it.Mel wrote:Or maybe setting up the vector data not as graphics, but as renderable geometry, like the curved surfaces in the Quake III Engine
-
- Posts: 1638
- Joined: Mon Apr 30, 2007 3:24 am
- Location: Montreal, CANADA
- Contact:
Re: Vector graphics in Irrlicht
There this open source library that can be used with Irrlicht that can render SWF(Vector + Animations), I know it's used a lot for rendering animated game GUI`s
http://tulrich.com/textweb.pl?path=geek ... ameswf.txt
With this a developer can hire an artist doing animated GUI in flash an reload the SWF into the game.
http://tulrich.com/textweb.pl?path=geek ... ameswf.txt
With this a developer can hire an artist doing animated GUI in flash an reload the SWF into the game.
-
- Competition winner
- Posts: 688
- Joined: Mon Sep 10, 2012 8:51 am
Re: Vector graphics in Irrlicht
Not quite what I'm looking for but definitely interesting. Thanks for mentioning that!
-
- Posts: 105
- Joined: Mon Jun 02, 2014 2:32 am
- Location: Washington, D.C.
- Contact:
Re: Vector graphics in Irrlicht
Don't mean to necro an old thread... >_>
Because we don't have SVG support natively, would a vector art pipeline be to create a texture in inkscape, and then export it as a PNG?
I think Blender has native support for the standard, but I was just curious how I would go about implementing vector-based textures.
Because we don't have SVG support natively, would a vector art pipeline be to create a texture in inkscape, and then export it as a PNG?
I think Blender has native support for the standard, but I was just curious how I would go about implementing vector-based textures.
My blog: http://fsgdp.wordpress.com "The Free Software Game Development Pipeline"
Re: Vector graphics in Irrlicht
You can always convert it into a bitmap with some tool. The problem is that it won't look good once you start scaling the bitmap.
I also had to work with some vector format this year (dxf). I used some external lib for import and then created a custom node which implemented the vertex display. Don't really know another solution for now.
I also had to work with some vector format this year (dxf). I used some external lib for import and then created a custom node which implemented the vertex display. Don't really know another solution for now.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 105
- Joined: Mon Jun 02, 2014 2:32 am
- Location: Washington, D.C.
- Contact:
Re: Vector graphics in Irrlicht
@CuteAlien
I see... so I would need to make sure the vector art is scaled appropriately before exporting it as a bitmap. Good to know.
Thank you!
I see... so I would need to make sure the vector art is scaled appropriately before exporting it as a bitmap. Good to know.
Thank you!
My blog: http://fsgdp.wordpress.com "The Free Software Game Development Pipeline"
-
- Posts: 1638
- Joined: Mon Apr 30, 2007 3:24 am
- Location: Montreal, CANADA
- Contact:
Re: Vector graphics in Irrlicht
If you can, try to have a big bitmap. Downscaling is much better that scaling up.
-
- Posts: 105
- Joined: Mon Jun 02, 2014 2:32 am
- Location: Washington, D.C.
- Contact:
Re: Vector graphics in Irrlicht
@ChristianClavet
Thank you, I will keep that in mind.
Thank you, I will keep that in mind.
My blog: http://fsgdp.wordpress.com "The Free Software Game Development Pipeline"
-
- Competition winner
- Posts: 688
- Joined: Mon Sep 10, 2012 8:51 am
Re: Vector graphics in Irrlicht
In case anyone is still interested, I found this: http://www.antigrain.com/
It can be used for rendering vector graphics to a user-implemented interface - which in our case can be a front end for IImage, and thereafter be converted to textures for rendering.
It can be used for rendering vector graphics to a user-implemented interface - which in our case can be a front end for IImage, and thereafter be converted to textures for rendering.