sketchucation logo sketchucation
    • Login
    1. Home
    2. CPhillips
    3. Posts
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
    C
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 68
    • Posts 1,089
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Tutorials....

      @mike ravenwolf said:

      lol i wish i had seen that one last night,
      i found another one that i had seen before through 3dwarehouse, though had hard time getting it to work properly. i finally did though. I dont have anything that can capture video froma running SP (any suggestions?) so i decided to just through up the sketch file for you guys to critique πŸ˜„

      next step... the engine block and cams....lol

      Mike

      Looks good!

      Here is a tip. You can use the layer manager to hide/unhide your joints. All joints are placed on a layer.

      Chris

      posted in SketchyPhysics
      C
      CPhillips
    • RE: Lighting Plugin for Sketchup

      Looks great. Are you subdividing surfaces or generating lightmaps? Or something else?

      Chris

      posted in Developers' Forum
      C
      CPhillips
    • RE: Tutorials....

      @mike ravenwolf said:

      Hey, thanks for the reply,
      yeah... i do realize that the clock animation is a bit advanced to be jumping into,lol. I've been looking into a tutorial on how to create a piston, and been trying to get that working.

      one of the big problems i've been having can be found in a piston in fact. that problem being to get multiple joints to a single piece, like the connecting rod between the piston and the crank shaft.

      Anyways, thanks for the suggestions,

      Mike

      Ah pistons tutorial you say. Well that we have in stock. πŸ˜„ Here is one by 15milkshake15.
      http://www.youtube.com/watch?v=3exA1bfA6G8&feature=related
      http://www.youtube.com/watch?v=z7BpBeng2dE&feature=related

      posted in SketchyPhysics
      C
      CPhillips
    • RE: Tutorials....

      Sorry there aren't more tutorials. I am not much good at making them. Best source is all the models on 3dwarehouse.

      A clock.
      http://sketchup.google.com/3dwarehouse/details?mid=b53b40627d33e73d1821e04260a806c3&prevstart=0

      Here are some gears:
      http://sketchup.google.com/3dwarehouse/search?q=sketchyphysics+gears&btnG=Search&styp=m

      Sounds like you might be trying something a little bit on the advanced side. Tell me what you are trying to do and maybe post a model and I'll give you some pointers.

      Chris.

      posted in SketchyPhysics
      C
      CPhillips
    • RE: ShrinkWrap

      @unknownuser said:

      what I want is a simple way to take a complex house model and make a shell that I can build many of in a development.

      or a complex car made into a simple car.

      Ah. Nevermind then. πŸ˜„ That sounds hard to do.

      Chris

      posted in Developers' Forum
      C
      CPhillips
    • RE: ShrinkWrap

      @krisidious said:

      can I have a shrinkwrap script to make a shell out of any detailed model I have?

      If you are asking because of SketchyPhysics you dont need it. The physics engine will turn a mesh into a convex hull. Or if you really do want the shrinkwrap you could use still SketchyP. Set the meshes shape to convex hull and use the Debug->Readback collision geometry option. That will create a wireframe shrinkwrap of the mesh.

      Chris

      posted in Developers' Forum
      C
      CPhillips
    • RE: Ornithopter

      @gaieus said:

      @cphillips said:

      The avi didn't work for me. 4 sec of blackness.

      Chris,

      Here you are a flash version (sorry Mateo - I cropped it a little bit for it wouldn't have fit here)

      Gaieus, what did you use to convert to flash?

      posted in SketchyPhysics
      C
      CPhillips
    • RE: Ornithopter

      @mateo soletic said:

      Here it is in air with joined effort. πŸ˜’

      The avi didn't work for me. 4 sec of blackness.

      posted in SketchyPhysics
      C
      CPhillips
    • RE: Ornithopter

      @gidon yuval said:

      Chris, I really apreciate the effort you put in.
      I wish I could figure out the rules and logic of S-Physics. Everytime I think I've got a handle on it and try to make even the simplest of machines, I get the strangest results with objects repeling each other or falling off the screen or refusing to move. It's so frustrating because when something does work it's a joy. I spent all of this morning just watching the ornithopter you fixed flap it's wings.
      (Good thing it's Saturday! πŸ˜„ )

      When object seem to repel its because they are either the wrong shape or they are not grouped properly. For example: In your original model you had the wheels shaped as "default" that means they were shaped like a box.

      Tip: You can use see what the shape of a object when you run the simulation if you. RightClick the object (or objects if mult-selected) then select debug->"readback collision". When you press play you should see the shape of the objects. Try that with your Ornithopter then with the one I fixed.

      @gidon yuval said:

      I don't suppose there's a manual out there? Something like "SkethcyPhysics for utter morons" or something? πŸ˜•

      I am sorry. I know its too complicated. I am working to make the next version lots easier to use.

      There really isn't a manual. The closest is the instructions on this page:
      http://code.google.com/p/sketchyphysics/wiki/Docs
      They are brief but a lot of the answers you are looking for are in there.

      @gidon yuval said:

      I noticed one or two hidden hinges and/or sliders way off behind and below the machine that are connected to it but I can't for the life of me figure out why they're needed and why they are positioned as they are.

      I added a slider by the tail to keep it from falling to the floor. The others might just be junk. Delete them and see if it changes anything.

      Part of the problem was you selected a pretty difficult model to do. The joint connections are complex and the model doesn't actually work physically (try to pose it with the wheel turned so the wing is all the way down and you'll see what I mean).

      You would probably find it a lot easier to build machines out of SketchySolids shapes. They will behave much more predictably. Start by just making shapes and then groups of shapes. Then move on to joints.

      Here is how I would start a flyer. I didnt have time to finish it but I think it will give you the idea.


      Flyer1.skp

      posted in SketchyPhysics
      C
      CPhillips
    • RE: SketchyPhysics Alpha

      @masta squidge said:

      @cphillips said:

      @masta squidge said:

      I think i downloaded the wrong one... The only link I found seems to have no mention of any sort of new cool things. This (the one i downloaded) seems to be the same as what I had before. 😳

      Can anyone lend a hand?

      New version is still a month or so away.

      Oh... well how do I get the alpha? Or can I not because Im not in a certain group?

      The last release was Jul 7. Its here:
      http://code.google.com/p/sketchyphysics/downloads/list

      I noticed when I went to find the link that is has been downloaded over 24,000 times. When I was writing it I was thinking I would be lucky to get a few hundred. πŸ˜„

      Chris

      posted in SketchyPhysics
      C
      CPhillips
    • RE: A kickass UI using WebDialogs and DHTML Suite.

      @unknownuser said:

      I meant if you could show us how you have connected html and Ruby. How you pass results back to Ruby.
      Tomasz

      Ah. Well you don't need dhtml suite for that.

      Here is the ruby code that launches a very simple html dialog:

      
      def showVerySimple()
          #create
          dlg = UI;;WebDialog.new("VerySimple", true,"verysimple", 300, 300, 100, 50, true)
          fn= File.dirname(__FILE__)+'/verysimple.html'
          dlg.set_file fn
          dlg.show {} #show it
          
          #create a callback for anytime a value changes in the dialog.
          dlg.add_action_callback("ValueChanged") {|d,p|
                  puts p  
                  }
      end
      

      The "add_action_callback" code at the end allows the dialog to communicate with sketchup. The "puts p" will print out the name and value of a control that changed.

      Here is the HTML:

      
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
      <HTML>
      	<HEAD>
          <title>Webdialog UI </title>
      	</HEAD>
      	<body> 
              <div>
                  <font color="blue">Checkboxes</font><br>
                  <input type="checkbox" name="check-one" onClick="tellSketchup(this.name,this.checked)">One</input>
                  <input type="checkbox" name="check-two" onClick="tellSketchup(this.name,this.checked)">Two<br></input>
                  <input type="checkbox" name="check-three" onClick="tellSketchup(this.name,this.checked)">Three</input>
                  
                  <br>
                  <font color="blue">Radio</font><br>
                  <INPUT type=radio name="radio" value="radio-a" onClick="tellSketchup(this.value,this.checked)">Aye
                  <INPUT type=radio name="radio" value="radio-b" onClick="tellSketchup(this.value,this.checked)">Bee
                  <INPUT type=radio name="radio" value="radio-c" onClick="tellSketchup(this.value,this.checked)">See<br>
              </div>
         		<script type="text/javascript">
                 function tellSketchup(name,value)
                 {
                          //this non-intuitive command will call the sketchup callback "ValueChanged"
                          //with the name and value of the control that changed
                     window.location='skp;ValueChanged@'+name +"="+ value;
                 }
             </script>
          </body>
      </HTML>
      
      

      The HTML creates three checkboxes and three radio buttons. Anytime a user clicks on a control (ie. changes it) the "onClick" code is called. In this case it calls a javascript function called "tellSketchup". That function simply passes the info to sketchup in the form of a string like "check-one=true".

      Thats it!
      Chris

      301 Moved Permanently

      favicon

      (www.sketchucation.com)

      posted in Developers' Forum
      C
      CPhillips
    • RE: A kickass UI using WebDialogs and DHTML Suite.

      @whaat said:

      Did you do the layout by hand-editing the HTML files or did you have layout software to drag and drop, cut and paste, edit colors, etc.?

      Also, did you find any useful online resources for learning HTML and javascript or did you just try and figure it all out on your own?

      Thanks for sharing this...

      I did it by hand. I looked and looked for a good layout editor and came up with nothing that was suitable.

      Finally I bit the bullet and started doing the html code by hand. It wasnt nearly as bad as I expected. And I now kinda understand why none of the html layout tools are any good. Its more like writing code than a layout. BTW I use SCite as a html aware text editor).

      The dialogs\simple.html example shows pretty much just the basics.

      Chris

      posted in Developers' Forum
      C
      CPhillips
    • RE: A kickass UI using WebDialogs and DHTML Suite.

      @unknownuser said:

      Chris,
      I am interested. Give us a guidance, please.
      Thanks in advance.
      Tomasz

      I meant that if you wanted to build a dhtml suite dialog I would give you advice. Do you have a UI in mind?

      Chris

      posted in Developers' Forum
      C
      CPhillips
    • RE: A kickass UI using WebDialogs and DHTML Suite.

      Update, I hooked up the UI to actually send updates to Sketchup any time a value changes. It was pretty easy but I am very glad I waited until I had the layout finished. Maintaining all the names and events is tedious when you are doing a lot of copy/paste of elements.

      Unfortunately I think I went a bit overboard with the UI. It works fine, but from a user perspective it looks too cluttered and complicated. I am going to break it up and simplify it.

      If anyone wants advice on how to get one of these running ask here.

      Chris

      posted in Developers' Forum
      C
      CPhillips
    • A kickass UI using WebDialogs and DHTML Suite.

      I posted on the old forums about using DHTML Suite to build Sketchup UI's. Well, I finally got back to that project last weekend and I came up with what I think is a really nice UI. This is a Work In Progress and doesnt actually interact with Sketchup yet.

      Screenshot:
      http://sketchyutils.googlecode.com/files/UIMockup.png

      All the layout was done in about 6 hours. And that while learning html and java script as I go. I cant recommend Dhtml suite highly enough. http://www.dhtmlgoodies.com/index.html?page=dhtml-suite

      Link to zip(also attached):
      http://sketchyutils.googlecode.com/files/SketchyUIMockup.zip

      Instructions:
      -Unzip into your plugins directory.
      -Run Sketchup
      -Open the ruby console and run the command:
      sketchyUITest()
      NOTE:It doesn't actually interact with Sketchup yet. You might as well delete it after you have looked at it.

      I think the best bit is how the panels smoothly scroll when you open and close them. πŸ˜„

      If you are interested in the inner workings: All the code I wrote is in the SketchyUI/Dialogs folder. There is the HTML file which is about 450lines and a Simple.html that is only 150 lines. If you want to understand the HTML you might want to start with Simple.html. Either file should open correctly in a standard web browser.

      Chris

      301 Moved Permanently

      favicon

      (www.sketchucation.com)

      posted in Developers' Forum
      C
      CPhillips
    • RE: Free form deformation balloon

      This project is on hold while I work on SketchyPhysics. I got it to the point that the deformation works. But it needs a UI where you can move the control points.

      If anyone wants to take it on they can have the code lock stock and barrel. If not I'll try to get back to it by the end of the year.

      Chris

      posted in Developers' Forum
      C
      CPhillips
    • RE: Free form deformation balloon

      @humanticnc said:

      If it kind of worked like in the given examples (using those "handles" to manipulate the forms), I'd definitely pay for a script like that.

      Thats the tricky bit.πŸ˜„

      Alright. I think Ill start it and see how it goes.

      Chris

      posted in Developers' Forum
      C
      CPhillips
    • RE: Free form deformation balloon

      @gata said:

      Yes. While I can manipulate tools to get the same results, this would be a nice additional tool.

      Would it be able to work on selected bits of a model or only on an entire chunk of geometry?

      It would work on a single group or all selected elements that are not a group. If you follow.

      posted in Developers' Forum
      C
      CPhillips
    • Free form deformation balloon

      One of my favorite plugins from my 3dsMax days was FFD or Free Form Deform. It is great for making non-uniform shapes or for stretching and bending objects like they are made from taffy.

      Look about half way down on this page for images that show some of what you can do with FDD.
      http://www.cs.unc.edu/~geom/ffd/

      Turns out the algorithm isn't that complicated once you understand it. Well, at least I understand it. πŸ˜„ I wrote a very sweet version in ruby that is only a few functions and 200 lines of code.

      But it will need a lot of UI work to make it a real plugin. Is there any interest? Would you pay a few bucks for it?

      Chris

      posted in Developers' Forum
      C
      CPhillips
    • RE: Ornithopter

      It needed a fair amount of work.
      -I separated the wings.
      -I had to regroup most of the model.
      -Rescaled it since it was really small. SP likes things real sized to operate correctly.
      -Set the correct shapes for the wheels and wings. Convex hull in this case.
      -I had to move the pivots on the wings. They couldn't get enough leverage at that angle. Plus the wings would touch the floor.

      @gidon yuval said:

      Thanks Chris.
      I removed all the hinges and stuff that I tried so that they don't get in your way.


      Ornithopter-6.skp

      posted in SketchyPhysics
      C
      CPhillips
    • 1
    • 2
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 52 / 55