Vector graphics in Irrlicht

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
chronologicaldot
Competition winner
Posts: 688
Joined: Mon Sep 10, 2012 8:51 am

Vector graphics in Irrlicht

Post by chronologicaldot »

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.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Vector graphics in Irrlicht

Post by hendu »

SVG is an extremely complex standard. Even most libraries can't handle it all.
chronologicaldot
Competition winner
Posts: 688
Joined: Mon Sep 10, 2012 8:51 am

Re: Vector graphics in Irrlicht

Post by chronologicaldot »

Okay, so we can skip SVG. Check. Now what about just implementing something simpler?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Vector graphics in Irrlicht

Post by hybrid »

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.
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Vector graphics in Irrlicht

Post by Mel »

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
chronologicaldot
Competition winner
Posts: 688
Joined: Mon Sep 10, 2012 8:51 am

Re: Vector graphics in Irrlicht

Post by chronologicaldot »

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
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.
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: Vector graphics in Irrlicht

Post by christianclavet »

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.
chronologicaldot
Competition winner
Posts: 688
Joined: Mon Sep 10, 2012 8:51 am

Re: Vector graphics in Irrlicht

Post by chronologicaldot »

Not quite what I'm looking for but definitely interesting. Thanks for mentioning that!
sunnystormy
Posts: 105
Joined: Mon Jun 02, 2014 2:32 am
Location: Washington, D.C.
Contact:

Re: Vector graphics in Irrlicht

Post by sunnystormy »

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.
My blog: http://fsgdp.wordpress.com "The Free Software Game Development Pipeline"
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Vector graphics in Irrlicht

Post by CuteAlien »

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.
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
sunnystormy
Posts: 105
Joined: Mon Jun 02, 2014 2:32 am
Location: Washington, D.C.
Contact:

Re: Vector graphics in Irrlicht

Post by sunnystormy »

@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!
My blog: http://fsgdp.wordpress.com "The Free Software Game Development Pipeline"
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: Vector graphics in Irrlicht

Post by christianclavet »

If you can, try to have a big bitmap. Downscaling is much better that scaling up.
sunnystormy
Posts: 105
Joined: Mon Jun 02, 2014 2:32 am
Location: Washington, D.C.
Contact:

Re: Vector graphics in Irrlicht

Post by sunnystormy »

@ChristianClavet

Thank you, I will keep that in mind. :)
My blog: http://fsgdp.wordpress.com "The Free Software Game Development Pipeline"
chronologicaldot
Competition winner
Posts: 688
Joined: Mon Sep 10, 2012 8:51 am

Re: Vector graphics in Irrlicht

Post by chronologicaldot »

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.
Post Reply