[Y-devel] Vector based engine...

Darryl darrylb at cfl.rr.com
Sat Mar 6 12:08:09 GMT 2004


Ok people...

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..

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. This will allow many neat functions 
but none we
will initially full integrate. Here is how i see the initial implimentation.

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)).

How do i think an implementation like this would happen? Well many 
things must be considered
Primarily vector based desktops will require HIGHER resources on the 
computer. As mentioned
above, to accomodate this, during intial installation of Y, it would 
scan and decide whether
it needs to use bitmaps or vectors.

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.

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. 

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?

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?

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

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. 

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.

My suggested "roadmap" is such:
The vector engine would be running, and "functional" by v.5 of Y.
The engine's bugs would be worked out by either .6 or .7* of Y.
A Good-theme(basic animations), and documentation for the system for 
developers
of the "eyecandy" before release of Y (around .8/.9).

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.

If this is vector based, wouldnt "y-tunneling" be much easier? In the 
end, all your sending
is the results of the math from the server. The client just reads 
numbers in the end. I feel
that with a basic compression, full VNC type effects could be 
accomplished. But then again
i may be entirely wrong.. *respond to this too!*

If you have any questions, commends, feedback PLEASE email me ASAP at
darrylb at cfl.rr.com
ICQ:  5537984
Aim: ManWithNoAnswers
MSN: darrylb88 at hotmail.com

MY goal is to have a GOOD theory ready for proposal within the next 
24hrs if possible.

Thanks!








More information about the Y-devel mailing list









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