Good morning
when trying to run the X file inside MS DirextX viewer, there is a constant error on the above file missing, is this file required?
When using DirextX shaders inside MAX, these are exported, how the resulting X file with the shader can be viewed, seems that MS viewer ignores them.
I am also looking for a map of material types that cannot b exported from 3DS max.
And last, are there any sample X file successfuly exported with KW? We need to get some grasp of the possible complexity of such file, number of poligons etc. when planed to run on a modern card (like ATI 5850)
The kW X-port exporter
The kW X-port exporter supports three material kinds:
1) Multi-Sub material
2) DirectX Shader material (preferred)
3) Standard Material
It supports standard Bitmap texmaps only (no procedural bitmaps).
If you check the "export shader" checkbox, but use standard materials, then kW X-port will generate a reference to a file named "kwxport.fx" and set parameters based on the texture maps you have configured in the standard material. It is up to you to generate the proper kwxport.fx file for your needs, because this is specific to each engine.
In general, I would suggest using DirectX Shader materials when you use Export Shader, or not checking Export Shader if you're using Standard materials.
The best sample .X file exported I know is publicly available is "archer.x" from the XNA Animation components over at http://www.enchantedage.com/. Note that that file is not free for re-use in your own projects.
float4
@12.390071: Skipping unknown FX parameter named 'AmbientColor' (id 4).
@12.390078: Skipping unknown FX parameter named 'DiffuseColor' (id 5).
@12.390083: Skipping unknown FX parameter named 'SpecularColor' (id 6).
This means that the type of
This means that the type of the parameter comes out as something that kW X-port doesn't understand. kW X-port does understand TYPE_POINT4, so the fact that it's a color must mean that it's some other type. Sadly, the log message doesn't say what type it is.
There are colors in the "diffuseonly.fx" shader in the kW Animation example (for fog color). Those export fine. I wonder what the difference is?
float4
I add this in my shader (just copy from diffuseonly.fx shader for experiment):
float4 FogColor <
string UIName = "Fog Color";
string UIType = "ColorSwatch";
> = float4(0.7, 0.7, 0.7, 0);
And I export my model(model.x). Log file of export my model(model.x.log) contain this message: @1.068397: Skipping unknown FX parameter named 'FogColor' (id 8).
This is strange. In archer.x file I finded this material parameter:
EffectParamFloats {
"FogColor";
4;
0.700000,
0.700000,
0.700000,
0.000000;
}
Hmmm.... maybe reason of this message that I use 3DS MAX 9 version? (maybe I should use 3DS MAX 10?)
upd: I open threeboxes2.max and export this model. Log of export contain: Skipping unknown FX parameter named 'FogColor'
That's interesting. If it can
That's interesting. If it can be reproduced with threeboxes, then at least I might be able to look at it myself.
I have to say that my focus is on 3ds Max 2010 (and the beta of 2011) rather than version 9, though -- that's now four versions behind. 2010 is a very nice upgrade from 2008 and 2009; they are doing small but notable improvements each year. The new material explorer is very useful, for example.
That's really
That's really interesting...
I install 3DSMAX 2010. install kwxport plugin. open threeboxes2.max file. export model......
And log file contain this message "@5,892776: Skipping unknown FX parameter named 'FogColor' (id 10)."
Why??????
Em..... kwxport, maybe you will give an example?? As you do it (export color parameters)???
float4
Ok. I will try it in 2010 version. As soos as I will find it; And I type results.
float4
(dblpost)
float4
I using DirectX shader material on my model. And I using float4 parameter type in my shader(diffuse color etc.)
float4 AmbientColor < string UIName = "AmbientColor"; > = {0.3, 0.3, 0.3, 1.0};
At export I check "Export shader" "Export materials" parameters. And my model.x file do not contain any float4 parameters.
At export by using FBX exporter all be ok.
kwxport plugin support float4 parameters in DXShader material? Or maybe I do not correctly something?
(sorry, my English is bad =) )