Hi, I am new to PLIB and have a problem loading a 3d model.
I created a test app to see how PLIB works, and converted the viewer
into a nice OOP app that loads a model and display it. It works fine,
except I cant load textured models.
The textures are in the PNG format, and the loader says he cannot read
it and ask whether I installed ImageMagick. Of course I didnt, as I am
on Windows and not on Linux, so I got ImageMagick for Windows and
installed it. Started it again, same message. Thought maybe it
auto-detects the DLLs and converts by itself or something. Well, bad
thought. :P
Then it says I could convert them to rgb myself and reload the model, so
I typed: convert texture.png texture.rgb and sure enough I got a nice
RGB file. So I reloaded the model as told and it said: Sorry, unknown
magic byte. Couldnt recognize magic byte 0x0000. Wondering why its
0x0000 I loaded it with my hex editor and guess what, the whole picture
consisted of 00. Great, great tool, this ImageMagick stuff. :P
Now, how can I load my png files into PLIB? OR, how can I convert them
to RGB? Also, why was the rgb format chosen, its like the most
unsupported format I know for graphics?
SkyFlash
|