Jump to content

[SOLVED] Update Normals trouble


photo

Recommended Posts

Posted

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.mesh

Mesh 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 SDK

Tony

  • 1 month later...
Posted

Hello Tony,

Sorry for the late reply, this issue was passed to our devs.

Thanks for the information and sorry for the inconvenience.
 

  • 4 months later...
Posted

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.

×
×
  • Create New...