What does the convert to sps from xyz list block do?
-
I am trying to make a complex shape with custom points (the point coordinates change each run so I can’t just make a model on another website) but don’t know what I’d need to calculate to make all the connecting triangles for the points, I found this block and after a bit of research found it could possibly help with making a surface for it, but I can’t figure out how to use it.
So far I have tried filling the list with the point names and having the list name be a transformer that’s the parent of all the points (making sure to have the parent object (the transformer) be selected when running it)
-
Here is a demo of how to use the “convert to SPS” block:
https://play.creaticode.com/projects/6568dba4cb7204e29729e10f
Basically it makes copies of the current sprite object (the cube in this case) and moves them to the x/y/z position specified in the list. After that, all these cubes are treated as one giant mesh object for faster rendering. -
@info-creaticode thanks, this is extremely useful to know that it can do this much without nearly any lag this fast, I am making a procedural generation and before I add a transformer moving and doing calculations to place blocks and then merge them into one shape
-
@info-creaticode what does the updatable mean? Can I select a sps object and use the convert again to add onto the same object without merging
-
Yes, if updatable is true, we can add particles to it or remove particles from it. But we haven’t implemented that block yet since this is rarely needed. Can you describe your use case a bit more? We can add some new blocks to accommodate your needs.
-
@info-creaticode I’m making world generation and for a limited size world I make smaller chunks with the convert sps due to list size limits, and then merge them for loading efficiency, this would allow me to just add to the sps and make the chunks be connected into larger chunks, (I read from another help post that too large objects, at least planes, can add a lot of lag), so I could add to the sps instead of merging (which also forces color to whatever the merged object is)
-
So how about we add a new block of “add to sps” like this?
add box (or whatever shape you need)
add to sps [NAME] at xyz from list [ListName]that will add these new shapes at the given points to the existing SPS named NAME
-
@info-creaticode that would be useful
-
This new block has been added. Here is a demo project on how to use it to add additional objects to an existing SPS:
https://play.creaticode.com/projects/656e6d8bc27b2f356ccb5af6