Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Help
  3. What does the convert to sps from xyz list block do?

What does the convert to sps from xyz list block do?

Scheduled Pinned Locked Moved Help
9 Posts 2 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Tyller_T Offline
    Tyller_T Offline
    Tyller_
    trusted helpers
    wrote on last edited by
    #1

    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)

    <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
    </div>

    CreatiCodeI 1 Reply Last reply
    0
    • Tyller_T Tyller_

      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)

      CreatiCodeI Offline
      CreatiCodeI Offline
      CreatiCode
      wrote on last edited by
      #2

      @tyller_

      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.

      Tyller_T 2 Replies Last reply
      0
      • CreatiCodeI CreatiCode

        @tyller_

        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.

        Tyller_T Offline
        Tyller_T Offline
        Tyller_
        trusted helpers
        wrote on last edited by
        #3

        @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

        <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
        </div>

        1 Reply Last reply
        0
        • CreatiCodeI CreatiCode

          @tyller_

          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.

          Tyller_T Offline
          Tyller_T Offline
          Tyller_
          trusted helpers
          wrote on last edited by
          #4

          @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

          <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
          </div>

          CreatiCodeI 1 Reply Last reply
          0
          • Tyller_T Tyller_

            @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

            CreatiCodeI Offline
            CreatiCodeI Offline
            CreatiCode
            wrote on last edited by
            #5

            @tyller_

            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.

            Tyller_T 1 Reply Last reply
            0
            • CreatiCodeI CreatiCode

              @tyller_

              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.

              Tyller_T Offline
              Tyller_T Offline
              Tyller_
              trusted helpers
              wrote on last edited by
              #6

              @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)

              <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
              </div>

              CreatiCodeI 1 Reply Last reply
              0
              • Tyller_T Tyller_

                @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)

                CreatiCodeI Offline
                CreatiCodeI Offline
                CreatiCode
                wrote on last edited by
                #7

                @tyller_

                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

                Tyller_T 1 Reply Last reply
                0
                • CreatiCodeI CreatiCode

                  @tyller_

                  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

                  Tyller_T Offline
                  Tyller_T Offline
                  Tyller_
                  trusted helpers
                  wrote on last edited by
                  #8

                  @info-creaticode that would be useful

                  <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
                  </div>

                  CreatiCodeI 1 Reply Last reply
                  0
                  • Tyller_T Tyller_

                    @info-creaticode that would be useful

                    CreatiCodeI Offline
                    CreatiCodeI Offline
                    CreatiCode
                    wrote on last edited by
                    #9

                    @tyller_

                    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

                    1 Reply Last reply
                    0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • CreatiCode