Phantom107 Forum

Phantom107's Forum. Discuss about games, GML, 3d, game design here. Enjoy your stay ;)
 
HomeFAQSearchRegisterMemberlistUsergroupsLog in

Share | 
 

 gun models

Go down 
AuthorMessage
slayer64
Heavy Poster
avatar

Posts : 143
Join date : 2008-01-05

PostSubject: gun models   Sat Jan 05, 2008 5:14 am

here are some gun models already in game maker model format. they are not the most stylish or efficient but are better than nothing. use this code to load them into game maker.

Code:
model_gun1=d3d_model_create();
d3d_model_load(model_gun1,'Gun1');

you have to do that with each model, but im sure there are more efficient ways.

http://host-a.net/manage.html
Back to top Go down
View user profile
Phantom107
Admin
avatar

Posts : 206
Join date : 2008-01-03
Location : The Netherlands

PostSubject: Re: gun models   Sat Jan 05, 2008 12:54 pm

Is that link correct? it gives me nothing. A little search provided the right link: click

I haven't tested the models in gamemaker, but I know there is a more efficient way to load them. Get the program POTV 2 (not by me) and convert your models to *.mpv format. Since this is Gamemaker's native 3d file format, loading speeds will be increased.
Back to top Go down
View user profile http://phantom107.actieforum.com
Guilty Sparks
Heavy Poster
avatar

Posts : 154
Join date : 2008-01-05
Location : USA East Coast

PostSubject: Re: gun models   Sat Jan 05, 2008 5:26 pm

is it supposed to look like this? 100
4042
0 4.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
8 -3.4200 1.1700 2.1100 0.0000 0.7100 0.7100 0.7100 0.4700 0.0000 0.0000
8 -2.5400 1.1700 1.8200 0.0000 0.6400 0.6400 0.6400 0.4500 0.0000 0.0000
8 -2.2300 1.1700 2.1700 0.0000 0.6100 0.6100 0.6100 0.4700 0.0000 0.0000
8 -3.4200 1.1700 2.1100 0.4200 0.7100 0.7100 0.7100 0.4700 0.0000 0.0000
8 -3.2900 1.0000 1.8200 0.4200 0.7000 0.7000 0.7000 0.4500 0.0000 0.0000
8 -3.2900 1.1700 1.8200 0.4200 0.7000 0.7000 0.7000 0.4500 0.0000 0.0000
8 -3.2900 1.1700 1.8200 0.0000 0.7000 0.7000 0.7000 0.4500 0.0000 0.0000
8 -2.5400 1.1700 1.8200 0.0000 0.6400 0.6400 0.6400 0.4500 0.0000 0.0000
8 -3.4200 1.1700 2.1100 0.0000 0.7100 0.7100 0.7100 0.4700 0.0000 0.0000
8 -3.2900 1.1700 1.8200 1.0000 0.7000 0.7000 0.7000 0.4500 0.0000 0.0000
8 -3.2900 1.0000 1.8200 1.0000 0.7000 0.7000 0.7000 0.4500 0.0000 0.0000
8 -2.5400 1.0000 1.8200 1.0000 0.6400 0.6400 0.6400 0.4500 0.0000 0.0000
8 -2.5400 1.0000 1.8200 1.0000 0.6400 0.6400 0.6400 0.4500 0.0000 0.0000
8 -2.5400 1.1700 1.8200 1.0000 0.6400 0.6400 0.6400 0.4500 0.0000 0.0000
8 -3.2900 1.1700 1.8200 1.0000 0.7000 0.7000 0.7000 0.4500 0.0000 0.0000
8 -1.7900 1.1700 1.8200 0.0000 0.5700 0.5700 0.5700 0.4500 0.0000 0.0000
8 -1.6000 1.1700 1.8200 0.0000 0.5500 0.5500 0.5500 0.4500 0.0000 0.0000
8 -2.2300 1.1700 2.1700 0.0000 0.6100 0.6100 0.6100 0.4700 0.0000 0.0000
8 -1.7900 1.1700 1.8200 0.0000 0.5700 0.5700 0.5700 0.4500 0.0000 0.0000
8 -1.7900 1.1700 1.7800 0.0000 0.5700 0.5700 0.5700 0.4400 0.0000 0.0000
8 -1.5900 1.1700 1.7800 0.0000 0.5500 0.5500 0.5500 0.4400 0.0000 0.0000
8 -1.5900 1.1700 1.7800 0.0000 0.5500 0.5500 0.5500 0.4400 0.0000 0.0000
8 -1.6000 1.1700 1.8200 0.0000 0.5500 0.5500 0.5500 0.4500 0.0000 0.0000
8 -1.7900 1.1700 1.8200 0.0000 0.5700 0.5700 0.5700 0.4500 0.0000 0.0000
8 -2.2300 1.1700 2.1700 -1.0000 0.6100 0.6100 0.6100 0.4700 0.0000 0.0000

Sometimes my winzip downloads dont work... Rolling Eyes
Back to top Go down
View user profile
slayer64
Heavy Poster
avatar

Posts : 143
Join date : 2008-01-05

PostSubject: Re: gun models   Sun Jan 06, 2008 3:30 am

sorry for the BAD link, i am a NooB.

i dont know what u r talking about Guilty Sparks. load the model with game maker.
Back to top Go down
View user profile
Phantom107
Admin
avatar

Posts : 206
Join date : 2008-01-03
Location : The Netherlands

PostSubject: Re: gun models   Sun Jan 06, 2008 1:28 pm

That's how GM model files look like. Basically a bunch of coordinates.

But how come there is no file extention?
Back to top Go down
View user profile http://phantom107.actieforum.com
Guilty Sparks
Heavy Poster
avatar

Posts : 154
Join date : 2008-01-05
Location : USA East Coast

PostSubject: Re: gun models   Sun Jan 06, 2008 4:37 pm

idk thats how I got it, should I add something?
Back to top Go down
View user profile
Phantom107
Admin
avatar

Posts : 206
Join date : 2008-01-03
Location : The Netherlands

PostSubject: Re: gun models   Sun Jan 06, 2008 6:03 pm

Well it isn't necessary, but you should give it an unique file extention to keep that format apart from other formats. For example lets say you create the format *.gmm (Game Maker Model). That format doesn't officially exist but that doesn't matter because it's possible to create your own file extentions. Just rename the name of the model to: "model_weapon.gmm". Now in GM, you could load it up with:

Code:
model = d3d_model_create();
d3d_model_load(model,'model_weapon.gmm');
Back to top Go down
View user profile http://phantom107.actieforum.com
Guilty Sparks
Heavy Poster
avatar

Posts : 154
Join date : 2008-01-05
Location : USA East Coast

PostSubject: Re: gun models   Wed Jan 16, 2008 11:22 pm

nice, but how do you add textures to them?
Back to top Go down
View user profile
slayer64
Heavy Poster
avatar

Posts : 143
Join date : 2008-01-05

PostSubject: Re: gun models   Thu Jan 17, 2008 2:30 am

d3d_model_draw(model,global.texture[0]);

this will take a texture out of the texture array that u should have made in the beginning of the game or room, and draw the model with that texture.

the texture array looks like this in the GAME START event

global.texture[0]=background_get_texture(background0);
global.texture[1]=background_get_texture(background1);

this way it is fastest. rather than calling background_get_texture lots of times.
Back to top Go down
View user profile
Phantom107
Admin
avatar

Posts : 206
Join date : 2008-01-03
Location : The Netherlands

PostSubject: Re: gun models   Thu Jan 17, 2008 11:00 am

No no no, do not make textures global: you can't get rid of them in-game anymore when you do this!
Back to top Go down
View user profile http://phantom107.actieforum.com
slayer64
Heavy Poster
avatar

Posts : 143
Join date : 2008-01-05

PostSubject: Re: gun models   Thu Jan 17, 2008 4:48 pm

why would u get rid of them?? wait, so u only load the textures u need in a particular level. right? oh i see's.
Back to top Go down
View user profile
Watever742
Active Member
avatar

Posts : 39
Join date : 2008-01-21

PostSubject: Re: gun models   Wed Jan 23, 2008 9:22 am

dude my guns why u taking them and getting all credit?!?!??!?!

the reason i took off model extension is because i didnt want it to get edited at all so then if u change it to .obj it will not load onto a modeler such as blender,wings 3d, or truespace
Back to top Go down
View user profile
Phantom107
Admin
avatar

Posts : 206
Join date : 2008-01-03
Location : The Netherlands

PostSubject: Re: gun models   Wed Jan 23, 2008 6:12 pm

Removing file extentions isn't a way to get your work secured. People can just change the file extention and load it up. For example, if the file was originally *.obj format, people could simply rename the file to file_name.obj and load it up. Next time better create a small *.txt file with the other files stating you get all the credit and that people aren't allowed to use it without your permission. You should give your email address too so people could contact you for permission.

- Phantom107
Back to top Go down
View user profile http://phantom107.actieforum.com
slayer64
Heavy Poster
avatar

Posts : 143
Join date : 2008-01-05

PostSubject: Re: gun models   Thu Jan 24, 2008 2:15 am

thats a good idea but someone could still steal the models. i found an encrytor that can save text files to a certain pass phrase. i haven't got a link 4 it, and i haven't messed with it but it exists. so one could run this encryption on a file and then save it. its a game maker extension.
Back to top Go down
View user profile
Watever742
Active Member
avatar

Posts : 39
Join date : 2008-01-21

PostSubject: Re: gun models   Thu Jan 24, 2008 9:58 am

i changed stuff to the model and then i took off format so u couldnt load it into the modeler but that my secret
Back to top Go down
View user profile
stewrat
Loyal Poster
avatar

Posts : 78
Join date : 2008-01-04

PostSubject: Re: gun models   Thu Jan 24, 2008 8:31 pm

Stingy. It takes work to do anything, but I'd rather spend time working on a good game than good graphics. That's why real game teams SHARE all their stuff.
Back to top Go down
View user profile http://www.yogamerclub.piczo.com
Phantom107
Admin
avatar

Posts : 206
Join date : 2008-01-03
Location : The Netherlands

PostSubject: Re: gun models   Thu Jan 24, 2008 10:27 pm

Real teams have everything split up. Gameplay, graphics and music are all seperate departments. Every department has their own professionals specialised in what they do.

In real teams, the programmers don't have to worry about their graphic resources. The graphics team takes care of that. That's the problem when making your own games. You have to take care of everything.
Back to top Go down
View user profile http://phantom107.actieforum.com
stewrat
Loyal Poster
avatar

Posts : 78
Join date : 2008-01-04

PostSubject: Re: gun models   Fri Jan 25, 2008 12:11 am

So why do we have this forum again?
Back to top Go down
View user profile http://www.yogamerclub.piczo.com
Phantom107
Admin
avatar

Posts : 206
Join date : 2008-01-03
Location : The Netherlands

PostSubject: Re: gun models   Fri Jan 25, 2008 12:14 am

stewrat wrote:
So why do we have this forum again?

To prevent your game ending like total crap...
Back to top Go down
View user profile http://phantom107.actieforum.com
stewrat
Loyal Poster
avatar

Posts : 78
Join date : 2008-01-04

PostSubject: Re: gun models   Fri Jan 25, 2008 12:15 am

_________________
"Science without religion is lame. Religion without science is blind." - Albert Einstein


Read the Apologia science books then! tongue
Back to top Go down
View user profile http://www.yogamerclub.piczo.com
stewrat
Loyal Poster
avatar

Posts : 78
Join date : 2008-01-04

PostSubject: Re: gun models   Fri Jan 25, 2008 12:15 am

what does that mean?
Back to top Go down
View user profile http://www.yogamerclub.piczo.com
Sponsored content




PostSubject: Re: gun models   

Back to top Go down
 
gun models
Back to top 
Page 1 of 1
 Similar topics
-
» Review: Mario And Luigi: Superstar Saga (Wii U VC)

Permissions in this forum:You cannot reply to topics in this forum
Phantom107 Forum :: Graphics-
Jump to: