Phantom107 Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Phantom107 Forum

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

 

 3D room maker

Go down 
2 posters
AuthorMessage
slayer64
Heavy Poster
slayer64


Posts : 143
Join date : 2008-01-05

3D room maker Empty
PostSubject: 3D room maker   3D room maker Icon_minitimeSat Jan 05, 2008 4:22 am

well game maker is pretty much 2d when it comes to making levels. right? well with this anyone can make 3d levels, and set variables for specific instances. it does not have the ability to be exported to a text file because i dont want to GIVE away something this useful. i'm sure there are other ways of making levels and using dlls to make all the collisions for a REAL 3d game. if u know of some free model designers and ways to make 3d collisions for game maker, well i'd love to hear them. tell me what u think of this program.

http://host-a.net/slayer64/3D%20Room%20maker.zip
Back to top Go down
Phantom107
Admin
Phantom107


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

3D room maker Empty
PostSubject: Re: 3D room maker   3D room maker Icon_minitimeSat Jan 05, 2008 4:40 am

When you add an export function, it will be useful to a lot of people. However, this requires you to write a collision system for it. Speaking of which, I haven't seen a single gamemaker game having some good 3d collisions! Good luck.
Back to top Go down
https://phantom107.actieforum.com
slayer64
Heavy Poster
slayer64


Posts : 143
Join date : 2008-01-05

3D room maker Empty
PostSubject: Re: 3D room maker   3D room maker Icon_minitimeSat Jan 05, 2008 5:00 am

collisions r already taken care of. here is a slice of code for u.

Code:
if z<other.z+other.zheight
&& z+16>other.z
{
        if place_meeting(x+hspeed,y-vspeed,other)
        {
            x=xprevious;       
            hspeed=0;
        }
   
        if place_meeting(x-hspeed,y+vspeed,other)
        {
            y=yprevious;
            vspeed=0;
        }
}

this code will make the current object stop and SLIDE against it. it only works for horizontal and vertical walls.
and have you seen Mega Block Man. its a game i made. look on YoYo games for it.
Back to top Go down
Phantom107
Admin
Phantom107


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

3D room maker Empty
PostSubject: Re: 3D room maker   3D room maker Icon_minitimeSat Jan 05, 2008 1:11 pm

OK, that's great! Now onto the next level, where things get one hell of a lot complicater: slopes! That's were the fun begins Twisted Evil

Also, when exporting, don't forget to use speed technique 6.
Quote :

Technique 6
Caution: This technique only works if you know exactly what you're doing; otherwise it will lower performance.
Generate terrain to big models. For example, if you have a terrain with grass and ground, generate all grass to one big grass model, and generate all ground to one big ground model.

In other words, if you have multiple boxes with the same texture, you could generate all those boxes to one big model. You keep the actual objects, and use them for collisions, but they don't execute a draw event. The controller should draw the big model.
Back to top Go down
https://phantom107.actieforum.com
slayer64
Heavy Poster
slayer64


Posts : 143
Join date : 2008-01-05

3D room maker Empty
PostSubject: Re: 3D room maker   3D room maker Icon_minitimeSun Jan 06, 2008 3:26 am

Making the whole room 1 model.

yea i was thinking about that. but then? what if? i wanted a draw distance. if it was 1 model then that would be impossible, right? here is a piece of code for slopes, just a square object with the right z being higher than the left z.
Code:

if x<=other.x+32
{
    ds_list_add(list,other.z+(x-other.x)/4)

    count=0;


        do
        {
            z+=.1
            count+=1
            if count>20 break
        }
        until
            z>other.z+(x-other.x)/4
}

its OLD code so in new code i would probably make a while statementinstead of a DO. the ds_list is for storing the z and then finding the highest one after the object has collided with all floor objects. like if it was on an edge and collided with the one underneath. i would replace ds_list with an array in NEW code.
Back to top Go down
Phantom107
Admin
Phantom107


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

3D room maker Empty
PostSubject: Re: 3D room maker   3D room maker Icon_minitimeSun Jan 06, 2008 1:32 pm

I don't know what kind of game you're going to use this room editor for, but in my current FPS engine it is actually faster to draw the world as one big model.
Back to top Go down
https://phantom107.actieforum.com
slayer64
Heavy Poster
slayer64


Posts : 143
Join date : 2008-01-05

3D room maker Empty
PostSubject: Re: 3D room maker   3D room maker Icon_minitimeSun Jan 06, 2008 6:26 pm

well the game im making isn't graphically demanding so it wont really matter either way. my laptop has a 1.73 Ghz processor and nothing lags so far, and there is no draw distance. but i was thinking about other people who have a really old computer. i agree that one big model is definitely faster than multiple draw events.
Back to top Go down
Phantom107
Admin
Phantom107


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

3D room maker Empty
PostSubject: Re: 3D room maker   3D room maker Icon_minitimeSun Jan 06, 2008 6:29 pm

slayer64 wrote:
i agree that one big model is definitely faster than multiple draw events.

Not for racing games, or any other type of game which requires gigantic levels! In that case you should make areas, each with a big terrain model.
Back to top Go down
https://phantom107.actieforum.com
slayer64
Heavy Poster
slayer64


Posts : 143
Join date : 2008-01-05

3D room maker Empty
PostSubject: Re: 3D room maker   3D room maker Icon_minitimeMon Jan 07, 2008 12:04 am

oh of course. GTA isn't one big model right? its different sections loaded in when they are needed. so i guess fewest models and draw events are best.
Back to top Go down
Sponsored content





3D room maker Empty
PostSubject: Re: 3D room maker   3D room maker Icon_minitime

Back to top Go down
 
3D room maker
Back to top 
Page 1 of 1
 Similar topics
-
» game maker site
» Ideal Room Editor Icons

Permissions in this forum:You cannot reply to topics in this forum
Phantom107 Forum :: Creations/Work In Progress-
Jump to: