there is a project by irrlicht about the solar system
and when i download it i found that the bitmaps and models are in a .DAT so i downloaded the source but i don't know how did import them to irrlicht of course he made his loader but how plz if u have time see the source i saw it and i saw how he made the loader but i am not sure and i am not sure how it works so help will be appreciated
omar shaaban wrote:there is a project by irrlicht about the solar system
and when i download it i found that the bitmaps and models are in a .DAT so i downloaded the source but i don't know how did import them to irrlicht of course he made his loader but how plz if u have time see the source i saw it and i saw how he made the loader but i am not sure and i am not sure how it works so help will be appreciated
and about your question:
loader very simple, it loads text file. from all DAT files only media.dat is binary ( it is simple ZIP-archive. Irrlicht provides great support of ZIP archives so its used ). All other DAT files are text files: config.dat is a configuration file. Open it in Notepad, it is easy to undertand the structure. All other DAT files defines the Solar System ( all objects, planets, moons, belts are defined here ).
Indeed you do not need sources to make changes in DAT files. but only in sources ZIP there is _dev folder which contains file "Map format.txt" that explains all the format of the format.
omar shaaban wrote:there is a project by irrlicht about the solar system
and when i download it i found that the bitmaps and models are in a .DAT so i downloaded the source but i don't know how did import them to irrlicht of course he made his loader but how plz if u have time see the source i saw it and i saw how he made the loader but i am not sure and i am not sure how it works so help will be appreciated
and about your question:
loader very simple, it loads text file. from all DAT files only media.dat is binary ( it is simple ZIP-archive. Irrlicht provides great support of ZIP archives so its used ). All other DAT files are text files: config.dat is a configuration file. Open it in Notepad, it is easy to undertand the structure. All other DAT files defines the Solar System ( all objects, planets, moons, belts are defined here ).
Indeed you do not need sources to make changes in DAT files. but only in sources ZIP there is _dev folder which contains file "Map format.txt" that explains all the format of the format.
so how do i import a txt file to irrlicht and what if i want a part of it not all of it!!?
Reading only partially? And pasing will be required, the complexity will depend on the text structure. If you use XML (also a text format) parsing is usually simpler than arbitrary text.
hybrid wrote:Reading only partially? And pasing will be required, the complexity will depend on the text structure. If you use XML (also a text format) parsing is usually simpler than arbitrary text.
how!? is there a link or a tutorial to learn from bec i didn't find!!
hybrid wrote:Ayn C/C++ book (just as all other programming languages) covers this stuff. It's basic programming stuff. Neither Irrlicht specific, nor 3d related.
yup i found it it seems my book is stupid not to mention inputs and output anyway i found it thanks