Click Here
home features news forums classifieds faqs links search
6071 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
19 crawler(s) on-line.
 150 guest(s) on-line.
 1 member(s) on-line.


 clint

You are an anonymous user.
Register Now!
 clint:  23 secs ago
 vox:  6 mins ago
 Gunnar:  9 mins ago
 pixie:  18 mins ago
 NutsAboutAmiga:  22 mins ago
 zipper:  57 mins ago
 Templario:  1 hr 3 mins ago
 RobertB:  1 hr 22 mins ago
 GPTNederlands:  1 hr 38 mins ago
 janelancy:  1 hr 39 mins ago

/  Forum Index
   /  Amiga Development
      /  2D graphics library for AmigaOS
Register To Post

Goto page ( 1 | 2 Next Page )
PosterThread
ssolie 
2D graphics library for AmigaOS
Posted on 29-Sep-2004 16:53:04
#1 ]
Elite Member
Joined: 10-Mar-2003
Posts: 2755
From: Alberta, Canada

I'm looking for an easy to use/port 2D graphics library for OS4. Something that can render filled polygons, thick lines and curves, etc. The graphics.library we have today just sux for any kind of vector graphics application. Ideally, I'd like a Java2D-like library to use with affine transforms and the like.

I suppose I could also just make the jump to 3D (z=0) but Warp3D is too primitive for my needs and there is no OpenGL-like solution available yet.

_________________
ExecSG Team Lead

 Status: Offline
Profile     Report this post  
broch 
Re: 2D graphics library for AmigaOS
Posted on 29-Sep-2004 17:11:30
#2 ]
Regular Member
Joined: 19-Aug-2003
Posts: 128
From: Copenhagen, Denmark

@ssolie

I guess that is just what you are used to isn't it...but I have made a vector graphics routine with the graphics library. It works fine. I use the AreaDraw function to make the filled polygons. You can see the result on www.os4depot.net.

This demo I have uploaded is just a test. Now I have made my own line routine that can support texturemapping as well.

The curved lines you need to make yourself I guess. It is also more fun isn't it?
I made a formula that uses 3 points to draw a curved line. It uses polynomie of 2nd degree, but maybe I should try doing it with cosine and sine instead.. I haven't tried to implement the formula in a routine though.

 Status: Offline
Profile     Report this post  
Kronos 
Re: 2D graphics library for AmigaOS
Posted on 29-Sep-2004 17:21:38
#3 ]
Elite Member
Joined: 8-Mar-2003
Posts: 2553
From: Unknown

@ssolie


How about this one ?

_________________
- We don't need good ideas, we haven't run out on bad ones yet
- blame Canada

 Status: Offline
Profile     Report this post  
hnl_dk 
Re: 2D graphics library for AmigaOS
Posted on 29-Sep-2004 17:28:33
#4 ]
Super Member
Joined: 25-Mar-2003
Posts: 1786
From: Denmark

@ssolie

Quote:
g2 is an easy to use, portable and powerful 2D graphics library. It provides a comprehensive set of functions for simultaneous generation of graphical output on different types of devices. Following devices are currently supported: PostScript, X11, PNG and JPEG (using gd) and Win32 (xfig is in development). g2 is written in C (ANSI) and additionally has a Fortran and perl interface. See the g2 screenshots.

source: http://g2.sourceforge.net/

or

Quote:
GNU libxmi is a C/C++ function library for rasterizing 2-D vector graphics. It can draw 2-D graphical primitives, including wide polygonal lines and circular and elliptical arcs, into a user-supplied matrix of pixels. Sophisticated line styles, such as multicolored dashing patterns, can be specified. There is also support for filling and texturing polygons.

source: http://www.gnu.org/software/libxmi/libxmi.html
source code: http://ftp.gnu.org/gnu/libxmi/libxmi-1.2.tar.gz

_________________
Best regards,
hnl_dk - Henning Nielsen Lund [Denmark]

Please send no PM to me, email me if you want to contact me. See you somewhere else.

 Status: Offline
Profile     Report this post  
hnl_dk 
Re: 2D graphics library for AmigaOS
Posted on 29-Sep-2004 17:29:49
#5 ]
Super Member
Joined: 25-Mar-2003
Posts: 1786
From: Denmark

@Kronos

Quote:

Kronos wrote:
@ssolie


How about this one ?


looking cool

_________________
Best regards,
hnl_dk - Henning Nielsen Lund [Denmark]

Please send no PM to me, email me if you want to contact me. See you somewhere else.

 Status: Offline
Profile     Report this post  
Kronos 
Re: 2D graphics library for AmigaOS
Posted on 29-Sep-2004 18:57:53
#6 ]
Elite Member
Joined: 8-Mar-2003
Posts: 2553
From: Unknown

@hnl_dk


And one "make" was enough to "port" ist

_________________
- We don't need good ideas, we haven't run out on bad ones yet
- blame Canada

 Status: Offline
Profile     Report this post  
hnl_dk 
Re: 2D graphics library for AmigaOS
Posted on 29-Sep-2004 19:44:54
#7 ]
Super Member
Joined: 25-Mar-2003
Posts: 1786
From: Denmark

@Kronos

Quote:

Kronos wrote:
@hnl_dk


And one "make" was enough to "port" ist


Great... guess that was using ixemul?

_________________
Best regards,
hnl_dk - Henning Nielsen Lund [Denmark]

Please send no PM to me, email me if you want to contact me. See you somewhere else.

 Status: Offline
Profile     Report this post  
broch 
Re: 2D graphics library for AmigaOS
Posted on 29-Sep-2004 19:54:10
#8 ]
Regular Member
Joined: 19-Aug-2003
Posts: 128
From: Copenhagen, Denmark

@Kronos

Pretty cool! Suddenly I realize what is missing in graphics.library.

broch

 Status: Offline
Profile     Report this post  
Kronos 
Re: 2D graphics library for AmigaOS
Posted on 29-Sep-2004 20:36:52
#9 ]
Elite Member
Joined: 8-Mar-2003
Posts: 2553
From: Unknown

@hnl_dk


Not for the library (which is pure C++ working on chunk of memory), and the app is
linked with -noixemul.

Only prob was that I couldn't compile any app using it with 2.95.3 (the lib does compile),
and had to switch to 2.95.4.

_________________
- We don't need good ideas, we haven't run out on bad ones yet
- blame Canada

 Status: Offline
Profile     Report this post  
hnl_dk 
Re: 2D graphics library for AmigaOS
Posted on 29-Sep-2004 21:28:37
#10 ]
Super Member
Joined: 25-Mar-2003
Posts: 1786
From: Denmark

@Kronos

Quote:

Kronos wrote:
@hnl_dk


Not for the library (which is pure C++ working on chunk of memory), and the app is
linked with -noixemul.

Only prob was that I couldn't compile any app using it with 2.95.3 (the lib does compile),
and had to switch to 2.95.4.


Great

_________________
Best regards,
hnl_dk - Henning Nielsen Lund [Denmark]

Please send no PM to me, email me if you want to contact me. See you somewhere else.

 Status: Offline
Profile     Report this post  
Samurai_Crow 
Re: 2D graphics library for AmigaOS
Posted on 29-Sep-2004 22:18:15
#11 ]
Elite Member
Joined: 18-Jan-2003
Posts: 2320
From: Minnesota, USA

@ssolie

What about coding glyphs using the freetype library? I don't know what they've done to it in OS4 but I've heard they can do antialiasing with that. It may save some memory over doing what Kronos is suggesting.

 Status: Offline
Profile     Report this post  
Kronos 
Re: 2D graphics library for AmigaOS
Posted on 30-Sep-2004 6:21:19
#12 ]
Elite Member
Joined: 8-Mar-2003
Posts: 2553
From: Unknown

@Samurai_Crow

Huh ?
The size of the app increases just as much as the function you use (here it is about +70k atm), and you'll need one off-screen buffer something you will need anyways to avoid flickering.

The amount of code that can go out is even bigger than whats has gone in, so the next
version is expected to use slightly less memore compared to the current (which still has
the housemade function AND agg2 in it).

_________________
- We don't need good ideas, we haven't run out on bad ones yet
- blame Canada

 Status: Offline
Profile     Report this post  
Sprocki 
Re: 2D graphics library for AmigaOS
Posted on 30-Sep-2004 7:41:49
#13 ]
Regular Member
Joined: 18-Jul-2004
Posts: 212
From: Berlin - Germany

@Kronos

> How about this one ?

Looks quite impressive! Plus we would get a free SVG viewer that could be used for a new datatype.

 Status: Offline
Profile     Report this post  
gnarly 
Re: 2D graphics library for AmigaOS
Posted on 30-Sep-2004 12:02:23
#14 ]
Cult Member
Joined: 16-Mar-2003
Posts: 742
From: Cheltenham, UK

@Sprocki

Has anybody tried porting that SVG viewer to the miggy yet? That'd rock mightily.

_________________

 Status: Offline
Profile     Report this post  
ssolie 
Re: 2D graphics library for AmigaOS
Posted on 30-Sep-2004 14:04:28
#15 ]
Elite Member
Joined: 10-Mar-2003
Posts: 2755
From: Alberta, Canada

@Kronos
Talk about an easy port. Just allocate a buffer and... that's about it.

_________________
ExecSG Team Lead

 Status: Offline
Profile     Report this post  
ssolie 
Re: 2D graphics library for AmigaOS
Posted on 30-Sep-2004 14:26:33
#16 ]
Elite Member
Joined: 10-Mar-2003
Posts: 2755
From: Alberta, Canada

@hnl_dk
libxmi looks interesting but it lacks clipping support and seems to be GPL which is not good for a library IMHO.

_________________
ExecSG Team Lead

 Status: Offline
Profile     Report this post  
ErikBauer 
Re: 2D graphics library for AmigaOS
Posted on 30-Sep-2004 14:57:23
#17 ]
Super Member
Joined: 25-Feb-2004
Posts: 1141
From: Italy

@Kronos

Quote:

Kronos wrote:
@ssolie


How about this one ?


Well, if someone manages to produce a 3.X / 4.0 source I could use it for my dream project
(that is a Warhammer Fantasy Roleplay based RPG for our beloved Amiga!)

_________________
God created Paula so that Allister Brimble and Dave Whittaker could do music

Check my Amiga gameplays (ITA)!

 Status: Offline
Profile     Report this post  
ssolie 
Re: 2D graphics library for AmigaOS
Posted on 30-Sep-2004 15:29:57
#18 ]
Elite Member
Joined: 10-Mar-2003
Posts: 2755
From: Alberta, Canada

@ErikBauer
Quote:
Well, if someone manages to produce a 3.X / 4.0 source I could use it for my dream project...

You should really read up on the library in some detail. It already works on AmigaOS or any other OS for that matter.

_________________
ExecSG Team Lead

 Status: Offline
Profile     Report this post  
ErikBauer 
Re: 2D graphics library for AmigaOS
Posted on 30-Sep-2004 15:48:05
#19 ]
Super Member
Joined: 25-Feb-2004
Posts: 1141
From: Italy

@ssolie

Quote:

ssolie wrote:
@ErikBauer
Quote:
Well, if someone manages to produce a 3.X / 4.0 source I could use it for my dream project...

You should really read up on the library in some detail. It already works on AmigaOS or any other OS for that matter.


Well, the fact is that I am not yet an Amiga programmer...
So I asked in my perfect ignorance...

For now I'm collecting documentations and developing tools, the project yet has to start on the Amiga.

_________________
God created Paula so that Allister Brimble and Dave Whittaker could do music

Check my Amiga gameplays (ITA)!

 Status: Offline
Profile     Report this post  
Samurai_Crow 
Re: 2D graphics library for AmigaOS
Posted on 30-Sep-2004 18:25:41
#20 ]
Elite Member
Joined: 18-Jan-2003
Posts: 2320
From: Minnesota, USA

@Kronos

What I meant was that since FreeType is included with the OS there would be one less library to install on the hard drive and would save on the memory footprint if FreeType is already loaded into memory. As an added bonus you might even get better cache loading if you are using FreeType more than one way at a time.

Maybe I'm wrong about this but I prefer to use libraries that are included in the OS over third party libraries. This keeps the boot partition small and insures that the library will be ported to all future operating systems without the overhead of having to recompile it yourself.

 Status: Offline
Profile     Report this post  
Goto page ( 1 | 2 Next Page )

[ 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