Vector graphics in Irrlicht

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.

Vector graphics in Irrlicht

Postby chronologicaldot » Wed Apr 24, 2013 5:53 am

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

Re: Vector graphics in Irrlicht

Postby hendu » Wed Apr 24, 2013 3:15 pm

SVG is an extremely complex standard. Even most libraries can't handle it all.
hendu
 
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Vector graphics in Irrlicht

Postby chronologicaldot » Wed Apr 24, 2013 6:22 pm

Okay, so we can skip SVG. Check. Now what about just implementing something simpler?
User avatar
chronologicaldot
Competition winner
 
Posts: 560
Joined: Mon Sep 10, 2012 8:51 am

Re: Vector graphics in Irrlicht

Postby hybrid » Thu Apr 25, 2013 12:35 pm

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.
hybrid
Admin
 
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany

Re: Vector graphics in Irrlicht

Postby Mel » Thu Apr 25, 2013 6:44 pm

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

Re: Vector graphics in Irrlicht

Postby chronologicaldot » Thu Apr 25, 2013 7:11 pm

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

Re: Vector graphics in Irrlicht

Postby christianclavet » Fri Apr 26, 2013 8:37 pm

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=geekstuff/gameswf.txt

With this a developer can hire an artist doing animated GUI in flash an reload the SWF into the game.
User avatar
christianclavet
 
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA

Re: Vector graphics in Irrlicht

Postby chronologicaldot » Sun Apr 28, 2013 7:13 am

Not quite what I'm looking for but definitely interesting. Thanks for mentioning that!
User avatar
chronologicaldot
Competition winner
 
Posts: 560
Joined: Mon Sep 10, 2012 8:51 am

Re: Vector graphics in Irrlicht

Postby sunnystormy » Tue Dec 27, 2016 10:25 pm

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://osgdp.wordpress.com "The Open-Source Game Development Pipeline"
sunnystormy
 
Posts: 98
Joined: Mon Jun 02, 2014 2:32 am
Location: Washington, D.C.

Re: Vector graphics in Irrlicht

Postby CuteAlien » Wed Dec 28, 2016 12:14 pm

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.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8528
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Vector graphics in Irrlicht

Postby sunnystormy » Wed Dec 28, 2016 3:34 pm

@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://osgdp.wordpress.com "The Open-Source Game Development Pipeline"
sunnystormy
 
Posts: 98
Joined: Mon Jun 02, 2014 2:32 am
Location: Washington, D.C.

Re: Vector graphics in Irrlicht

Postby christianclavet » Thu Dec 29, 2016 2:45 am

If you can, try to have a big bitmap. Downscaling is much better that scaling up.
User avatar
christianclavet
 
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA

Re: Vector graphics in Irrlicht

Postby sunnystormy » Thu Dec 29, 2016 2:56 am

@ChristianClavet

Thank you, I will keep that in mind. :)
My blog: http://osgdp.wordpress.com "The Open-Source Game Development Pipeline"
sunnystormy
 
Posts: 98
Joined: Mon Jun 02, 2014 2:32 am
Location: Washington, D.C.

Re: Vector graphics in Irrlicht

Postby chronologicaldot » Mon Jan 30, 2017 6:37 pm

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


Return to Everything 2d/3d Graphics

Who is online

Users browsing this forum: No registered users and 1 guest