Log in
Who is Online ?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest None
Most users ever online was 6 on Tue May 12, 2009 7:23 pm
Top posters
| OmegraKai | |||||
| AracnoX | |||||
| Quinlan Vos | |||||
| sebalex11 | |||||
| Ice Burner | |||||
| GamerMom | |||||
| StrandedGamer | |||||
| Pennythescripter123123 | |||||
| drizzt7 | |||||
| Bloody Sage |
Statistics
We have 20 registered usersThe newest registered user is ttnnqq08
Our users have posted a total of 300 messages in 85 subjects
how to make 3d games :)
Page 1 of 1 • Share •
how to make 3d games :)
This is just a tutorial/class type thingy that will show you how to make awesome 3d game.
keep in mind that d3 games require the user to have the PRO edition of the game maker.
#1: Every function that has to do with 3d starts with preface d3d_
EX: d3d_translation_set_identity()
#2: Before you can mess with 3d you must type in a code in either the room creation code or the create event of your main character, that lets game maker know that you going in 3d mode, and you must select a couple of different settings or prefrences.
EX:
{
d3d_start() //this lets GM know that your in 3d mode
//
d3d_set_hidden(true) //this makes sure that instances behind others will not be shown, to relly see what this dies put false and see what happedns lol
//
d3d_set_lighting(false) //turns light on and off, light is a little morecomplicated so we'll just put false for now//
d3d_set_culling(true), //culling is not needed it is just a memory and time saver. culling turns on and off inside drawing for example when draw a 3d box your character will only see the outside, not the inside, so when culling is turned on the insides will not be drawn//
}
next time we will learn about the different types of projection
keep in mind that d3 games require the user to have the PRO edition of the game maker.
#1: Every function that has to do with 3d starts with preface d3d_
EX: d3d_translation_set_identity()
#2: Before you can mess with 3d you must type in a code in either the room creation code or the create event of your main character, that lets game maker know that you going in 3d mode, and you must select a couple of different settings or prefrences.
EX:
{
d3d_start() //this lets GM know that your in 3d mode
d3d_set_hidden(true) //this makes sure that instances behind others will not be shown, to relly see what this dies put false and see what happedns lol
//d3d_set_lighting(false) //turns light on and off, light is a little morecomplicated so we'll just put false for now//
d3d_set_culling(true), //culling is not needed it is just a memory and time saver. culling turns on and off inside drawing for example when draw a 3d box your character will only see the outside, not the inside, so when culling is turned on the insides will not be drawn//
}
next time we will learn about the different types of projection

Quinlan Vos- Moderator

-
Number of posts: 36
Age: 17
Location: Kiffu
Mem. Points:



Mod. Points:



Warning Bar:



Talk About your Self!: may the force be with you
Registration date: 2008-07-15
Character sheet
Rate your Gaming ability's!:


(90/100)
Re: how to make 3d games :)
Today we learn abour projection, this is the one thins aside fro there being a z vector that differenciates 3d from 2d.
you can't have a 3d game without, its kinda of like human eyes, it sits at a certain point and looks to a certain point.
the basis of the code is this
d3d_set_projection(xfrom,yfrom,zfrom,xto,yto,zto,xup,yup,zup)
the first three tell us where the "eyes or "camera" is
the middle three tell us where it is looking
the last three give us a rotation s the person can be looking up ir down and all sorts of things
EX:
{
d3d_set_projection(100,100,10,200,100,10,0,0,1);
}
but heres the problem lets say your making a first person shooter. This means that when you press the arrow keys the point to where you are looking changes! how in tarnation do we do this?
this actully requires trigonometry
EX: if we want to find the x,y coor of looking ahead, no matter which direction we are facing use this
x+sin((direction+90)*pi/180)
y+cos((direction+90)*pi/180)
that may look very complicated but all you have to do is copy and paste
EX:
d3d_set_projection(x,y,z,x+sin((direction+90)*pi/180),y+cos((direction+90)*pi/180),z,0,0,10)
next time we learn how to draw 2d in 3d, yknow like drawing the score, you actully have to change projection for a bit

Quinlan Vos- Moderator

-
Number of posts: 36
Age: 17
Location: Kiffu
Mem. Points:



Mod. Points:



Warning Bar:



Talk About your Self!: may the force be with you
Registration date: 2008-07-15
Character sheet
Rate your Gaming ability's!:


(90/100)

OmegraKai- Founder

-
Number of posts: 141
Age: 24
Mem. Points:



Mod. Points:



Warning Bar:



Talk About your Self!: I am A Gamer!!
Registration date: 2008-04-06
Character sheet
Rate your Gaming ability's!:


(74/100)
Permissions of this forum:
You cannot reply to topics in this forum


