GameMakerHelpBlog

Saturday, November 25, 2006

3D - Start

this code will start the 3D world for FPS but not actually show it i will post more turtorials to do that later
In create event
[code]
{
friction = 0.2;
// initialize 3D
d3d_start();
d3d_set_hidden(true);
d3d_set_lighting(false);
d3d_set_culling(false);
d3d_set_fog(true,c_white,10,300);
// interpolate textures
texture_set_interpolation(true);
}
[/code]
This will set fog and other stuff that doesn't effect your game

Coming soon: Camera 3D FPS Code

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home