Log in

I forgot my password

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Who is online?
In total there are 2 users online :: 0 Registered, 0 Hidden and 2 Guests

None

[ View the whole list ]


Most users ever online was 22 on Fri Dec 01, 2017 5:20 am
Poll
Statistics
We have 23 registered users
The newest registered user is mariwaigjka

Our users have posted a total of 303 messages in 86 subjects

how to make 3d games :)

Go down

Suggestion/idea how to make 3d games :)

Post by Quinlan Vos on Sun Jul 27, 2008 7:17 pm

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
Quinlan Vos
Moderator
Moderator

Male Number of posts : 36
Age : 28
Location : Kiffu
Mem. Points :
how to make 3d games  :) Left_bar_bleue40 / 10040 / 100how to make 3d games  :) Right_bar_bleue

Mod. Points :
how to make 3d games  :) Left_bar_bleue0 / 1000 / 100how to make 3d games  :) Right_bar_bleue

Warning Bar :
how to make 3d games  :) Left_bar_bleue100 / 100100 / 100how to make 3d games  :) Right_bar_bleue

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

Character sheet
Rate your Gaming ability's!:
how to make 3d games  :) Left_bar_bleue90/100how to make 3d games  :) Empty_bar_bleue  (90/100)

Back to top Go down

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

Post by Quinlan Vos on Wed Jul 30, 2008 5: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
Quinlan Vos
Moderator
Moderator

Male Number of posts : 36
Age : 28
Location : Kiffu
Mem. Points :
how to make 3d games  :) Left_bar_bleue40 / 10040 / 100how to make 3d games  :) Right_bar_bleue

Mod. Points :
how to make 3d games  :) Left_bar_bleue0 / 1000 / 100how to make 3d games  :) Right_bar_bleue

Warning Bar :
how to make 3d games  :) Left_bar_bleue100 / 100100 / 100how to make 3d games  :) Right_bar_bleue

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

Character sheet
Rate your Gaming ability's!:
how to make 3d games  :) Left_bar_bleue90/100how to make 3d games  :) Empty_bar_bleue  (90/100)

Back to top Go down

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

Post by OmegraKai on Mon Aug 11, 2008 9:56 pm

Cool!!
OmegraKai
OmegraKai
Founder
Founder

Male Number of posts : 141
Age : 35
Mem. Points :
how to make 3d games  :) Left_bar_bleue95 / 10095 / 100how to make 3d games  :) Right_bar_bleue

Mod. Points :
how to make 3d games  :) Left_bar_bleue100 / 100100 / 100how to make 3d games  :) Right_bar_bleue

Warning Bar :
how to make 3d games  :) Left_bar_bleue100 / 100100 / 100how to make 3d games  :) Right_bar_bleue

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

Character sheet
Rate your Gaming ability's!:
how to make 3d games  :) Left_bar_bleue74/100how to make 3d games  :) Empty_bar_bleue  (74/100)

Back to top Go down

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

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


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