Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How could i retreive shader model of a material ? #106

Open
flarive opened this issue Dec 29, 2024 · 1 comment
Open

How could i retreive shader model of a material ? #106

flarive opened this issue Dec 29, 2024 · 1 comment

Comments

@flarive
Copy link

flarive commented Dec 29, 2024

Hello,

Me again :)

My 3ds max scene have 2 meshes and 2 materials.
One of them (giantbug) is a phong based material, the other one (plane) is an anisotropic based material.

max1
max2

In the demo, i can see phong shader model for both materials, i should i be able to see different shader model such as phong, lambert, anisotropic, oren nayar, strauss...
In my case i would have expected phong for the first material and anisotropic for the second one.

debug

In openfbx i can't find any mat->getShadingModel() that could give me a phong or anisotropic enum value.

Thanks a lot for your help

@flarive
Copy link
Author

flarive commented Dec 30, 2024

3ds max and blender seems to support only phong and lambert as shading model.

In Autodesk FBX SDK documentation, getShadingModel() should return a string.
https://download.autodesk.com/us/fbx/sdkdocs/fbx_sdk_help/files/fbxsdkref/class_k_fbx_surface_material.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant