SDL + models

Hello

I was wondering if anybody has been working on a SDL library for loading
models. Something that could be used with OpenGL effectivally. Anybody have
any ideas for something like this.

Later Ben

hi

i#m not very confirm in programming grafics and english :wink:
i want to scroll a huge map of about 100x100 tiles or more.
at the moment i?m drawing the map to the screen.
when it has to move i copy the map and blit the part of the map i want to the
screen.
that is very slow. i?m searching for a better solution.

please help.
you can download example code from
http://stud.fbi.fh-darmstadt.de/~koenig/html/download.html .

no guarantee that the code works.

Mirko Koenig–
Fuer die einen ist es SuSe, fuer die anderen das laengste init-script
der Welt.

homepage : http://stud.fbi.fh-darmstadt.de/~koenig

e-amil : koenig at stud.fbi.fh-darmstadt.de

ICQ : 11181751

Hello

I was wondering if anybody has been working on a SDL library for loading
models. Something that could be used with OpenGL effectivally. Anybody have
any ideas for something like this.

hrm.
I wouldn’t know how to do an interface (ie: .h file) but I have loaders
for Quake II/Quake III characters, beginning of lightwave scene & object,
and somewhere around here .3ds. Been playing with DXF and DWG as well
(opendwg.org). At the moment they’re all pure OpenGL (I haven’t really
gotten into SDL yet).

Not sure really though.

None of it’s public yet 'cause hrm… honestly been trying to figure
out how I can make a living making this stuff grin. [no answer yet]
But it’s prolly worth it.

G’day, eh? :slight_smile:
- Teunis

PS: there’s always GooseEgg - a modeler/character format apparently used
in Quakeforge or one of the other Quake projects. Supports lots of
features. Not sure where to find it I’ve lost the WWW page. I think I
found it on quakeworld though.On Wed, 19 Jul 2000, Zander wrote:


Trying to bring truth from beauty is Winterlion.
find at this winterlions’ page

Mirko Koenig wrote:

hi

i#m not very confirm in programming grafics and english :wink:
i want to scroll a huge map of about 100x100 tiles or more.
at the moment i?m drawing the map to the screen.
when it has to move i copy the map and blit the part of the map i want to the
screen.
that is very slow. i?m searching for a better solution.

It’s certainly doable, as my project has a 3072x3072 tile map. I assume
you have an SDL_surface with a pointer to a chunk of memory which
represents the screen, and a ‘render’ routine which paints a rectangle
of tiles to a given spot in that buffer. Let’s say you want to scroll
the window one tile to the right on your map. First thing is to copy
all the pixels in your surface one tile’s width to the left, leaving an
unrendered column of tiles on the right side. Then render that column
of tiles from your map. Finally, blit to the screen. In addition,
you’ll want to keep track of the tile coord. of the top-left corner of
the window.

I know, it’s hard to describe this in words. If you want an example,
you can get source code at exult.sourceforge.net. Search for 'scroll’
or ‘view’ in ‘gamewin.cc’.

winterlion wrote:

Hello

I was wondering if anybody has been working on a SDL library for loading
models. Something that could e used with OpenGL effectivally. Anybody have
any ideas for something like this.

I’ve written a loader for AC3D models. It’s in a bit of an experimental
state at the moment (I wrote it as a testbed for some extensions I
wanted to propose to AC3D’s author). I’ll make the code available when I
have a chance to clean it up a bit.

AC3D can handle basic geometry and texture data. Unfortunately, it’s not
very good for animation.

-John> On Wed, 19 Jul 2000, Zander wrote: