Click Here
home features news forums classifieds faqs links search
5697 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
Home
Features
News
Forums
Classifieds
Links
Downloads
Extras
OS4 Zone
IRC Network
AmigaWorld Radio
Newsfeed
Top Members
Amiga Dealers
Information
About Us
FAQs
Advertise
Polls
Terms of Service
Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
24 crawler(s) on-line.
 15 guest(s) on-line.
 1 member(s) on-line.


 KimmoK

You are an anonymous user.
Register Now!
 KimmoK:  2 mins ago
 clint:  8 mins ago
 Jasper:  14 mins ago
 eliyahu:  14 mins ago
 Signman:  21 mins ago
 Everblue:  26 mins ago
 Ami603:  30 mins ago
 OlafS25:  1 hr 2 mins ago
 rzookol:  1 hr 22 mins ago
 bennymee:  1 hr 26 mins ago

Software News   Software News : Scalable Vector Graphics (SVG) Datatype
   posted by ssolie on 13-Dec-2006 16:36:27 (4094 reads)
Fredrik Wikstrom has managed to put together an SVG datatype for OS4.

Grab it from OS4 Depot.


Installation:

1. Copy svg.datatype to SYS:Classes/DataTypes/.
2. Copy SVG to DEVS:DataTypes/.

SDK users can just use "make install".

The OS4 native expat.library is needed in order for the datatype to work (it is not enough to just use a .l.main glue file!). This library can be found as part of the expat-ppc archive on OS4Depot.

Compiling:

"make".

Bugs:

None known.
    

Related Links
· More about Software News
· News by ssolie


Most read story about Software News
UBoot 2010.06.04 for Sam460ex available

Last news about Software News
IBrowse 2.5 Released
Printer Friendly Page  Send this Story to a Friend

PosterThread
spotUP 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 13-Dec-2006 16:57:26
#1 ]
Elite Member
Joined: 19-Aug-2003
Posts: 2896
From: Up Rough Demo Squad

Rulez! Shame about the black bg in multiview though!
Good work as usual Fredrik!


_________________
AOS4 Betatester, Peg2, G4@1ghz, Radeon 9250 256mb, 1gb RAM.

http://www.asciiarena.com
http://www.uprough.net

 Status: Offline
Profile     Report this post  
OldFart 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 13-Dec-2006 18:00:47
#2 ]
Elite Member
Joined: 12-Sep-2004
Posts: 2925
From: Stad; en d'r is moar ain stad en da's Stad. Makkelk zat!

What kind of graphics is this DT suitable for?

OldFart


_________________
Is 28.16: " He that believeth shall not make haste"

 Status: Offline
Profile     Report this post  
FuZion 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 13-Dec-2006 18:29:42
#3 ]
Super Member
Joined: 22-Nov-2003
Posts: 1962
From: Birmingham, England

SVG files are vector based files. If you grab the AntiGrain package from OS4 Depot, there's a SVG file in there called Tiger.svg that you should be able to test out.

Cheers for this ssolie. I'm not at my Amiga right now but does yout DT have a scaling feature? And are the images anti-aliased?

FuZion.

 Status: Offline
Profile     Report this post  
Van_M 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 13-Dec-2006 18:51:11
#4 ]
Member
Joined: 23-Nov-2003
Posts: 30
From: Athens, Greece

SVG files can be used in many-many applications. Among others, they are kind-of enabling interactive animations on the web (given that you have an SVG capable browser). For example, we are using them in the web-GIS application we are developing.
The user can put the mouse over a building block and it changes color. By clicking on that block, its linetype changes and the svg viewer of the browser sends request to the web server and so on.
In the coming years, this format will become somewhat of a de-facto for animations on the web, as XML (which SVG is similar to) has become de-facto for on-line transactions.

 Status: Offline
Profile     Report this post  
yoodoo2 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 13-Dec-2006 18:59:12
#5 ]
Super Member
Joined: 4-Aug-2003
Posts: 1325
From: Stourbridge, UK

Hmm. I think I need to look at this...


_________________
Happiness is mandatory.
MindSpace: MindMaps and UML diagrams for OS4
Recursion Computer Fair: Saturday 1 July 2017 at Stratford-upon-Avon

 Status: Offline
Profile     Report this post  
ssolie 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 13-Dec-2006 20:41:35
#6 ]
Elite Member
Joined: 10-Mar-2003
Posts: 2740
From: Alberta, Canada

@FuZion
Quote:
Cheers for this ssolie....

Not my doing. I just reported the news.


_________________
ExecSG Team Lead

 Status: Offline
Profile     Report this post  
amipal 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 13-Dec-2006 22:52:53
#7 ]
Super Member
Joined: 8-Apr-2003
Posts: 1896
From: Saltdean, East Sussex, UK

@FuZion
Quote:
SVG files are vector based files. If you grab the AntiGrain package from OS4 Depot, there's a SVG file in there called Tiger.svg that you should be able to test out.

As FuZion so rightly pointed out, available here: http://os4depot.net/share/development/library/agg2sdk.lha

:edit
The SVG file doesn't exist in this archive, got the wrong one! Scroll down a bit for the proper one.

Last edited by amipal on 14-Dec-2006 at 05:00 PM.


_________________
After a decade away from the scene, I am back!

 Status: Offline
Profile     Report this post  
ggw 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 14-Dec-2006 4:31:47
#8 ]
Super Member
Joined: 24-May-2003
Posts: 1056
From: Austin, TX

@amipal

Don't be so terse!

I clicked your provided link for us. Download the thing. Stuck it in my :apps, all 4 megs. THEN I looked for ANY thing with tiger OR svg. Not one sticking files in all 840 that I have here.

So trudged back and read the fine print you posted. Though the seeming point was to try out svg and the posts talked about Tiger, YOU weren't talking about /that/.

Dang it [to no one in particular]. There are *3* AntiGrain files over there (none of them with AntiGrain in the filespec mind you). I guess I chose the wrong one. No svg files in there. Bah. I'm going to bed.

ggw

Last edited by ggw on 14-Dec-2006 at 04:50 AM.


_________________
..effects of civilization upon...nature, the growing gap between what education was supposed to accomplish and what it consisted of, the national debt and...high taxes, the problem of the excess cost of medical care -- Philip Wylie, 1951

 Status: Offline
Profile     Report this post  
FuZion 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 14-Dec-2006 8:13:27
#9 ]
Super Member
Joined: 22-Nov-2003
Posts: 1962
From: Birmingham, England

@ggw

No biggie, the file is in the demos archive: http://www.os4depot.net/share/graphics/misc/agg2demos.lha.

Amipal was pointing out the sdk package if anyone fancies making a few apps with it

FuZion.

 Status: Offline
Profile     Report this post  
nicomen 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 14-Dec-2006 12:59:12
#10 ]
Cult Member
Joined: 5-Nov-2003
Posts: 539
From: Trondheim, Norway

There are some SVG files here: http://people.opera.com/nicolasm/svg


_________________
Nicolas Mendoza

 Status: Offline
Profile     Report this post  
amipal 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 14-Dec-2006 16:47:46
#11 ]
Super Member
Joined: 8-Apr-2003
Posts: 1896
From: Saltdean, East Sussex, UK

@ggw
Quote:
Don't be so terse!

Oops, see what happens when I jump to conclusions! Sorry!


_________________
After a decade away from the scene, I am back!

 Status: Offline
Profile     Report this post  
ggw 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 15-Dec-2006 5:37:14
#12 ]
Super Member
Joined: 24-May-2003
Posts: 1056
From: Austin, TX

I'm in a better mood this evening. I downloaded the 8Megs of AGG. Very pretty graphics demos. I finally got to the bottom for the tiger.svg. Double clicked. Multivew reports: unknown data type for tiger.svg [Continue]

6> list OS4:Classes/DataTypes/svg.datatype
Directory "OS4:Classes/DataTypes" on Thursday 14-Dec-06
svg.datatype 1778549 ----rwed Tuesday 20:34:14


6> list Devs:DataTypes/svg
Directory "Devs:DataTypes" on Thursday 14-Dec-06
svg 112 ----rwed Tuesday 20:21:42

So what am I doing wrong?

ggw


_________________
..effects of civilization upon...nature, the growing gap between what education was supposed to accomplish and what it consisted of, the national debt and...high taxes, the problem of the excess cost of medical care -- Philip Wylie, 1951

 Status: Offline
Profile     Report this post  
salass00 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 15-Dec-2006 7:04:44
#13 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2701
From: Finland

@ggw

Works OK here (tried with the same file).

Sounds like a problem with the descriptor file.

You did copy the file "SVG" to Devs/Datatypes/? Did you copy the icon also? After this you either need to do a reboot or doubleclick the descriptor file for it to be added to the system.

 Status: Offline
Profile     Report this post  
salass00 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 15-Dec-2006 7:10:15
#14 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2701
From: Finland

@Fuzion

Quote:
I'm not at my Amiga right now but does yout DT have a scaling feature?


IIRC the OS4 picture.datatype supports scaling by itself. This is only bitmap scaling though, so results may not be so good. I have thought about overriding the method with a proper vector scale assuming this is possible with libsvg-cairo, but before that I'd like to fix some of the other problems.

Quote:
And are the images anti-aliased?


Yes, they are. Thanks to libcairo, I think.

Last edited by salass00 on 15-Dec-2006 at 07:11 AM.

 Status: Offline
Profile     Report this post  
salass00 
Re: Scalable Vector Graphics (SVG) Datatype
Posted on 15-Dec-2006 7:19:02
#15 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2701
From: Finland

@Van_M

Quote:

...as XML (which SVG is similar to)...


That I think is quite an understatement considering it's not just "similar" to xml. It is in fact based on xml, much like ILBM, 8SVX, ANIM, SMUS, AIFF, etc. are all "similar" to IFF (all are IFF based formats, IFF being just a "wrapper" format much like xml is).

 Status: Offline
Profile     Report this post  
[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle