erixon Posted June 2, 2016 Share Posted June 2, 2016 I'm used to work with Sketchup and repetive textures to save space. I have imported objects to Blender to unwrap/create lightmaps and load .babylon, but no expert in multiple textures/uvs. Is it possible with Babylon in an easy way to import an object with two texture layers with different uvs so one is diffuse map and one is lightmap? Just wondered if this work more or less out of the box or how tricky it gets. kind regards Tomas Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted June 2, 2016 Share Posted June 2, 2016 You just have to assign the right uv mapping of your texture in Blender. UV channels can be set in the object data panel, use first channel for diffuse map, second for lightmap. Only 2 uv channels can be exported. Of course assign at least one material, then configure your textures and tell your lightmap to use uv channel 2. That's it [edit] don't forget in the texture panel to set your lightmap to ambient rather than diffuse in the influence panel [/edit] Quote Link to comment Share on other sites More sharing options...
erixon Posted June 2, 2016 Author Share Posted June 2, 2016 Thanks for the reply, sounds awesome, going to test that. Quote Link to comment Share on other sites More sharing options...
erixon Posted June 2, 2016 Author Share Posted June 2, 2016 Works good but if I have 5 materials on my object, do I really need to add the second ambient texture 5 times on all then? Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted June 3, 2016 Share Posted June 3, 2016 Yep. One way to avoid this will be to set a lightmap on the mesh property rather than the material, but it's not currently possible. 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.