my particle system demo with mirroring

Started by
12 comments, last by mirrormack 21 years, 9 months ago
if you have linux with sdl and imlib2 installed, check out my particle demo (triangle and point particle sources and a big mirror) at http://www.hut.fi/~vhelin/lgpsm.tar.gz all comments are welcome. and for people without such nice things there''s a screenshot on (scroll down) http://www.hut.fi/~vhelin/lg.html
Advertisement
Sorry I don''t have Imlib. How can I get it ? May I download it from its web site, or is it a package included in linux distros ?
ah, here you can get it (imlib2):

http://sourceforge.net/project/showfiles.php?group_id=2

a good image loader/saver (the code''s really messy,
but it works).
I''ve been playing a long time with linux libraries, but finally I got it working !
Well, almost : it doesn''t read textures. Apart from that it runs fine. Mirrors are correctly calculated from any point of view.

Don''t you think it''s a bit slow ? Maybe there are too many particles ...
hmm... if it doesn''t read the textures then you don''t
have the *loader* libraries installed correctly, i guess (it
still runs, but you get gray textures and errors like
''TXT_LOAD_DATA_IMLIB2: Could not load image "xyz".'').

anyway, it''s not that slow on my work machine (P4/2.4 & GF4TI4600). on my home machine (athlon classic 700 & gf2pro)
it is a little slow... time for an upgrade i say. that
radeon 9700 looks tasty (if i had the money)...
It''s possible that I don''t have the libraries correctly installed, but in that case it''s imlib that makes incomplete installation because I used the standard rpm and I had no error or even warning message.

It''s not very slow... just working around 60 fps !
I created less particles (modified source code) and yes it works clearly faster ! but obviously not so sweet with less particles
you did rpm -i all the *loader* -rpms as well??? not only
the basic imlib2.rpm? it might be that the loaders aren''t in the
library path? here they seem to install to

/usr/lib/loaders/image, so perhaps adding that to the lib path
(/etc/ld.so.conf and running ldconf) might help???
You mean that in addition to imlib and imlib2, I have to install a loader for each file format ?
Darn, this library is hellish !
@mirrormack:
Are there any advanteges in using imlib2 rather than SDL_image?
vincoof:

yes, that''s true. i don''t know why the person in charge of
imlib2 wanted to do that, but that''s the way imlib2 works. ;P

anonymous poster:

holy sh*t, i didn''t know there was such a thing as SDL_Image!
it wasn''t mentioned in the SDL doc project so i''ve missed
it completely. i think it''d be wiser to ditch imlib2 support
and use SDL_Image instead... thanks for the info!

This topic is closed to new replies.

Advertisement