text: [{"Owner":"guanglei","Date":"2018-04-08T02:10:27Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tSo I loaded a STL model using STLFileLoader in to scene. The model seems flat-shaded_co_ and I want it to be smooth-shaded.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI know I can call `Mesh#convertToFlatShadedMesh()` to convert a mesh from smooth-shaded to flat-shaded_co_ but what I want is the opposite method. Is there any solutions?\n_lt_/p_gt_\n\n_lt_p_gt_\n\tThanks for helping ...\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Rodrix3","Date":"2018-04-08T02:31:01Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tDid you apply lights to  our scene? What material are you using?\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"guanglei","Date":"2018-04-08T02:41:56Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_blockquote class_eq__qt_ipsQuote_qt_ data-ipsquote_eq__qt__qt_ data-ipsquote-contentapp_eq__qt_forums_qt_ data-ipsquote-contentclass_eq__qt_forums_Topic_qt_ data-ipsquote-contentcommentid_eq__qt_211264_qt_ data-ipsquote-contentid_eq__qt_36907_qt_ data-ipsquote-contenttype_eq__qt_forums_qt_ data-ipsquote-timestamp_eq__qt_1523154661_qt_ data-ipsquote-userid_eq__qt_27138_qt_ data-ipsquote-username_eq__qt_Rodrix3_qt__gt_\n\t_lt_div class_eq__qt_ipsQuote_citation_qt__gt_\n\t\t5 minutes ago_co_ Rodrix3 said_dd_\n\t_lt_/div_gt_\n\n\t_lt_div class_eq__qt_ipsQuote_contents_qt__gt_\n\t\t_lt_p_gt_\n\t\t\tDid you apply lights to  our scene? What material are you using?\n\t\t_lt_/p_gt_\n\t_lt_/div_gt_\n_lt_/blockquote_gt_\n\n_lt_p_gt_\n\tYes_co_ I apply `DirectionalLight` and use `PBRMetallicRoughnessMaterial`. Actually my code is like_dd_\n_lt_/p_gt_\n\n_lt_pre_gt_\n_lt_code_gt_    var scene _eq_ new BABYLON.Scene(engine)_sm_\n\n    var camera _eq_ new BABYLON.ArcRotateCamera(_qt_Camera_qt__co_ Math.PI / 2_co_ Math.PI / 2_co_ 2_co_ BABYLON.Vector3.Zero()_co_ scene)_sm_\n    camera.attachControl(canvas_co_ true)_sm_\n    camera.radius _eq_ 80_sm_\n\n    var light _eq_ new BABYLON.DirectionalLight(_qt_light_qt__co_ new BABYLON.Vector3(0_co_ 0_co_ -20)_co_ scene)_sm_\n\n    var pbr _eq_ new BABYLON.PBRMetallicRoughnessMaterial(_qt_pbr_qt__co_ scene)_sm_\n\n    pbr.baseColor _eq_ new BABYLON.Color3(1.000_co_ 0.766_co_ 0.336)_sm_\n    pbr.metallic _eq_ 1.0_sm_\n    pbr.roughness _eq_ 0.2_sm_\n\n    pbr.environmentTexture _eq_ BABYLON.CubeTexture.CreateFromPrefilteredData(_qt_/assets/textures/environment.dds_qt__co_ scene)_sm_\n\n    var pbr2 _eq_ new BABYLON.PBRMetallicRoughnessMaterial(_qt_pbr2_qt__co_ scene)_sm_\n    pbr2.baseColor _eq_ new BABYLON.Color3(1.000_co_ 1.000_co_ 1.000)_sm_\n    pbr2.metallic _eq_ 1.0_sm_\n    pbr2.roughness _eq_ 0.2_sm_\n    pbr2.environmentTexture _eq_ BABYLON.CubeTexture.CreateFromPrefilteredData(_qt_/assets/textures/environment.dds_qt__co_ scene)_sm_\n    \n\n    const importMesh _eq_ function (name_co_ callback) {\n        BABYLON.SceneLoader.ImportMesh(\n            name_co_ _t_/assets/stl/_t__co_ name + _t_.stl_t__co_ scene_co_\n            function (meshes) {\n\n                const m _eq_ meshes[0]_sm_\n\n                m.position.y _eq_ 20_sm_\n\n                m.rotation.y _eq_ Math.PI_sm_\n                m.rotation.x _eq_ -Math.PI/2_sm_\n\n                callback(m)_sm_\n            }\n        )_sm_\n    }\n\n    importMesh(_t_something_t__co_ function (m) {\n        m.material _eq_ pbr_sm_\n    })_sm__lt_/code_gt__lt_/pre_gt_\n\n_lt_p_gt_\n\tThanks\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Rodrix3","Date":"2018-04-08T03:00:54Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tCould you please link it into a Playground? Thanks\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"guanglei","Date":"2018-04-08T03:36:43Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_blockquote class_eq__qt_ipsQuote_qt_ data-ipsquote_eq__qt__qt_ data-ipsquote-contentapp_eq__qt_forums_qt_ data-ipsquote-contentclass_eq__qt_forums_Topic_qt_ data-ipsquote-contentcommentid_eq__qt_211266_qt_ data-ipsquote-contentid_eq__qt_36907_qt_ data-ipsquote-contenttype_eq__qt_forums_qt_ data-ipsquote-timestamp_eq__qt_1523156454_qt_ data-ipsquote-userid_eq__qt_27138_qt_ data-ipsquote-username_eq__qt_Rodrix3_qt__gt_\n\t_lt_div class_eq__qt_ipsQuote_citation_qt__gt_\n\t\t35 minutes ago_co_ Rodrix3 said_dd_\n\t_lt_/div_gt_\n\n\t_lt_div class_eq__qt_ipsQuote_contents_qt__gt_\n\t\t_lt_p_gt_\n\t\t\tCould you please link it into a Playground? Thanks\n\t\t_lt_/p_gt_\n\t_lt_/div_gt_\n_lt_/blockquote_gt_\n\n_lt_p_gt_\n\tHere it is_dd_ _lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#9R44J5%232_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#9R44J5#2_lt_/a_gt_\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Rodrix3","Date":"2018-04-08T03:56:21Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tYour problem is _qt_smoothing groups_qt_._lt_br /_gt_\n\tOn 3ds Studio Max apply _qt_Smooth modifier_qt_ or _qt_HSDS_qt_ and export again.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tThis should solve it_co_ I am quite sure.\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"guanglei","Date":"2018-04-08T03:59:45Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_blockquote class_eq__qt_ipsQuote_qt_ data-ipsquote_eq__qt__qt_ data-ipsquote-contentapp_eq__qt_forums_qt_ data-ipsquote-contentclass_eq__qt_forums_Topic_qt_ data-ipsquote-contentcommentid_eq__qt_211271_qt_ data-ipsquote-contentid_eq__qt_36907_qt_ data-ipsquote-contenttype_eq__qt_forums_qt_ data-ipsquote-timestamp_eq__qt_1523159781_qt_ data-ipsquote-userid_eq__qt_27138_qt_ data-ipsquote-username_eq__qt_Rodrix3_qt__gt_\n\t_lt_div class_eq__qt_ipsQuote_citation_qt__gt_\n\t\t1 minute ago_co_ Rodrix3 said_dd_\n\t_lt_/div_gt_\n\n\t_lt_div class_eq__qt_ipsQuote_contents_qt__gt_\n\t\t_lt_p_gt_\n\t\t\tYour problem is _qt_smoothing groups_qt_._lt_br /_gt_\n\t\t\tOn 3ds Studio Max apply _qt_Smooth modifier_qt_ or _qt_HSDS_qt_ and export again.\n\t\t_lt_/p_gt_\n\n\t\t_lt_p_gt_\n\t\t\tThis should solve it_co_ I am quite sure.\n\t\t_lt_/p_gt_\n\t_lt_/div_gt_\n_lt_/blockquote_gt_\n\n_lt_p_gt_\n\tSo the only way is exporting the model again in modeling applications_co_ there_t_s no solution inside babylon itself_co_ is it right?\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"JohnK","Date":"2018-04-08T06:02:46Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHi _lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/29278-guanglei/?do_eq_hovercard_qt_ data-mentionid_eq__qt_29278_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/29278-guanglei/_qt_ rel_eq__qt__qt__gt_@guanglei_lt_/a_gt_ and welcome to the forum. You can try this _lt_a href_eq__qt_http_dd_//doc.babylonjs.com/samples/minimise_vertices_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//doc.babylonjs.com/samples/minimise_vertices_lt_/a_gt_ but note it warns there may be seaming problems. See also the _t_materials and facets_t_ link on that page.\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"guanglei","Date":"2018-04-08T06:21:36Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_blockquote class_eq__qt_ipsQuote_qt_ data-ipsquote_eq__qt__qt_ data-ipsquote-contentapp_eq__qt_forums_qt_ data-ipsquote-contentclass_eq__qt_forums_Topic_qt_ data-ipsquote-contentcommentid_eq__qt_211277_qt_ data-ipsquote-contentid_eq__qt_36907_qt_ data-ipsquote-contenttype_eq__qt_forums_qt_ data-ipsquote-timestamp_eq__qt_1523167366_qt_ data-ipsquote-userid_eq__qt_14282_qt_ data-ipsquote-username_eq__qt_JohnK_qt__gt_\n\t_lt_div class_eq__qt_ipsQuote_citation_qt__gt_\n\t\t16 minutes ago_co_ JohnK said_dd_\n\t_lt_/div_gt_\n\n\t_lt_div class_eq__qt_ipsQuote_contents_qt__gt_\n\t\t_lt_p_gt_\n\t\t\tHi _lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/29278-guanglei/?do_eq_hovercard_qt_ data-mentionid_eq__qt_29278_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/29278-guanglei/_qt_ rel_eq__qt__qt__gt_@guanglei_lt_/a_gt_ and welcome to the forum. You can try this _lt_a href_eq__qt_http_dd_//doc.babylonjs.com/samples/minimise_vertices_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//doc.babylonjs.com/samples/minimise_vertices_lt_/a_gt_ but note it warns there may be seaming problems. See also the _t_materials and facets_t_ link on that page.\n\t\t_lt_/p_gt_\n\t_lt_/div_gt_\n_lt_/blockquote_gt_\n\n_lt_p_gt_\n\tThanks_co_ the snippet just solved my problem. You_t_re great help_co_ thanks.\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"}]