[Y-devel] Vector based engine...

Sebastian Faubel sfaubel at gmx.de
Sat Mar 6 03:07:16 GMT 2004


Hi!

> Im currently working on a paper about putting an optional vector based 
> engine into Y.
> Ive been doing a lot of research, and here is a few highlights of what i 
> have come up with.
> At the endof this, i will be asking for response to a few questions..

Nice to hear, i'm currently working on that engine right now ;)

> First, My goal was if we as y-windows put in an optional confiugration 
> (option) to allow
> a scan of hardware which determines whether the computer can or cannot 
> handle a
> near-complete vector based system.

Nice idea, keen on hearing how you intend to do that.

> The initial implementation would basically be a core engine which gets 
> turned on and off
> when its on, the computer is full rendered as vectors but animations are 
> set minimal. Any
> major eyecandy (i.e. what Mac OSX does, or Looking Glass will be doing) 
> will be done either
> in the future, or by third party people (i.e. a "gui management system" 
> like addon (such as
> the equivalent to KDE for eye-candy)).

I was planning to have a set of vector drawing routines using cairo and
some low-level drawing routines as they are currently implemented. I
thought it would be the best to let the current theme decide which ones
to use.

There definitly needs to be support for high-performance/"low quality"
drawing routines, as if not, this would screw any system below 1ghz -
and this truly cannot be desired.

> Now, to do 100% vectors would not be all-that possible unelss 1.5ghz+ 
> and nice vid cards were used.
> Why? Well, here is an example. Lets rasterize a movieclip at 800x600 (on 
> a 1152x864 resolution monitor)
> in real-time of play. What im saying here, is lets convert a bitmap 
> movie into vectors real-time for output
> on the screen.. Uhm.. Thats going to KILL resources. So my solution is this:
>     We have two ways we can handle this. Either open a spot in the 
> vectors for playback
>     Overlay bitmap ontop of the vector desktop.

Why make it so complicated? In my opinion it is the best to add vector
drawing routines as an option, and to use them where they are suitable
for... This way anybody can easily dicide how and where to use them for
themselves.

A complete vector based system would be insane. We already had this
discussion in some earier threads, read them if you didn't already do
so... 

> Now what i mean by opening a spot in the vectors is this. We would 
> create a "hole" in the 1152x864 screen
> for an 800x600 bitmap which has NO VECTORS what-so-ever. This would 
> eliminate the rasterizing of the bitmap
> movie to vectors, and truly save a LOT of resources.
> 
> The other solution, is to overlay the movie ontop of the desktop. This 
> has many nice features to it, i.e. leaving
> the desktop there underneathe which would allow smoother movement of 
> windows. (i think???)

> Ive been doing research, and its sort of silly to reinvent libraries 
> that are already out there. I have found
> Cairo which is a vector based Rendering system which is licensed as MIT. 
> Which i looked into and should
> be plenty acceptable for us. 

It is indeed, and i'll implement this as soon as i have finished my
improved pixelbuffer. Currently the pixelbuffer is almost finished.
It already has support PNG images and dynamic file loading, so no more
including image files in C source is needed by this time, harhar :D 

The new pixelbuffer is needed as a base for this drawing routines,
because the current one is not very memory efficient / flexible and
handy. It only supports RGBA image data and usually reserves a lot more
system memory than really needed.

I already fetched the latest snapshot of cairo & cairo-svg and i'll add
SVG image support the next days. After that i'll start working on the
drawing routines.

The firs thing i'll do for me, is to have a svg based mouse cursor...;)

> Now again, this is all me doing research... Im just wanting input. I 
> feel everyone wants to do this, the
> debatable part is HOW we do it. Some features we would get from this, 
> besides an AWESOME looking
> desktop, is that Y is being created to replace X, and allow more 
> capabilities. By having a vector based
> option, would truly allow us to expand, and let other "development 
> groups" maybe even make Y a competitive
> option against Sun's Looking Glass and Quartz for the Mac. Again, we 
> would only have a core. Probably
> leave the true eyecandy to the themes ;) (up for debate also).
> 
> ------
> So here are my questions.
> Does anyone know of a better library (rendering system) for SVG vectors 
> than Cairo? Anyone have experience
> with it?

as i said, we already discussed this in some very early threads.

> Does anyone have a solution to the "resource-hog" type system that would 
> be created if we were to truly
> render a 100% vector'd desktop?

yes, sort of. As i already said, a 100% vector system doesn't really have
benefits and isn't reasonable either, as any vector will get rasterized
anyway. Despite that, it would devour system resources as hell.

I go for having 2 sets of drawing routines.

> What is everyones OVERALL feeling about my "suggested" implementaiton?
> Any questions comments feedback appreciated...

mhhh, for my flavour this would go a little bit too far.

> ------
> 
> Again, im writing a paper, currently its two pages, shocking longer then 
> this email, about what can be
> done to allow this to "work" good. Once enough information is gathered, 
> and i feel that I have come up
> with a good solution to accomplishing this, I will speak with mark and 
> see what his response is, and see
> if we can do this thing. At which point, i will create a "team" to help 
> me with this project. 

Very nice, can i read it somewhere? I already spoke to Mark about this,
if i got him right, he liked my solution and planned to include it for
version 0.3.

> I also imagine future implemenation of OpenGL also. I.e. Cairo if i was 
> reading properly, will be supporting
> OpenGL soon.. Its in the roadmap very shortly.

correct.

> My suggested "roadmap" is such:
> The vector engine would be running, and "functional" by v.5 of Y.

will rather be 0.3 ;) Mark stated that he makes the improved drawing
routines, as proposed by me a criterion for this version.

you can look it up in the mailing list archives,
the message is dated to:

Re: [Y-devel] Cairo 2D drawing library.
Wed, 25 Feb 2004 23:56:08 +0000


have a look at the current road map:
https://y-win-wiki.jciteassist.org/y-win-wiki/Roadmap

also interesting:
https://y-win-wiki.jciteassist.org/y-win-wiki/TaskList

> The engine's bugs would be worked out by either .6 or .7* of Y.

hmm, we'll see...

> A Good-theme(basic animations), and documentation for the system for 
> developers of the "eyecandy" before release of Y (around .8/.9).

I already spoke to a theme desinger, she was interested in making a SVG
base theme for Y. As soon as the engine is ready, i'll get back to her,
so this also could be reached earlier...

> Again this is based approval from Mark, and the roadmap is just a 
> guess-timate but this
> allows us to hav etime to do it PROPERLY, and yet have a stable system 
> before first main
> release. (i feel this will take a lot of work, but i feel the benefits 
> outweigh the time involved)
> 
> Also, a side comment. I was thinking about this with someone else.

You help would be very appreciated. Please consider reading the earlier
posts to this theme in the list.

greetings,

sebastian




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved