Jump to content

Solid Particle System with more than 1 textures


OXY11
 Share

Recommended Posts

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

Link to comment
Share on other sites

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) 

 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...