OXY11 Posted May 13, 2016 Share Posted May 13, 2016 there is a way to use different textures (or different materials) in the same Solid Particle System? Quote Link to comment Share on other sites More sharing options...
jerome Posted May 13, 2016 Share Posted May 13, 2016 nope the SPS is a single mesh the best you can do is to use an atlas, it is to say a single texture file containing many different images and then set these images to the particles you want : http://doc.babylonjs.com/overviews/Solid_Particle_System#uvs you have to use the particle property "uv" old example : http://www.babylonjs-playground.com/#2KSQ1R#38 a single file but a different image per particle Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 13, 2016 Share Posted May 13, 2016 hi @jerome. i dont Know about sps can we Use Shader Material for sps mesh material? and any face can have diffrent VU? Quote Link to comment Share on other sites More sharing options...
jerome Posted May 13, 2016 Share Posted May 13, 2016 the sps is just a simple mesh whose you can access its subparts (the particles) so everything working on a mesh is working on the SPS :-) Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 14, 2016 Share Posted May 14, 2016 i think for a way for set multi material to SPS if we can set UV per each face like face 1 :[ [0.0001 ,0.0001] , [0.001 ,0.0001] ,[0.0001 ,0.001],[0.001,0.001]] face 2 :[ [0.0011 ,0.0011] , [0.002 ,0.0011] ,[0.0011 ,0.002],[0.002,0.002]] , .. : is that possible i don't work that before with sps we split uv to the 1000x1000 = 1000000 we can chose wanted face with condition and set any material for this we have restriction in texture max count like 6 or 8 2d texture per material but we can send collection of texture with one and split this in shader i think we can use the 25+25+25+25 texture for 4 texture in one mesh but need less quality like (200x200) 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.