text: [{"Owner":"MarianG","Date":"2017-11-09T16:27:09Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHello.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tLet_t_s explain my problem. \n_lt_/p_gt_\n\n_lt_p_gt_\n\tI have an array of points. \n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n_lt_p_gt_\n\tTasks_dd_ 1. Create a mesh according to input points. It was simple_co_ using _lt_span style_eq__qt_color_dd_#000000_sm__qt__gt_CreateRibbon. _lt_/span_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t             2. Add a material to mesh_co_ according to input points height. I found a few option_dd_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t- gradient Material\n_lt_/p_gt_\n\n_lt_p_gt_\n\t- terrain Material \n_lt_/p_gt_\n\n_lt_p_gt_\n\t- custom Material\n_lt_/p_gt_\n\n_lt_p_gt_\n\t- or adding color property direct to the vertex data_co_ like here _lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#VKBJN%23104_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#VKBJN#104_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t _lt_a href_eq__qt_https_dd_//playground.babylonjs.com/#NLV5X5%234_qt_ rel_eq__qt_external nofollow_qt__gt_https_dd_//playground.babylonjs.com/#NLV5X5#4_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tPersonally_co_ I prefer last option_co_ but I don_t_t understand to  good how colors works _lt_img alt_eq__qt__dd_(_qt_ data-emoticon_eq__qt__qt_ height_eq__qt_20_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/default_sad.png_qt_ srcset_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/sad@2x.png 2x_qt_ title_eq__qt__dd_(_qt_ width_eq__qt_20_qt_ /_gt__lt_/p_gt_\n\n_lt_p_gt_\n\tI am willing to try any option. _lt_img alt_eq__qt__dd_D_qt_ data-emoticon_eq__qt__qt_ height_eq__qt_20_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/default_biggrin.png_qt_ srcset_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/biggrin@2x.png 2x_qt_ title_eq__qt__dd_D_qt_ width_eq__qt_20_qt_ /_gt_. I feel like and idiot because I think it_t_s not too complicate. \n_lt_/p_gt_\n\n_lt_p_gt_\n\t \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":"Deltakosh","Date":"2017-11-09T16:38:39Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHello I_t_m with you. Vertex color is the best option here.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tYou can add face color easily to the ribbon_dd_ _lt_a href_eq__qt_http_dd_//doc.babylonjs.com/how_to/createbox_per_face_textures_and_colors#colors_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//doc.babylonjs.com/how_to/createbox_per_face_textures_and_colors#colors_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":"MarianG","Date":"2017-11-09T20:10:44Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHuh_co_ I deal with it. _lt_img alt_eq__qt__dd_lol_dd__qt_ data-emoticon_eq__qt__qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/default_laugh.png_qt_ title_eq__qt__dd_lol_dd__qt_ /_gt__lt_/p_gt_\n\n_lt_p_gt_\n\tBut I have a new problem. \n_lt_/p_gt_\n\n_lt_p_gt_\n\tThe mesh is single sided.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI have to add a material with _lt_span style_eq__qt_color_dd_#000000_sm__qt__gt_backFaceCulling set to false_lt_/span_gt_ if I want my mesh to be double sided (line 79)_co_ although I set it as double sided when I created it.(line 57).\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_https_dd_//playground.babylonjs.com/#NLV5X5%235_qt_ rel_eq__qt_external nofollow_qt__gt_https_dd_//playground.babylonjs.com/#NLV5X5#5_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":"Gijs","Date":"2017-11-09T20:29:12Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\t_lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/12295-bulisor/?do_eq_hovercard_qt_ data-mentionid_eq__qt_12295_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/12295-bulisor/_qt_ rel_eq__qt__qt__gt_@bulisor_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tYou have _qt_BABYLON.DOUBLESIDE_qt__co_ which should be _qt_BABYLON.Mesh.DOUBLESIDE_qt_\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":"MarianG","Date":"2017-11-09T21:24:10Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t_lt_p_gt_\n\tThat was. Thank you_co_ Today wasn_t_t my lucky day _lt_img alt_eq__qt__dd_(_qt_ data-emoticon_eq__qt__qt_ height_eq__qt_20_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/default_sad.png_qt_ srcset_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/sad@2x.png 2x_qt_ title_eq__qt__dd_(_qt_ width_eq__qt_20_qt_ /_gt__lt_/p_gt_\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":"MarianG","Date":"2017-11-10T21:02:26Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHi. I know I marked it as solved but I have one more question  on this subject. _dd_)))\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_a href_eq__qt_https_dd_//playground.babylonjs.com/#NLV5X5%236_qt_ rel_eq__qt_external nofollow_qt__gt_https_dd_//playground.babylonjs.com/#NLV5X5#6_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tIf I use a standard material on ribbon_co_ it keeps the colors previously set. But if i set a grid material it loses its settings. \n_lt_/p_gt_\n\n_lt_p_gt_\n\tCan I force it to keep colors_co_ or I have to modify grid shader?\n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n_lt_p_gt_\n\t \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":"Deltakosh","Date":"2017-11-10T22:07:47Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t_lt_p_gt_\n\tUnfortunately the grid material does not support vertex colors\n_lt_/p_gt_\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_"}]