MarianG Posted November 9, 2018 Share Posted November 9, 2018 Hi. I'm playing a little bit with SPS, and I'm try to check which solution is better for my next project, SPS, instances, or in the worst case clone. The scenario is simple: Have a few objects with or without animation, on click on one begin new animation on it. So because of this I'm haveing a few questions related to SPS. https://playground.babylonjs.com/#C48VK3#1 this is what I'm haveing till now. 1. if I can add a animation to the sps mesh? Now they are moveing there but it would be nice if i can attach an animation to them 2. Related to optimizations, I think I added all what was necesarelly. If you think I miss something. 3. The material on SPS mesh seems to be different from material on real model, you can see this on click on a mesh, when it is replaced by the original. Can I avoid this in some way? 4. If I'm adding an environment https://playground.babylonjs.com/#C48VK3#2, line 15, click function broke. I mean even if I click random in scene it say I'm clicking an object from SPS 5. If I'm adding color to SPS meshes https://playground.babylonjs.com/#C48VK3#3, this color is added to vertex? I know that for instances, all instance need to have the same material, but I'm thinking to try this trick from SPS, modify directly color of instance. And the last but maybe most important What do you think is SPS a solution for this scenario? I'm going to create similar playground with instance Thank you for your time Quote Link to comment Share on other sites More sharing options...
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.