Archived

This topic is now archived and is closed to further replies.

mirrormack

my particle system demo with mirroring

Recommended Posts

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

Share this post


Link to post
Share on other sites
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 ...

Share this post


Link to post
Share on other sites
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)...

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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???

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
huh? i wrote two different answers and i ended up having
the first answer posted here twice???

anyway, it seems that SDL_Image is only for loading images.
imlib2 can also save images, so if you want say png/jpg
screenshots of your opengl scene, then imlib2 is quite an
easy solution.

i think i''ll stick with imlib2 until SDL_Image can also
save pictures...

Share this post


Link to post
Share on other sites