anthony.liot Posted March 31, 2014 Posted March 31, 2014 Hi,I using the new function updateNormals, but the result are not working like the Smooth Mesh inside the ResourceEditor_x64. Model 3D : Mesh generated without normals : https://www.dropbox.com/s/fpwzdi6ohzhmhdt/model.meshMesh generated with updateNormal(45) before save : https://www.dropbox.com/s/fc7on1daj4npfvi/model_norm.mesh Pictures : Mesh Dynamic generated with updateNormals(45)https://www.dropbox.com/s/vx5xwxokkol45oe/Capture%20d%27%C3%A9cran%202014-03-31%2011.12.02.png Same Mesh after SmoothMesh(45)https://www.dropbox.com/s/yy456b2pg2830s5/Capture%20d%27%C3%A9cran%202014-03-31%2011.12.15.png Could be a trouble inside my model generated, but this same code was working on the previous SDKTony
anthony.liot Posted March 31, 2014 Author Posted March 31, 2014 Hi, I have also an artefact when I render my 3D model, but seems not related to the updateNormals, but may be ... https://www.dropbox.com/s/ewiwf3xeuqhzlqf/Capture%20d%27%C3%A9cran%202014-03-31%2015.32.42.png Tony
sebastianbah Posted May 29, 2014 Posted May 29, 2014 Hello Tony,Sorry for the late reply, this issue was passed to our devs.Thanks for the information and sorry for the inconvenience.
sebastianbah Posted October 15, 2014 Posted October 15, 2014 Hi Tony, updateNormals() function was removed from script, but you can smooth mesh from script doing the following:- get mesh from ObjectMeshDynamic using getMesh() function.- use the following functions from Mesh class: createNormals() createTangents() In this case there should be no differences between smooth in MeshViewer and smooth from script.
Recommended Posts