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

Material diffuse color export #199

Closed
orhanod opened this issue Apr 19, 2016 · 4 comments
Closed

Material diffuse color export #199

orhanod opened this issue Apr 19, 2016 · 4 comments
Labels
Milestone

Comments

@orhanod
Copy link

orhanod commented Apr 19, 2016

Hi,

I can't seem to export material diffuse colors (probably others too) properly. I have several objects with different diffuse colors in a blender file, but all of them have exactly "0.3,0.3,0.3" as diffuse setting in exported .mtl file.

P.S. You have to set texture color contribution to less than 1 to see diffuse color affecting the object color.

Thanks,

Orhan ODABAŞI

@feedbackex
Copy link
Collaborator

feedbackex commented Apr 19, 2016

Hi Orhan,
Are you use Blender Renderer or Cycles?

Actually material exporting is not reliable between 3D software and game engines because of those software use self shaders for rendering. So same material values can be showed very different on each of them. For that reason we just export texture for materials. If you even would export color information correctly, you would change that information on cryengine material editor in the name of satisfying result.

Are you sure about that color exporting? Are you have a specific reason for diffuse color?

@orhanod
Copy link
Author

orhanod commented Apr 20, 2016

Hi feedbackex,

I use blender renderer and I know It will look different in the engine, but less different with correct diffuse and less fiddling in the material editor.

I first saw #30 in the issue list. It talks about multiplying diffuse value with diffuse intensity. So, I thought it must be of importance. I'm relatively new to game development, doing tests, playing with things and all, and I notice that textures are mandatory (at least in cryengine). So, I created a white, noisy texture for my test models and using diffuse I make variations. Also, it could be a great way of using less textures for similar surfaces and memory optimization.

Anyway, It wouldn't hurt to export actual values instead of constant 0.3, as currently they are not used because textures, by default, has %100 contribution, if I get it right.

Thanks,

Orhan

@feedbackex
Copy link
Collaborator

I have understood your aim @orhanod . I will be interested in that at my convenient time.

@feedbackex
Copy link
Collaborator

Cryblend has no any bug about writing color information on dae file. But CryEngine resource compiler do not process color information for material. Therefore, we must directly write MTL file rather than in DAE like Maya or 3dsMax, also we may create a different menu to export material file again like Maya and 3dsMax.

I have transfered that issue to #211

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

No branches or pull requests

2 participants