Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / can not see object

Author
Message
super skull
22
Years of Service
User Offline
Joined: 16th Jun 2004
Location: usa
Posted: 1st Sep 2004 01:32
im just trying to get a object to load but after it loads you can not see the object here is my code. please help!
Sir Spaghetti Code
21
Years of Service
User Offline
Joined: 12th Jul 2004
Location: Just left of Hell
Posted: 1st Sep 2004 01:56 Edited at: 1st Sep 2004 01:59
First of all, you should probably make a matrix to set the object on. Also, do put the model in the same directory as your project. You may also need to scale up the model, as sometimes loaded objects get placed into a program VERY small (maybe scale up 900,900,900). Try this:
Maybe try that out. That was mostly taken from this tutorial: http://developer.thegamecreators.com/?f=t01/3d_tutorial_index Mayeb try out doing that tut first! Hope this helps!

P.S.- What this code is going to do is make a matrix for your model to be on, then lets you move the camera around with the arrow keys so you can view it from every angle! This is a great first program for loading a model. Also, you will need some kind of texture to replace "grass09.bmp". You can replace it with whatever you want to texture the matrix with! Have fun and post again to let me know how it turns out.

super skull
22
Years of Service
User Offline
Joined: 16th Jun 2004
Location: usa
Posted: 1st Sep 2004 02:07 Edited at: 1st Sep 2004 02:10
still not showing could it be the object?
some objects i load work and others don't.
Sir Spaghetti Code
21
Years of Service
User Offline
Joined: 12th Jul 2004
Location: Just left of Hell
Posted: 1st Sep 2004 02:10
Are you using .mdl? and what version of DB? DBC or DBP?

super skull
22
Years of Service
User Offline
Joined: 16th Jun 2004
Location: usa
Posted: 1st Sep 2004 02:11
it is mdl and im using dbp
Sir Spaghetti Code
21
Years of Service
User Offline
Joined: 12th Jul 2004
Location: Just left of Hell
Posted: 1st Sep 2004 02:26
I'm not quite sure, but I do not think that .mdl is supported. Give me a sec and I'll find out.

Sir Spaghetti Code
21
Years of Service
User Offline
Joined: 12th Jul 2004
Location: Just left of Hell
Posted: 1st Sep 2004 02:31
Oops, DBP says it does support .mdl, but I have never heard of someone using it. I would suggest changing them to .X if you can (check out Ultimate Unwrap3D: http://www.unwrap3d.com/). .Xs work fine for me!

super skull
22
Years of Service
User Offline
Joined: 16th Jun 2004
Location: usa
Posted: 1st Sep 2004 02:39
sorry should have checked that
Sir Spaghetti Code
21
Years of Service
User Offline
Joined: 12th Jul 2004
Location: Just left of Hell
Posted: 1st Sep 2004 02:52
Well, DBP says it does support .mdl, but I know it has problems with .3ds, so it may have problems with .mdl as well. Not many people use that format in DB as far as I know. I would suggest doing that tutorial that I linked to above. It is technically for DBC, but I did it in DBP no problem. Have fun!

Login to post a reply

Server time is: 2026-07-07 10:11:48
Your offset time is: 2026-07-07 10:11:48