News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

DIRECTX 9.0C tutorial 6 Meshes

Started by ToutEnMasm, October 18, 2007, 05:36:28 PM

Previous topic - Next topic

ToutEnMasm

Hello,
Here is the last tutorial of the series.
Meshes are the prefered method to do animation.For directx,the standard format is .x.
You can download free generator and meshes (of several formats ).
No change in the header's.Downlod lights to have it.
The executable,is only dowloadable on my site.Too big.
http://perso.orange.fr/luce.yves/tiger.zip
Source code is here.

[attachment deleted by admin]

herge

 Hi ToutEnMasm:

That's a very nice EXE thanks!
An animation of a tiger that rotates.

Regards herge
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

UtillMasm

Microsoft (R) Windows Resource To Object Converter Version 5.00.1736.1
Copyright (C) Microsoft Corp. 1992-1997. All rights reserved.

Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: meshes.asm
..\d3dx9mesh.inc(630) : error A2006: undefined symbol : PDWORD
..\d3dx9mesh.inc(630) : error A2195: parameter or local cannot have void type
..\d3dx9mesh.inc(630) : error A2129: VARARG parameter must be last parameter
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

/SUBSYSTEM:WINDOWS
LINK : fatal error LNK1181: cannot open input file "meshes.obj"
Press any key to continue . . .
-------------------------------------------------------------------
I need you help!!!
Thanks.

ToutEnMasm

Hello,
To recompile it,you must have the sdk directx 9.0c installed.
A LPDWORD is a Low Pointer Dword,that is a dword and you can change it to a DWORD.
A PDWORD is a pointer on a DWORD and you can change it to a DWORD,pointer is 4 bytes.
Don't lets you abuse by the many definitions of the c++ , download the translator and have a look on *egal*.txt.This files defines c++ value in masm value.
Most of them,are in egales.txt who is extract from the vista.sdk
Some lib and dll can be have changes since i have write it,don't be afraid it is directx,changes are numerous.


UtillMasm