Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
w3dutil.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
4**
5** This program is free software: you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation, either version 3 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19/* $Header: /Commando/Code/Tools/max2w3d/w3dutil.h 29 10/26/00 5:59p Greg_h $ */
20/***********************************************************************************************
21 *** Confidential - Westwood Studios ***
22 ***********************************************************************************************
23 * *
24 * Project Name : Commando Tools - W3D export *
25 * *
26 * $Archive:: /Commando/Code/Tools/max2w3d/w3dutil.h $*
27 * *
28 * $Author:: Greg_h $*
29 * *
30 * $Modtime:: 10/26/00 4:40p $*
31 * *
32 * $Revision:: 29 $*
33 * *
34 *---------------------------------------------------------------------------------------------*
35 * Functions: *
36 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
37
38
39#ifndef W3DUTIL_H
40#define W3DUTIL_H
41
42#include <Max.h>
43#include "utilapi.h"
44#include "dllmain.h"
45#include "resource.h"
46#include "util.h"
47#include "w3dappdata.h"
48
49#define W3DUtilityClassID Class_ID(0x3c362c97, 0x5fc73ab0)
50
51ClassDesc * Get_W3D_Utility_Desc(void);
52
53
54
55/*
56** W3dExportOptionsStruct - This structure is AppData that is attached
57** not to an INode, but to the exporter class itself. It stores the
58** export settings so that they come up the same next time, which
59** facilitates batch exporting (just use the stored settings).
60**
61** WWScript.dlx uses this structure to tell if a scene depends on
62** the HTree exported by another scene.
63*/
65{
70
71 // Hierarchy Export options:
73 char HierarchyFilename[_MAX_PATH];
74 char RelativeHierarchyFilename[_MAX_PATH]; // For storing in MAX file
75
76 // Animation Export options:
79
80 // Geometry Export options;
82
83 // Option to apply smoothing between mesh boundaries
85
86 int space[10]; // blank space, so compression options default proper
87
88 // More Animation Options
96
97 // Option to prevent the exporter from exporting AABTrees with the meshes
98 // Defined with the "inverse" sense so that older Max files default to having
99 // AABTrees exported with their meshes.
101
102 // Option to cause the exporter to optimize mesh data. Defaulting to zero
103 // causes older Max files to default to not messing with their mesh data.
105
106 // Option to cause the exporter to ignore the Export_Transform setting for
107 // all meshes. Terrains should have all meshes exported in world space.
109
110 // Option to cause the exporter to generate textures from all materials using
111 // only diffuse color (no textures). All such material colors will be placed
112 // into one texture page to improve batch rendering of models.
114};
115
116
117
118
119/*
120** Functions to access the W3D AppData of any INode.
121** An accessor function for each AppData we define is required.
122** Our extensions to the MAXScript language (wwCopyAppData)
123** uses these accessors.
124*/
125W3DAppData0Struct * GetW3DAppData0 (INode *node);
126W3DAppData1Struct * GetW3DAppData1 (INode *node);
127W3DAppData2Struct * GetW3DAppData2 (INode *node);
129
130#endif
char RelativeHierarchyFilename[_MAX_PATH]
Definition w3dutil.h:74
bool EnableMaterialColorToTextureConversion
Definition w3dutil.h:113
float CompressAnimationRotationError
Definition w3dutil.h:94
char HierarchyFilename[_MAX_PATH]
Definition w3dutil.h:73
float CompressAnimationTranslationError
Definition w3dutil.h:93
W3DAppData1Struct * GetW3DAppData1(INode *node)
Definition w3dutil.cpp:2034
W3DAppData2Struct * GetW3DAppData2(INode *node)
Definition w3dutil.cpp:2039
ClassDesc * Get_W3D_Utility_Desc(void)
Definition w3dutil.cpp:323
W3DDazzleAppDataStruct * GetW3DDazzleAppData(INode *node)
Definition w3dutil.cpp:2044
W3DAppData0Struct * GetW3DAppData0(INode *node)
Definition w3dutil.cpp:2029