3d stuff

heya.

is there any good extension for sdl that i.e. software draw textured
triangles ? i am not thinking about mesa or such stuff, but rather something
similar to fatmap32.

the second question is - when we use sdl^mesa how to determine if we are
using now hardware or software drawing method? what i am going to is that i
want to replace some of mesa software drawing functions with my own, which
are faster :wink:

andā€¦ when i run on x4.0^1024x768x16bpp^mdk with accel - when i run sdl app
which open 800x600 window - i can see stretching - fiting window to
fullscreen. on rh there is just 800x600 window. how to control this stuff?
is this determined by x servers or sdl ?

thanks a lot and dont blame for lame :wink:

  • firefoxā€“

Zamow odbitki ze zdjec cyfrowych lub archiwum zdjec na CD!
[ http://lab.foto.onet.pl/laboratorium.html ]

heya.

is there any good extension for sdl that i.e. software draw textured
triangles ? i am not thinking about mesa or such stuff, but rather
something similar to fatmap32.

How about TinyGL? (Not that Iā€™ve used it myself yetā€¦)

http://www.stud.enst.fr/~bellard/TinyGL.html

the second question is - when we use sdl^mesa how to determine if we
are using now hardware or software drawing method? what i am going to
is that i want to replace some of mesa software drawing functions with
my own, which are faster :wink:

Thereā€™s a problem there; you need to bypass SDL entirely to do that
rendering, or youā€™ll end up having SDL ā€œdownloadā€ an RGBA texture to
Mesa, which then has to blend that to the screenā€¦ heh

Or you could make software Mesa render into an SDL texture. :slight_smile:

andā€¦ when i run on x4.0^1024x768x16bpp^mdk with accel - when i run
sdl app which open 800x600 window - i can see stretching - fiting
window to fullscreen. on rh there is just 800x600 window. how to
control this stuff? is this determined by x servers or sdl ?

Stretchingā€¦? As in ā€œOpenGL pretends that the screen is 800x600, while
transparently scaling the transformation vectorsā€?

Would make sense in a way, but OTOH, life is just too easy for OpenGL
applications WRT screen resolutions. Why should the system confuse
matters by automatically ā€œsimulateā€ unsupported resolutions, potentially
breaking OpenGL applications that rely on pixel accurate rendering?
(Thereā€™s no way to scale graphics without visible artifacts! Besides,
texture filtering must be turned off for tiled map rendering and similar
2D stuff to work with scaling.)

Anyway, Iā€™ve been using Mandrake and XFree86 4.0.x on machines with G400,
Rage128/Mach64 and Rage Pro 128 and never seen anything like that. Of
course, that might just be because of my huge collection of modelines. :slight_smile:

//David Olofson ā€” Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -'On Friday 26 October 2001 15:40, firefox wrote:

How about TinyGL? (Not that Iā€™ve used it myself yetā€¦)
http://www.stud.enst.fr/~bellard/TinyGL.html

i will check this out, but all stuff with GL in name seems to beā€¦ slow.
:wink:
hmmā€¦ tommorow i start my weekend so my intuition tells me that i will have
to
write this by myself. thanks for help anyway.

Thereā€™s a problem there; you need to bypass SDL entirely to do that
rendering, or youā€™ll end up having SDL ā€œdownloadā€ an RGBA texture to
Mesa, which then has to blend that to the screenā€¦ heh

sounds shitty, but iā€™ll keep trying.

Or you could make software Mesa render into an SDL texture. :slight_smile:

indeed. i am sco unix developer already, so i saw worse things :wink:

Stretchingā€¦? As in ā€œOpenGL pretends that the screen is 800x600, while
transparently scaling the transformation vectorsā€?

something like that.

Would make sense in a way, but OTOH, life is just too easy for OpenGL
applications WRT screen resolutions. Why should the system confuse
matters by automatically ā€œsimulateā€ unsupported resolutions, potentially
breaking OpenGL applications that rely on pixel accurate rendering?

i was reading that indeed there is something like this already avaible.

(Thereā€™s no way to scale graphics without visible artifacts! Besides,
texture filtering must be turned off for tiled map rendering and similar
2D stuff to work with scaling.)

yeah, i know. :wink:

Anyway, Iā€™ve been using Mandrake and XFree86 4.0.x on machines with G400,
Rage128/Mach64 and Rage Pro 128 and never seen anything like that. Of
course, that might just be because of my huge collection of modelines. :slight_smile:

i have riva zx :wink:
thatā€™s why software rendering on my pc runs faster then ogl :wink:
and i am going to move to G450 or some kind of gfrc.

  • firefoxā€“

Zamow odbitki ze zdjec cyfrowych lub archiwum zdjec na CD!
[ http://lab.foto.onet.pl/laboratorium.html ]

How about TinyGL? (Not that Iā€™ve used it myself yetā€¦)
http://www.stud.enst.fr/~bellard/TinyGL.html

i will check this out, but all stuff with GL in name seems to beā€¦
slow. :wink:

Well, not if itā€™s h/w accelerated, of course, but other than that, you
seem to be quite right.

However, TinyGL seems to be optimized specifically for software
rendering. It even takes the liberty of not being 100% OpenGL compatible,
mainly for the sake of speed.

hmmā€¦ tommorow i start my weekend so my intuition tells me that i will
have to
write this by myself. thanks for help anyway.

Thatā€™s quite some work if you want it real fastā€¦ Even more work if itā€™s
supposed to look good AND be real fast.

You could probably rip the texturing code from some 3D game from the
early days of h/w acceleration, back when software rendering still had to
be playable. (Several of those engines are now GPLed.)

There might be some interesting code in Quake, Quake II, maybe also the
floor/ceiling texturing from Doom. (Although I think the ZDoom code is
faster - itā€™s probably the fastest source port around, and itā€™s optimized
for current CPUs.)

[ā€¦]

Anyway, Iā€™ve been using Mandrake and XFree86 4.0.x on machines with
G400, Rage128/Mach64 and Rage Pro 128 and never seen anything like
that. Of course, that might just be because of my huge collection of
modelines. :slight_smile:

i have riva zx :wink:
thatā€™s why software rendering on my pc runs faster then ogl :wink:

It canā€™t be that bad, can it!? :wink:

and i am going to move to G450 or some kind of gfrc.

Iā€™m very happy with the G400/Eizo F980 combo, but I would probably go for
a GeForce based card unless I really was going to use 1600x1200+
resolutions. GeForce 2 is much faster than the G400 and G450, and the
GF3 should be ever faster. (The G450 isnā€™t faster than the G400, but has
a better secondary output. In fact, the G450 is sometimes slightly slower
because of the half width, double speed bus.)

The major advantage or the Matrox cards (and ATI cards to some extent) is
that they happily generate high quality video signals at resolutions
beyond 1600x1200, which is not the case with any GF based cards.
(Integrated crap RAMDAC in the GF chips - silly nVidiaā€¦) I have a
machine with a GF2 card and a good 19" monitor, and in fact, the image
was sharper with the old Permedia-2 based cardā€¦

Oh, a G400 does run Quake III pretty well, so whatā€™s the big deal? :wink:

//David Olofson ā€” Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -'On Friday 26 October 2001 17:08, firefox wrote:

the second question is - when we use sdl^mesa how to determine if we are
using now hardware or software drawing method? what i am going to is that i
want to replace some of mesa software drawing functions with my own, which
are faster :wink:

Time the routines at runtime.

Allegedly, Brian Paul swears that he wonā€™t change the GL_RENDERER value of
glGetString(), so you can supposedly determine if youā€™re in software mesa
from that.

BUT.

  1. Certain accelerated drivers will fall into software mesa just for
    certain paths, which, depending on what your application does, might claim
    to be hardware accelerated when in fact they are spending most of their
    time on the CPU.

  2. It takes a lot of faith to assume that that damned string will never
    change again.

  3. Other vendors could put out a non-mesa, software GL implementation, in
    which case, any check you do on GL_RENDERER will be worthless.

And, if youā€™ve got faster software routines, PLEASE get them added to Mesa
itself if at all possible. ANYTHING to speed up software mesa is a good
thing in my book.

andā€¦ when i run on x4.0^1024x768x16bpp^mdk with accel - when i run sdl app
which open 800x600 window - i can see stretching - fiting window to
fullscreen. on rh there is just 800x600 window. how to control this stuff?
is this determined by x servers or sdl ?

Check /etc/X11/XF86Config or the equivalent on your platform; you need a
modeline to tell the monitor how to run at 800x600. Red Hat might supply
one, whereas Mandrake may not.

ā€“ryan.