Jump to content

SPS on random position of parent


TomaszFurca
 Share

Recommended Posts

Hi, For yesterday I was using bake particle system in blender to render nature elements in scene. By now i want to change that to SPS. This should be better (from optimization point of view) than instances and additional export scene with many elements take a lot of time. So i prepare asset with nature elements and simple scene with house. In scene is mesh named "Plane.004", which render particle system in blender, so I want use this plane to generate elements on it using SPS. 

PG: https://playground.babylonjs.com/#199KHL#17

My questions:

1. I need help with get random position of mesh. This can't be JS random int, because in center of plane is place for road, so there i don't need any element.
2. All of this SPS elements is static, so optimization used in PG enough?

Thanks Tom

Link to comment
Share on other sites

#2 : you're already the best optimization by using a immutable SPS (updatable = false). No need for setting the computeParticleXXX properties to false then, they aren't just used.

#1 : not sure to understand what you're trying to achieve

Link to comment
Share on other sites

I finish create particle from SPS on random position of custom mesh - using Vertices Data. Just look https://playground.babylonjs.com/#199KHL#20

But i have another problem with SPS. There is 3 objects Fern, Spruce and ground_plants. In all of them i change Y position to see how it should look, but using SPS unfortunately, they look different. 

Spruce wood is broken.

Fern and Ground plants looks like artifact.

Is possible to fix that?

 

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...