1. vector images.

Gidday gidday...
While at home today I whipped up some vector image routines - nothing
special, but working all the same.

The three procedures I've made so far are vector_polygon (creates the
vector sequence), draw_vector (displays the vector sequence at an x,y
pos), and resize_vector (enlarges/reduces the vector size). I will
attempt a rotation procedure, but don't hold your breath. I'm sure
there's somebody out there that can do it easily...

I don't know if these will be at all useful, but I do realise how easy
vectors are to manipulate, and the routines are fast enough for most
games (I think)...

anyway if it interests anyone I'll send the ZIP file to Robert to put on
the home page, or i could attach it to a message..?

Your choice :)

Mike Fowler - mike.fowler at nelsun.gen.nz
  o__ ---
 _,>/'_ ---
(_) \(_) ---
Tip for the month: Don't have a signature :)

new topic     » topic index » view message » categorize

2. Re: vector images.

Mike Fowler wrote:
>While at home today I whipped up some vector image routines - nothing
>special, but working all the same.

>The three procedures I've made so far are vector_polygon (creates the
>vector sequence), draw_vector (displays the vector sequence at an x,y
>pos), and resize_vector (enlarges/reduces the vector size). I will
>attempt a rotation procedure, but don't hold your breath. I'm sure
>there's somebody out there that can do it easily...

I am working on vector routines too.  In fact, the main module was done =

some time ago, but I haven't posted it because I am not too happy with =

one small part of it (arc drawing).  It is geared more to business and
technical =

graphics than to games.  It does lines, polygons, rectangles, circles, ar=
cs
and =

text.  The closed shapes can be either be filled or outlined.  The lines
can be =

any color, width or style (dotted, etc).  Even the text can be done with
styled =

lines!

I have also worked up a file format for vector drawings which supports al=
l
the =

above features and enables scaling, rotation and panning of entire vector=

drawings.  =

Still to be done:  PCL print routine.

I would like to see your work.  Also, If anyone is interested, I could po=
st
my stuff
(even though it is a work in progress).

Colin Taylor

new topic     » goto parent     » topic index » view message » categorize

3. Re: vector images.

Colin Taylor wrote:

> Mike Fowler wrote:
> >While at home today I whipped up some vector image routines - nothing
> >special, but working all the same.
>
> >The three procedures I've made so far are vector_polygon (creates the
> >vector sequence), draw_vector (displays the vector sequence at an x,y
> >pos), and resize_vector (enlarges/reduces the vector size). I will
> >attempt a rotation procedure, but don't hold your breath. I'm sure
> >there's somebody out there that can do it easily...
>
> I am working on vector routines too.  In fact, the main module was done
>
> some time ago, but I haven't posted it because I am not too happy with
> one small part of it (arc drawing).  It is geared more to business and
> technical graphics than to games.  It does lines, polygons, rectangles, circle
s, arcs and text.  The closed shapes can be either be filled or outlined.  The l
ines
> can be any color, width or style (dotted, etc).  Even the text can be done wit
h styled lines!
>
> I have also worked up a file format for vector drawings which supports all the
 above features and enables scaling, rotation and panning of entire vector drawi
ngs.
>
> Still to be done:  PCL print routine.
>
> I would like to see your work.  Also, If anyone is interested, I could post my
 stuff
> (even though it is a work in progress).

        Please do, whatever is already working can easily be adden to nextGFX,
that's finally getting some shape now. (A Big part is done, but far from
ready)
        With the command list, i can now add the vector commands, this is
really usefull, for compiled sprites (some will go faster), for fonts
and script drawing.
        If people are interested in seeing the nextGFX code, that is already
done (fully commented this time, with routines specification, and more
and shorter files, instead of a few very long), i could send it, maybe
to add or, toy-around it... i dunno
        Pete Eberlein, you might want to say how i've hacked your code into the
allmodes lib. (ModeX and Svga optimization, also i speeded up you pixels
routines a small bit an added svga-get_pixel)
        You can now either set a video mode, but if the resolution does not
match any standard ones the type is either ModeX or -1, which means that
it doesn't matter, then a new ModeX graphics mode is created and
initiated.
        You graphic_text routine now also handles all video modes, i'll make it
support Escape characters.(Also text mode works :))
        But now, you can do all the stuff universal, i.e. for all video_modes
without having to know which video_mode you are in.

Ralf Nieuwenhuijsen
nieuwen at xs4all.nl

new topic     » goto parent     » topic index » view message » categorize

4. Re: vector images.

Colin Taylor wrote:

>
>I am working on vector routines too.  In fact, the main module was done
>some time ago, but I haven't posted it because I am not too happy with
>one small part of it (arc drawing).  It is geared more to business and
>technical graphics than to games.  It does lines, polygons, rectangles,
>circles, arcs and text.  The closed shapes can be either be filled or
outlined. >The lines can be any color, width or style (dotted, etc).  Even
the text can be >done with styled lines!
>
>I have also worked up a file format for vector drawings which supports all
>the above features and enables scaling, rotation and panning of entire vector
>drawings.
>
>Still to be done:  PCL print routine.
>
>I would like to see your work.  Also, If anyone is interested, I could post
>my stuff (even though it is a work in progress).
>

I'm much interested in your stuff. please send them to me.

long ago, in my early days of Euphoria, i once wanted to make technical
graphic routines, however, even before make a line of code, i realized
it is beyond my capability mainly due to the text manipulation and
printing stuff...

in my old days of FORTRAN, i used PLOT88 graphic package to draw
technical graph. after that, i also used GRAPHICA program, which is
batch command-line driven graphic program designed for plotting scientic
graphs.

i don't like much so many great Window's graphic programs... since
those programs usually does not allow batch mode graphic...
i'will pray to God for you to complete your stuff soon... :->

Bye -- from Lee, woo seob...

new topic     » goto parent     » topic index » view message » categorize

5. Re: vector images.

-> > Mike Fowler wrote:
-> > >While at home today I whipped up some vector image routines - nothing
-> > >special, but working all the same.
-> >
-> > I am working on vector routines too.  In fact, the main module was
-> done > > some time ago, but I haven't posted it because I am not too
-> happy with > one small part of it (arc drawing).  It is geared more

->         Please do, whatever is already working can easily be adden to
-> nextGFX, that's finally getting some shape now. (A Big part is done,

well i've attached my feeble attempt... to you "pro's" out there thiss
will probibaly seem like crud, but then again - simple ideas are often
the great ideas (self-esteem booster:)

Its a ZIP file containing a demo prog, the routines, and a doc file.

Enjoy! :)

Mike Fowler - mike.fowler at nelsun.gen.nz
  o__ ---
 _,>/'_ ---
(_) \(_) ---
Tip for the month: Don't have a signature :)

                    ----------------------------------------
begin 777 VECTOR.ZIP
(:R$A(#HI*SP`
``
end

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu