sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    SketchyPhysics 3x June 27 version.

    Scheduled Pinned Locked Moved SketchyPhysics
    95 Posts 12 Posters 23.0k Views 12 Watching
    Loading More Posts
    • 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.
    • W Offline
      Wacov
      last edited by

      Pretty nice cloth demo. Once again, totally copyable! I love the scripted joints


      Copyable cloth.skp

      http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

      1 Reply Last reply Reply Quote 0
      • C Offline
        CPhillips
        last edited by

        Nice! 😄

        1 Reply Last reply Reply Quote 0
        • P Offline
          Physicsguy1
          last edited by

          That's a nice representation of cloth, Wacov!

          1 Reply Last reply Reply Quote 0
          • W Offline
            Wacov
            last edited by

            Thanks guys! One thing I'm finding with the cloth is it tends to collide with itself. That seriously slows stuff down, and it's not really neccessary for a semi-realistic simulation. Can we have object-specific collision detection? So, give the choice to either collide with everything, collide with everything except '...', or collide with nothing but '...'. Keep it pretty intuitive, so using a string finds objects of that name, a var for specific objects, and let us put them into an array if needed.

            So, on the cloth, I'd name all the bars the same, and tell them to collide with everything except each other. You might also be able to make a crude fluid flow effect by creating spheres that only collide with the static mesh.

            http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

            1 Reply Last reply Reply Quote 0
            • P Offline
              phy
              last edited by

              I love the new Script field and script but I was wondering is there any way you can control a scripted joint with a slider or key.

              Tableau de comparaison de Staxyn s'agit d'un mГ©dicament uniquement sur ordonnance.

              1 Reply Last reply Reply Quote 0
              • J Offline
                JaViXP
                last edited by

                Just a little test. Hit Play and see what happens 😉


                Download this file

                "Giving up is way harder than trying"
                JaViXP's Rendering

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Physicsguy1
                  last edited by

                  YES!! The simulation finally registers in-simulation created objects!

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    CPhillips
                    last edited by

                    @wacov said:

                    Thanks guys! One thing I'm finding with the cloth is it tends to collide with itself. That seriously slows stuff down, and it's not really neccessary for a semi-realistic simulation. Can we have object-specific collision detection? So, give the choice to either collide with everything, collide with everything except '...', or collide with nothing but '...'. Keep it pretty intuitive, so using a string finds objects of that name, a var for specific objects, and let us put them into an array if needed.

                    So, on the cloth, I'd name all the bars the same, and tell them to collide with everything except each other. You might also be able to make a crude fluid flow effect by creating spheres that only collide with the static mesh.

                    In the physics engine you would need materials to do that. So don't expect it until SPIV.

                    One thing you could do that might speed things up is to change the connect script to something like this.

                    
                    ontouch{|t,s,p|
                       connect(t,"ball") if frame==1
                    
                        #empty the ontouch event after the first frame.
                        #this will ensure that ontouch isnt called again.
                       ontouch{} if frame>1 
                    }
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      CPhillips
                      last edited by

                      @phy said:

                      I love the new Script field and script but I was wondering is there any way you can control a scripted joint with a slider or key.

                      Not yet. 😞 But I will do that next.

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        CPhillips
                        last edited by

                        JaViXP it will work better if you change the onend to this:

                        onend{
                           group.erase!
                        }
                        
                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          Physicsguy1
                          last edited by

                          Will we be able to embed sound files anytime soon?

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            Physicsguy1
                            last edited by

                            I tried something similar to javixp's line generator, but the groups I generated are not registered.


                            scriptedrandomcube.skp

                            1 Reply Last reply Reply Quote 0
                            • C Offline
                              CPhillips
                              last edited by

                              I dont know about the sound. I havent touched that code in a while, but I will see if it still works and let you know.

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                Physicsguy1
                                last edited by

                                Tracks'n'Treads are much easier. I realy like the new version!


                                tank.skp

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  CPhillips
                                  last edited by

                                  Me too! Self connecting joints are a feature I have been trying to achieve since version 1. I HATE the JCT. Its hard to explain, tedious to use and is the reason you cant copy jointed objects. Its THE major reason I started SPIV. So, I am really glad it turns out to be possible in SP3.

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    CPhillips
                                    last edited by

                                    Here is an example of a very simple camera system.

                                    The first example puts the camera eye at the position of the sphere and looking at [0,0,0].

                                    The second example finds the cone in the scene and looks at that. Note you can drag the cone and the camera will follow.

                                    The @simulation.camera.set commands parameters are location of the eye, the target and the "up" direction.

                                    The camera is the same as the camera in the Sketchup API:
                                    http://code.google.com/apis/sketchup/docs/ourdoc/camera.html


                                    camerasimple.skp


                                    cameraFollow.skp

                                    1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      Physicsguy1
                                      last edited by

                                      Now we can create multi-roll games!

                                      1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        JaViXP
                                        last edited by

                                        @cphillips said:

                                        JaViXP it will work better if you change the onend to this:

                                        onend{
                                        >    group.erase!
                                        > }
                                        

                                        Thanks, now it's much better (After a few times playing the animation it becomes kinda slow).

                                        PhysicsGuy, well done I like your boxes creator, but there are too much boxes and it'll make the simulation laggy.

                                        "Giving up is way harder than trying"
                                        JaViXP's Rendering

                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          phy
                                          last edited by

                                          MAN! That camera is unbelievablly good. 😍 😍

                                          Tableau de comparaison de Staxyn s'agit d'un mГ©dicament uniquement sur ordonnance.

                                          1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            JaViXP
                                            last edited by

                                            It does not work for me 😞


                                            SPd.jpg

                                            "Giving up is way harder than trying"
                                            JaViXP's Rendering

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 2 / 5
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement