hw3web Posted November 7, 2013 Share Posted November 7, 2013 Hi there 1) I do understand that we can make transparency of object by material, but is there other way like mesh.opacity to make transparency of all mesh not material just, so if is a full material 100% alpha by jpg, and mash opacity will be 0.4 , all mesh will be like 40% visiable 2) Groups - is any chance that blender exporter will as well include groups of mesh and then can be easier for babylonJS manipulate with more elements in one time ? thank you Quote Link to comment Share on other sites More sharing options...
Temechon Posted November 8, 2013 Share Posted November 8, 2013 Hi, 1) I don't think such a feature exists today in babylon. It does not make any sense to update the opacity of a mesh : the correct way is to update the opacity of its material. 2) I don't know very well the Blender exporter, so i cannot answer here. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 8, 2013 Share Posted November 8, 2013 For the global opacity, there is a way to do that per mesh: mesh.visibility i do not know the group feature of blender but if you explain me how to create one, I can have a look^^ Quote Link to comment Share on other sites More sharing options...
hw3web Posted November 8, 2013 Author Share Posted November 8, 2013 group is as I understand another paramert of mesh like ID or name , where id meshA(ID= 'ma') and mashB (ID='mb') if you could add another parametr like groupName then :meshA(ID= 'ma', group=['gr1']) and mashB (ID='mb', group=['gr1']) if you will select scene.getGroupByID('gr1').visibility = 0.5 - both mesh will be selected and in this example half transparent . as I understand mesh can belong to few groups so that mean this parametr should be as array.I do not know Python, but is look like it should be in exporter something like????????????????????????????????????????????????????def write_Groups(file_handler, groups, group, mult): file_handler.write(",\""+group+"\":[" + "%.4f,%.4f,%.4f"%(group) + "]")????????????????????????????????????????????????????////// just thought but it will be very help full for futher development and as someone who know python and blender will do it in minute regardsHubert PS I start to like more and more BanylonJS , shame it is not support CPU alternative just for those whose driver or graphic card is not compatible ( It shame as I do not know us much JS I would love to contribute in evolution Babylon - hope and I believe it will be the best 3d engine on JS 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.