Pryme8 Posted July 20, 2018 Share Posted July 20, 2018 So most mesh builder methods require the mesh the be double-side in order to define a custom UV with the constructors. Is there a way to do that on initialization without doubleside turned on? Quote Link to comment Share on other sites More sharing options...
Guest Posted July 20, 2018 Share Posted July 20, 2018 Pinging @jerome Quote Link to comment Share on other sites More sharing options...
jerome Posted July 20, 2018 Share Posted July 20, 2018 Why do think the mesh must be double-sided ? I can't remember this limitation. Actually the optional parameter called customUV exists only for the ribbon (and maybe ribbon based shapes, I just can't remember) and can be used for any number of sides. The parameters frontUV and backUV work for double-sided meshes. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted July 20, 2018 Author Share Posted July 20, 2018 Casue its very specific and in bold in the docs that it is a limit. Quote Link to comment Share on other sites More sharing options...
jerome Posted July 20, 2018 Share Posted July 20, 2018 OOopps, I just read the DK's ping and not the post title. You were speaking about frontUVs and backUVs, not about customUV (that's not even documented, tsss). I read too fast ... Actually, you're right the frontUVs parameter (as the backUVs one) only works for double-sided meshes for now, knowing that people usually use rather the texture uOffset and uScale properties instead when dealing with one side only. That said, maybe the frontUVs parameter could also be used for single-sided meshes ... this needs to be implemented (I can't before next september, sorry) Everything happens here : https://github.com/BabylonJS/Babylon.js/blob/master/src/Mesh/babylon.mesh.vertexData.ts#L2750 [EDITED] the current documentation about frontUVs and backUVs http://doc.babylonjs.com/how_to/frontandbackuv Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted July 20, 2018 Author Share Posted July 20, 2018 I bet I can fix it for sure, thanks. And Im a dummy I forgot about uScale, vScale. 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.