FreeOrion

Forums for the FreeOrion project
It is currently Sun May 19, 2013 8:52 pm

All times are UTC




Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re:
PostPosted: Thu May 15, 2008 5:24 am 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7887
Location: Vancouver, BC
eleazar wrote:
I made a set of 5 SVG emblems and 5 background shapes...

FreeOrion can't read SVG files, so unless someone wants to add that capability, we'll need a raster graphic format to get started.


Top
 Profile  
 
 Post subject: Re: Re:
PostPosted: Thu May 15, 2008 6:11 am 
Offline
Design & Graphics Lead
User avatar

Joined: Sat Sep 23, 2006 7:09 pm
Posts: 3693
Location: USA — midwest
Geoff the Medio wrote:
eleazar wrote:
I made a set of 5 SVG emblems and 5 background shapes...

FreeOrion can't read SVG files, so unless someone wants to add that capability, we'll need a raster graphic format to get started.


Ahh, yes. I was originally under the impression that SVG support was coming soon for FO.

I've uploaded PNG versions in icons/flags/

I still recommend an idiot-proof "everything that's not transparent turns into the primary or secondary empire color.

_________________
—• Read this First before posting Game Design Ideas!
—• Design Philosophy

—•— My Ideas, Organized —•— Get an Avatar —•— Acronyms —•—


Top
 Profile  
 
 Post subject: Re:
PostPosted: Wed Feb 04, 2009 1:06 am 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7887
Location: Vancouver, BC
eleazar wrote:
I made a set of 5 SVG emblems and 5 background shapes, according to the scheme laid out in my previous post. Note, some of the emblem graphics have partially transparent elements. Support for that is not neccesary, but could be interesting.

Get the SVG flag graphics.

I've been playing around with an XML parsing library for unrelated reasons, but since the SVG format is built on XML, I thought I'd try loading up a few SVG images as test input. The library I'm using is TinyXML which is very light-weight, easy to incorporate and relatively simple to use compared to some of the alternatives but it has an unfortunate limitation in its ability to parse <!DOCTYPE entries in XML files.

There are two interfaces for TinyXML, one of which can't handle any <!DOCTYPE tags, and the other which will ignore the tags unless they contain an <!ENTITY tag, in which case it will (sometimes?) crash. This means I can't load any of me SVG test images with the more restrictive interface, but I can load some images using the less restrictive one.

The SVG test images I've used include one linked off the Wikipedia SVG article, and also the emblem03.svg in eleazar's pack of flag parts. The Wikipedia SVG doesn't have any <!ENTITY tags, but does have a <!DOCTYPE tag, so can only be parsed by the less restrictive TinyXML interface. eleazar's SVG has <!ENTITY tags, so fails with both.

Sometimes removing the <!DOCTYPE or <!ENTITY tags fixes the problems with the more restrictive interface, but sometimes it doesn't. The less restrictive interface seems to work with all my tests that don't have those flags (which can be made by removing the flags from an existing SVG file) and in some that do have <!DOCTYPE but no <!ENTITY tags.

So the question I have is, is it difficult or particularly awkward to save SVG files without any <!ENTITY or <!DOCTYPE tags? eleazar's SVG saved with (Adobe?) Illustrator has a large list of <!ENTITY tags in the <!DOCTYPE tag, which makes me worry it'd require a lot of hand-editing to get working.


Top
 Profile  
 
 Post subject: Re: Re:
PostPosted: Wed Feb 04, 2009 3:34 am 
Offline
Design & Graphics Lead
User avatar

Joined: Sat Sep 23, 2006 7:09 pm
Posts: 3693
Location: USA — midwest
Geoff the Medio wrote:
So the question I have is, is it difficult or particularly awkward to save SVG files without any <!ENTITY or <!DOCTYPE tags? eleazar's SVG saved with (Adobe?) Illustrator has a large list of <!ENTITY tags in the <!DOCTYPE tag, which makes me worry it'd require a lot of hand-editing to get working.

I dunno. As you might expect, Illustrator doesn't give you any options related to these tags, but another program might not use these tags, or have different save modes. I've been meaning to check out what the other vector programs are like, if i do, i'll check the files for these tags.

_________________
—• Read this First before posting Game Design Ideas!
—• Design Philosophy

—•— My Ideas, Organized —•— Get an Avatar —•— Acronyms —•—


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group