You can read a little bit about FBX here. Basically it's an open standard, platform independent 3D file format created by AutoDesk. You can also export to DirectX. For simplicity, the model is placed at world coordinates 0, 0, 0. Create a field for the model position:. How did I arrive at these values? The vector consists of the x, y, and z axis position of the model.
X is left-right, Y is up-down, and Z is in-out. If you look at the screenshots of the cube above, you will notice a grid. Each grid line represents one unit, therefore the cube is a 2 units wide, 2 units long, and 2 units tall. The camera is position ten units away from the world center 0, 0, 0 which creates a reasonably sized rendering of the cube.
Note that you do not specify the file extension. While we're here, let's also get the aspect ratio of the viewport our window as this is necessary for rendering the model so that it looks like a cube. Add the field:. Modify the Draw method so that it iterates through the model meshes, translating and rotating them appropriately, etc.
The following is a brief description of what is going on in the above method. Learn more. Ultimate beginner's tutorial to 3d game dev using XNA Framework? Asked 10 years, 7 months ago. Active 5 years, 8 months ago. Viewed 7k times. Improve this question. Corey Ogburn Corey Ogburn 1, 1 1 gold badge 10 10 silver badges 19 19 bronze badges.
Add a comment. Active Oldest Votes. Improve this answer. The Overflow Blog. Uploaded by station Internet Archive's 25th Anniversary Logo. Search icon An illustration of a magnifying glass. User icon An illustration of a person's head and chest. Sign up Log in. Web icon An illustration of a computer application window Wayback Machine Texts icon An illustration of an open book.
Books Video icon An illustration of two cells of a film strip. Video Audio icon An illustration of an audio speaker.
Audio Software icon An illustration of a 3. Software Images icon An illustration of two photographs. Images Donate icon An illustration of a heart shape Donate Ellipses icon An illustration of text ellipses. XNA 4.
0コメント