Sign in to follow this  
Canvas

Md3loader working (sometimes)

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

[url="https://gitorious.org/md3simpleloader"]https://gitorious.org/md3simpleloader[/url]

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

Canvas

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:

[code]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
[/code]

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this