Jump to content
  • Advertisement
Sign in to follow this  

Md3loader working (sometimes)

This topic is 2270 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys, i do apologize about making a topic again, but this time its a actually working md3 loader, but there is some tiny bugs, What i have at the moment it will load the MD3 model file, it stores the correct data just for the vertices and triangles, now there is 3 different things that can happen, when ran there is 3 different out comes,
1 : Displays the mario head fine.
2 : Displays the mario head with 1 or 2 or many more random vertices that just make it look weird.
3 : Nothing is displayed in the window.

If anyone has any idea on why this is happening it would be awesome, If you want my code you can find it here


Just use the git@gitorious.org:md3simpleloader/md3simpleloader.git to pull down the repository, its open source so :)


Share this post

Link to post
Share on other sites
Hmm, just a heads up; I guess I was denied permission to clone your repo:

~$ git clone git@gitorious.org:md3simpleloader/md3simpleloader.git
Cloning into 'md3simpleloader'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

EDIT: nvm, got it. Had to add a public key there.

new considerations:

1. had to chmod +x configure
2. had to make clean (to remove the existing .o objects in src, are they supposed to be commited?)
3. I copied the data folder into src as I don't want to run make install
4. running simplegame crashed here on a glBufferData(). didn't debug much.. there goes, in case it's helpful:

Program received signal SIGSEGV, Segmentation fault.
0xb7ca3dfd in __memcpy_ssse3 () from /lib/libc.so.6
(gdb) bt
#0 0xb7ca3dfd in __memcpy_ssse3 () from /lib/libc.so.6
#1 0xb5b8f221 in ?? () from /usr/lib/xorg/modules/dri/r300_dri.so
#2 0xb5dad588 in ?? () from /usr/lib/xorg/modules/dri/r300_dri.so
#3 0xb5d49b9a in ?? () from /usr/lib/xorg/modules/dri/r300_dri.so
#4 0xb5d075c0 in ?? () from /usr/lib/xorg/modules/dri/r300_dri.so
#5 0x0804b71f in GameAsset::make_buffer (this=this@entry=0x8138470, target=target@entry=34962, buffer_data=0x813c218, buffer_size=202116108) at GameAsset.cpp:102
#6 0x0804ba6c in GameAsset::make_resources (this=0x8138470) at GameAsset.cpp:158
#7 0x0804ccc2 in Md3Asset::md3ModelLoad (this=this@entry=0x8138470, filename=filename@entry=0x804e98f "data/mario/HEAD.md3") at Md3Asset.cpp:177
#8 0x0804d0ad in Md3Asset::Md3Asset (this=0x8138470, filename=0x804e98f "data/mario/HEAD.md3") at Md3Asset.cpp:5
#9 0x08049ce0 in main (argc=1, argv=0xbfffe8a4) at Main.cpp:105

Share this post

Link to post
Share on other sites
OK i will try and sort it out today later on as ive got uni soon, also i havent changed any code in the GameAsset.cpp or GameAsset,h so maybe i did and thats the problem, hopfully that error may help, also im running on Linux Fedora 15

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!