Log in

I forgot my password

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Who is Online ?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

[ View the whole list ]


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
 

Poll
Statistics
We have 20 registered users
The newest registered user is ttnnqq08

Our users have posted a total of 300 messages in 85 subjects

how to make 3d games :)

View previous topic View next topic Go down

Suggestion/idea how to make 3d games :)

Post by Quinlan Vos on Mon Jul 28, 2008 1:17 am

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 Smile //
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 No //
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 Smile

Quinlan Vos
Moderator
Moderator

Male Number of posts: 36
Age: 17
Location: Kiffu
Mem. Points:
40 / 10040 / 100

Mod. Points:
0 / 1000 / 100

Warning Bar:
100 / 100100 / 100

Talk About your Self!: may the force be with you Smile
Registration date: 2008-07-15

Character sheet
Rate your Gaming ability's!:
90/100  (90/100)

View user profile

Back to top Go down

Suggestion/idea Re: how to make 3d games :)

Post by Quinlan Vos on Wed Jul 30, 2008 11:44 am

Exclamation Exclamation

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 Smile

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 Smile

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 Smile

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 Smile

Quinlan Vos
Moderator
Moderator

Male Number of posts: 36
Age: 17
Location: Kiffu
Mem. Points:
40 / 10040 / 100

Mod. Points:
0 / 1000 / 100

Warning Bar:
100 / 100100 / 100

Talk About your Self!: may the force be with you Smile
Registration date: 2008-07-15

Character sheet
Rate your Gaming ability's!:
90/100  (90/100)

View user profile

Back to top Go down

Suggestion/idea Re: how to make 3d games :)

Post by OmegraKai on Tue Aug 12, 2008 3:56 am

Cool!!

OmegraKai
Founder
Founder

Male Number of posts: 141
Age: 24
Mem. Points:
95 / 10095 / 100

Mod. Points:
100 / 100100 / 100

Warning Bar:
100 / 100100 / 100

Talk About your Self!: I am A Gamer!!
Registration date: 2008-04-06

Character sheet
Rate your Gaming ability's!:
74/100  (74/100)

View user profile

Back to top Go down

View previous topic View next topic Back to top


Permissions of this forum:
You cannot reply to topics in this forum