Presentation is loading. Please wait.

Presentation is loading. Please wait.

Game Programming Step-08 Learn to Load models *.x file into the game.

Similar presentations


Presentation on theme: "Game Programming Step-08 Learn to Load models *.x file into the game."— Presentation transcript:

1 Game Programming Step-08 Learn to Load models *.x file into the game. http://www.prasansoft.com

2 Purpose Step 08 Learn to Load models *.x file into the game http://www.prasansoft.com

3 Create Folder “SATAN” in Step-08 http://www.prasansoft.com

4 Keep file “SATAN.x” in folder “SATAN” Model enemy http://www.prasansoft.com

5 Write Command in Step-08 SATAN=101 LOAD OBJECT"SATAN\satan.X",SATAN SCALE OBJECT SATAN,600,600,600 POSITION OBJECT SATAN,1400,0,2000 SET OBJECT LIGHT SATAN,2 http://www.prasansoft.com

6 Write command follow line 4-8 http://www.prasansoft.com

7 SATAN=101 This command define variable name SATAN And assign value to 101 Is not unique in the system. http://www.prasansoft.com

8 LOAD OBJECT This command loads a model into the specified 3D object number. You must specify a model in the X, 3DS, MDL, MD2 or MD3 format. Syntax LOAD OBJECT Filename, Object Number LOAD OBJECT Filename, Object Number, Texture Mode Example LOAD OBJECT "SATAN\satan.X",SATAN http://www.prasansoft.com

9 SCALE OBJECT This command will scale the specified 3D object to stretch or shrink in all three dimensions, using percentage scale values. Syntax SCALE OBJECT Object Number, XSize, YSize, ZSize Example SCALE OBJECT SATAN,600,600,600 http://www.prasansoft.com

10 SCALE OBJECT This command will place the specified 3D object in 3D space. In order to see your 3D object. Syntax POSITION OBJECT Object Number, X, Y, Z Example POSITION OBJECT SATAN,1400,0,2000 http://www.prasansoft.com

11 SET OBJECT LIGHT This command will set the light state of the specified object. Syntax SET OBJECT LIGHT Object Number, Flag Example SET OBJECT LIGHT SATAN,2 http://www.prasansoft.com

12 Result Step-08 http://www.prasansoft.com


Download ppt "Game Programming Step-08 Learn to Load models *.x file into the game."

Similar presentations


Ads by Google