Dad72 Posted June 26, 2018 Share Posted June 26, 2018 Salut, Les textures spéculaires ne sont jamais exportées avec l'export 3ds max (2017). Tous mes modèles sont des textures, diffuses, spéculaires et bosselées. Diffuse et bump sont correctement exportés, mais pas les spéculaires. Merci d'avance. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 26, 2018 Share Posted June 26, 2018 Pinging @noalak for awareness Quote Link to comment Share on other sites More sharing options...
Guest Posted June 26, 2018 Share Posted June 26, 2018 Can you provide a testing scene? Quote Link to comment Share on other sites More sharing options...
noalak Posted June 26, 2018 Share Posted June 26, 2018 Hi, Are you exporting to babylon or gltf format ? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 26, 2018 Author Share Posted June 26, 2018 the format .babylon. Then I check the box to export the textures with. The models I have with license and I can not distribute them. But diffuse and bump is exported correctly, it's just the specular that is not exported. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 26, 2018 Share Posted June 26, 2018 we need a repro case to fix it. Can you replace the object by a dummy box? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 26, 2018 Author Share Posted June 26, 2018 Yes. it's in the zip file. speculare_not_exported.zip Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 27, 2018 Author Share Posted June 27, 2018 I just thought about that. my export textures are in TGA, maybe it comes from that ? It's just an idea, I did not test with a png textures. Quote Link to comment Share on other sites More sharing options...
noalak Posted June 27, 2018 Share Posted June 27, 2018 Hi, 3ds max exporter only exports Specular color, not Specular level. TGA textures are fine. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 27, 2018 Author Share Posted June 27, 2018 This can not be supported? what is their difference between color and specular level? Quote Link to comment Share on other sites More sharing options...
noalak Posted June 27, 2018 Share Posted June 27, 2018 Babylon format only supports: - global specular color - specular color texture - specular power (3ds max glossiness) Currently the exporter doesn't take into account the specular level texture. However you can achieve to have a similar result by multiplying the specular color with the specular level. The result in your case for the boat material would be a shade of blue, instead of a shade of grey. As an enhacement, we could merge those 2 maps automatically by the exporter (or the specular level map + the global specular color). What do you say @Deltakosh ? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 27, 2018 Author Share Posted June 27, 2018 Yes I would be to merge automatically because I have a lot of models to review otherwise, currently I am more than 60 different models for my city and I have yet anothers objects to add, created in the same way. Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted June 27, 2018 Share Posted June 27, 2018 I'm fine as long as it is backward compatible Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 7, 2018 Author Share Posted July 7, 2018 @Noalak, news about this possibility, is it still in progress? You were talking about fusing the specular level to the specular color, which would be fine. Quote Link to comment Share on other sites More sharing options...
noalak Posted July 9, 2018 Share Posted July 9, 2018 Hi, I will do it this week, probably for wednesday. Dad72 1 Quote Link to comment Share on other sites More sharing options...
noalak Posted July 12, 2018 Share Posted July 12, 2018 Hi Dad72, A pull request is pending including the enhancement discussed previously. The specular color map is either: - directly the specular color map setup in 3ds max when the specular level map is not defined. To ensure backward compatibility, the global specular level is ignored in this case. It is assumed the specular color map is already pre-multiplied by the desired amount. - a mix between specular color map and specular level map. Maps are multiplied. - a mix between specular level map and global specular color. The global specular color is multiplied to each pixel of the specular level map. Thanks for your feedbacks! Dad72 1 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 12, 2018 Author Share Posted July 12, 2018 Ok, I'll tell you when I'll test. Thank you Quote Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2018 Share Posted July 12, 2018 It's merged Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 12, 2018 Author Share Posted July 12, 2018 @Noalak I get a problem with all my models that uses opacity (for the foliage of trees, plants ...) Yet my tree models do not use spectacular on my foliage, but now they are all opaque on the inside of the foliage and transparent on the outside. Even if I do not activate AO merge, I have more opacity on my foliage. It worked well before. Also the specular textures have become textures jpg Why not reuse the texture of the spectacular level channel. but need to recreate a new jpg image as well. Just assign it to the spectacular color and ignore the spectacular level I get his mistakes too (I did not have them before) Quote Link to comment Share on other sites More sharing options...
noalak Posted July 12, 2018 Share Posted July 12, 2018 Sounds like an issue with normals. Are the faces of the trees black in the 3ds max viewport ? Can you share a repro scene ? I guess not, then try to apply the material you use for trees on a new box in order to check if it's a material issue. As a workaround, if your objects are not animated you can apply a ResetXForm on them. It often solves a lot of issues :) Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 12, 2018 Author Share Posted July 12, 2018 No, we have green faces now. it worked well before the update. in 3ds max my foliage is transparent and in babylon I had transparency, but not anymore. This is the update that created this problem. Quote Link to comment Share on other sites More sharing options...
noalak Posted July 12, 2018 Share Posted July 12, 2018 I will check that tomorrow then. Which exporter version were you using before ? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 12, 2018 Author Share Posted July 12, 2018 The penultimate version. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 12, 2018 Author Share Posted July 12, 2018 I just realized that it's my fault. my foliage images no longer had transparency. So no problem. It works properly. Sorry for inconvenience. So I solve. Thank you Noalak Quote Link to comment Share on other sites More sharing options...
noalak Posted July 13, 2018 Share Posted July 13, 2018 About specular textures becoming jpg, the specular level texture is not meant to be directly used as specular color texture by Babylon. The reason for this is that the specular level texture is a grayscale, only giving a single value (intensity) for each pixel. The specular color texture exported (used by Babylon) is a combinaison of the specular level texture and a color, either given globally or via a texture. The result is a colored texture taking into account the level/intensity of the specular. In your case, you provide a specular level texture and a global specular color. The exporter computes a new texture being the combinaison of them. This texture is exported as jpg. If you want to have full control of the final specular color texture used by Babylon, you can perform the combinaison of level and color manually and set the texture in the specular color channel. Do not provide any specular level texture. About the yellow warning regarding channels, Babylon only supports up to 2 channels per texture. To remove the warning, set texture "Map Channel" to 1 or 2. You have the warning now and not before because the specular level texture is now used. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.