Help - Search - Members - Calendar
Full Version: Building Constructor
Game Maker Community > Games > Game Maker Creations > Tools & Applications
Pages: 1, 2
L4nt0m
Building Constructor

I actually made this program to ease the the creation of buildings for some project I worked on, called Newcitysim.
but it's suitable for all 3d gamemaker games, since it exports objects as d3d_model (extension .nbf).

Features:
- mouse-controlled, easy to use modeller (thanks to Yourself's 2d to 3d script)
- saving as d3d model
- 7 different standard shapes: block, cylinder, cone, wedge, arch, floor and wall
- Really easy UV-mapping
- automatic normal fixing for basic shapes, it doesn't matter which way you drag, the normals are always good.

Update 2-4-07: recompiled it with Gm7, so it's Vista compatible

New in V1.3:
- mouse-movement
- view/grid changes
- layout updated
- textures now loadable from any folder
- mouse-selection
- doubleclicking an object will center the view on that object
- selecting groups (hold ctrl while selecting)
- group/ungroup (press 'g'/'u')
- various other fixes...

New in V1.22:
- added box where you see the dimension of the selected object.
- fixed bug in properties view of cylinders and cones.

New in V1.19:
- General program settings are now saved in ini-files
- scrolling with right mouse button when uv-mapping fixed

Download:
Download from yoyogames.com

Screenie:
ThatGamesGuy
This is pretty good. wink1.gif
Spengo
Nice, I like it. smile.gif
rolflyer
how to get it in GML to gamemaker?
ColdShellProductions
Good job this is inspiring i am going to make one. similar like a sim city but no sims
L4nt0m
QUOTE (ThatGamesGuy @ Aug 19 2005, 02:56 PM)
This is pretty good. wink1.gif
*

QUOTE (Spengo @ Aug 19 2005, 06:30 PM)
Nice, I like it. smile.gif
*


thanks biggrin.gif

QUOTE (rolflyer @ Aug 20 2005, 09:14 AM)
how to get it in GML to gamemaker?
*

in the create event of the object put:
CODE
//assuming you want to call the model the_model and the name of the file is model.nbf
the_model=d3d_model_create();
d3d_model_load(the_model,'model.nbf');

If you'd want, you can change the extension of the file.
Oh, and don't forget to change the , to . everywhere in the file (just open the file in notepad or something)

QUOTE (ColdShellProductions @ Aug 20 2005, 09:22 AM)
Good job this is inspiring i am going to make one. similar like a sim city but no sims

Good luck! (though you should definitly check out NewCitySim, we can always use some extra help whistle.gif)
L4nt0m
I've updated the Building Constructor. Check first post for changes.

If you have suggestions for the Building Constructor, plz tell me wink1.gif
game freak
Sweet easy to use.
Jesper
::lmao::WOOOOOOW lmaosmiley.gif
This really is a great program, waiting for the next version biggrin.gif

BTW, do you want credit?
L4nt0m
QUOTE (Jesper @ Sep 13 2005, 05:40 PM)
::lmao::WOOOOOOW lmaosmiley.gif
This really is a great program, waiting for the next version biggrin.gif

BTW, do you want credit?
*


thanks biggrin.gif

i would really appreciate it if you'd put the program in the credits list. It's not compulsory though...

by the way, if you want a new version, please give me some suggestions for the next version. im sorta out of ideas tongue.gif
Feohdys
QUOTE (L4nt0m @ Sep 13 2005, 07:06 PM)
QUOTE (Jesper @ Sep 13 2005, 05:40 PM)
::lmao::WOOOOOOW lmaosmiley.gif
This really is a great program, waiting for the next version biggrin.gif

BTW, do you want credit?
*


thanks biggrin.gif

i would really appreciate it if you'd put the program in the credits list. It's not compulsory though...

by the way, if you want a new version, please give me some suggestions for the next version. im sorta out of ideas tongue.gif
*



Well, I don't really have any ideas for improvements, but you could fix the bug that causes it to crash when you load a texture:

QUOTE
ERROR in
action number 1
of Mouse Event for Left Pressed
for object obj_options:

Trying to get texture from non-existing sprite.
L4nt0m
remember that you have to create a folder called 'textures' in the same folder as where you've put the BuildingConstructor in and put all your textures in there.
benny
in the create event of the object put:
CODE
//assuming you want to call the model the_model and the name of the file is model.nbf
the_model=d3d_model_create();
d3d_model_load(the_model,'model.nbf');

THIS IS NOT A REAL FUNCTION! that is not a real function! it says unkown function if you try and put that in.so please inform me how everybody else got it to work!!!!!!!!!!!!!!!!
WHY TORMENT ME SO!!!!!!!!!!!!
L4nt0m
You got gamemaker v6.1?
benny
ooh.i need that.well,no i dont.is it possible to use this with gm6.0?if so,plz tell me how
L4nt0m
no, it isn't
Feohdys
QUOTE (L4nt0m @ Sep 18 2005, 11:14 AM)
remember that you have to create a folder called 'textures' in the same folder as where you've put the BuildingConstructor in and put all your textures in there.
*


I did. It still crashed. I fixed it by using .bmp files instead of .tga, which is odd considering that targa is the standard for textures.
Mercury92
Link doesnt work sad.gif
linkw204
I CAN NOT DOWNLOAD IT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
KaizuSellgren
File has been deleted from the server.
L4nt0m
well, our forum sorta got deleted or something.
i used to host it there, but now i uploaded it to another server.

i also updated it to v1.21, which has for example the possibility to rotate the camera with the mouse. I posted the whole changelog on the forum, but that got deleted so no complete changelog sad.gif

see first post for link
Against The law
my model does not load on my game but it does not even show the model. sad.gif
L4nt0m
what version of gm are you using?
which commands did you use and in which actions do you perform them?
was the extension originally .nbf?
Against The law
my gm version is 6.1
and i used

//assuming you want to call the model the_model and the name of the file is model.nbf
the_model=d3d_model_create();
d3d_model_load(the_model,'model.nbf');

command in the create event
and its extension is .nbf
Ivan the Mage
You have to modify the properties of d3d_model_load depending on what your filename is.
Against The law
Like,give me an example.
Against The law
i figuered out and solved theproblem by writing a code in draw event of the object
code is
d3d_model_draw(the_model,x,y,0,background_get_text
ure(bk_1));

but the only problem is it is very small and it doesn't get it's own texture.
benny
well if you want to scale it you can do this:
d3d_transform_add_scaling(0.3,0.3,0.3);

you dont need 0.3.just using it as in example:)
Against The law
it didn't work.i used it in all event create,step,draw
Against The law
it didn't work.i used it in all event create,step,draw
L4nt0m
change 0.3 to something like 10:

d3d_transform_set_identity();
d3d_transform_add_scaling(10,10,10);
d3d_mode_draw(the_model,x,y,0,background_get_text
ure(bk_1));
d3d_transform_set_identity();
Against The law
yes it helped to draw the the model but it is not big enough and already changed the numbers 10 to different numbers and the model is tooooooo far from the original object.
L4nt0m
The model exported is exactly the one you modelled in the BuildingConstructor. You might scale it with some extreme values, like 100 or something, though it would be very inefficient.
Against The law
yes i used values like 10,10.9,100 & 1000 but when the value is > 10.9 the model doesn't show up.what is the problem.
Kalauz
I need detalied tutorial how to put it in the game.
L4nt0m
The .nbf file is just a normal saved gamemaker model, nothing special. Use the search function of this forum for topics regarding the gamemaker model commands.
Kalauz
And can u send me a tutorial how to make a building like on the screenshot.DETAILED PLZ
L4nt0m
if you read the tutorial DaMaster_Architect wrote, you will know the basics of the bc and you can make a building like that one yourself. i'm not gonna write another tutorial.
Kalauz
I looked at it,but it's kind a hard.Nevermind i will make it somehow.Great program BTV.
L4nt0m
thnx and good luck! smile.gif
Kalauz
Another thing,i cant i find a tutoriial how to import ndf files into GM,i looked at the thread but i cant make it.HELP
L4nt0m
After a long time, I've updated the Building Constructor. See the first post for link and changes.
justin123
I got an error:

Trying to get Texure from non-existing sprite

Can you fix that ?
L4nt0m
I got a pm from somebody a few days ago regarding the same problem. The solution is to make in the folder where the BuildingConstructor is, a folder called 'textures', and put the textures you want to use in the BuildingConstructor in that newly created folder. Now load the images in the BuildingConstructor out of that folder, then it should work! :-)
abacus
This is awesome. But you should be able to re-select shapes that you already did, and edit them.
L4nt0m
reselecting is done by the page up/page down buttons.
abacus
Ahhh, thank you. But mouse selection would be nice too. I don't like how much keyboard stuff there is, i like just mouse stuff. Maybe add some buttons for shapes instead of the show_menu?
L4nt0m
I made major update, check out the first post for the changes!
Darksoul
woow this is seorisly cool thanx for sharing it with us
kickassgames
Awesome program man i'm definitaly using it in my game and giving you a lot of credit
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.