sketchucation logo sketchucation
    • Login
    1. Home
    2. tkluysk
    3. Posts
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 12
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Parametric modeling, anyone?

      @jeff We tried a non-blocking socket in the main Ruby thread for a bit (ie, not running in a slow second thread), and that actually worked fine. We're now using a C++ socket, which is still an order of magnitude faster. We are working on an efficient way to pass large amounts of geometry data from MatterMachine to SketchUp, at a respectable framerate (10+ fps). The socket seems fine with that.

      The bottleneck is rapidly shifting to the translation of that geometry data to SketchUp geometry using Ruby, like you guessed.

      On suggestion from Jolran and ThomThom, we are representing geo using fast(er) GL draw calls while the user is editing (using a slider or in-view gizmo). Ideally, we want to build proper SketchUp geo as soon as the user stops editing (mouseup). We'll see if that's realistic. We'd like to get a better user experience than the Grasshopper - Rhino interaction.

      At this time, it looks like we should be able to compile for both Mac & PC, and even older versions of SketchUp using Ruby 1.8.

      posted in Corner Bar
      tkluyskT
      tkluysk
    • RE: Parametric modeling, anyone?

      MatterMachine - SketchUp: first contact!

      This is through a socket, straight from the Unity webplayer plugin in Chrome, to a SketchUp Ruby thread.

      The Ruby threads seem to refresh very erratically and somewhat infrequently. By far not fast enough to sustain, say, a 30fps link between MM and SU. It might very well be that that's as good as Ruby threads get. They are not much faster when run in a shell, outside of SU, so SU is not really to blame here we think.

      If we rule out error from us, we will work through a C++ socket instead.


      SU-MM-first-contact.png

      posted in Corner Bar
      tkluyskT
      tkluysk
    • RE: Parametric modeling, anyone?

      @JQL Portability to the web/cloud is central for us, and you might agree that this is where all things CAD/3D will end up. But you're right: it makes for an odd marriage with SketchUp in its current state. But odd couples often work out great πŸ˜„

      We can think of a few elegant ways of integrating, though. Many plugin developers already resort to C/++ extensions for vast performance increase over Ruby, and we hear a C# wrapper for the API is on the way as well. Those apporaches are not very different from what we have in mind. If we (as in you included!) can demonstrate exciting applications done this way, we might get the SU team to play long, I'm sure.

      For a larger pov, the MatterMachine integration might help shape people's ideas of what SketchUp's presence in the cloud could mean. The Sketchup Warehouses (asset & extensions) could become natural places to interact with SketchUp files, rather than pulling them into the desktop app. The WebGL viewer for SU files is a great step in that direction.

      posted in Corner Bar
      tkluyskT
      tkluysk
    • RE: Parametric modeling, anyone?

      @ JQL & DOD3R thanks for your encouraging words. We know we'll need those over the coming months!

      posted in Corner Bar
      tkluyskT
      tkluysk
    • RE: Parametric modeling, anyone?

      Jolran, please: I PM you for a reason.

      As far as I'm concerned we are very much on the same page, big picture wise. But again, I respect and understand if you'd rather go solo on this.

      ThomThom is not 'on the job'. He has given us some early advice, and has been very supportive, as he has been with you, I'm sure. And we hope to be able to tap his wisdom in the future.

      Anyway, I take away your advice on the direct GL drawing. It's a good one.

      posted in Corner Bar
      tkluyskT
      tkluysk
    • RE: Parametric modeling, anyone?

      Our first phase effort will involve building a working socket to pass data between C# and Ruby/SU. We have a socket going, but there are some issues passing data between the socket thread and main thread in Ruby.

      Second issue we're tackling is efficiently pass (or at least display) large amounts of triangles and line segments between MatterMachine and SU. Building 20000 triangles using Ruby takes about a second. That is too slow!

      posted in Corner Bar
      tkluyskT
      tkluysk
    • RE: Parametric modeling, anyone?

      @jolran
      Yes, we've done basic work trying to get a C# <-> Ruby socket working, but we hit a first wall with threads in Ruby.

      We're starting a more serious attempt soon.

      The SketchUp team has been really supportive sofar, and the community is vibrant, with several relevant and similar projects undertaken by its members, so with everybody's help, we feel confident we can pull it off.

      posted in Corner Bar
      tkluyskT
      tkluysk
    • RE: Parametric modeling, anyone?

      Jolran, your work looks great. And for a big part, complementary. Are you still actively working on it?

      For the sake of completeness, I compiled a little list of relevant threads and projects. Please add if you know of any other ones. We might be able to help eachother out and make this happen.

      This April fool's led to some intense discussion on the topic:
      http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=51564

      More...
      http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=51698
      http://sketchucation.com/forums/viewtopic.php?t=22713
      http://sketchucation.com/forums/viewtopic.php?f=179%26amp;t=11074
      http://sketchucation.com/forums/viewtopic.php?f=180%26amp;t=52388

      Other users of this forum that had a stab at this:

      • Jolran's solution seems most mature. No links yet Jolran?
      • tbd with SME
      • Eric Cheung with his Script Sequencer:

      https://vimeo.com/22764739
      https://vimeo.com/22764739

      posted in Corner Bar
      tkluyskT
      tkluysk
    • RE: Parametric modeling, anyone?

      Hi Jolran,

      We're currently using Unity3D as our viewer, and a C# codebase for our parametric engine + operators - which delivers quite good performance in the browser. We're not strictly married to Unity3D, so SketchUp is a really interesting option for us.

      Too early to say where we will draw the line between SketchUp and our application. There are a few options, from a really tenuous connection, to deep integration.

      We're using SVG for our graph. AFAIK SketchUp uses WebKit on Mac and IE on PC. MatterMachine should run on both.

      But we expect some hurdles πŸ˜„ Would be great if you could help us with those, but totally understand you're invested. Respect for what you've done! I kinda know how much work it is πŸ˜‰

      I'll PM you!

      posted in Corner Bar
      tkluyskT
      tkluysk
    • RE: Nodebased GUI [WIP]

      For those still interested in this topic, I started a new thread here:

      http://sketchucation.com/forums/viewtopic.php?f=179%26amp;t=58195

      posted in Plugins
      tkluyskT
      tkluysk
    • RE: [REQ] Grasshopper for Sketchup

      If this topic is still relevant to you, have a look here:

      http://sketchucation.com/forums/viewtopic.php?f=179%26amp;t=58195

      posted in Plugins
      tkluyskT
      tkluysk
    • Parametric modeling, anyone?

      Hi all,

      we're exploring the possibility of adapting MatterMachine for use in SketchUp, and would like to get some opinions about that from this community.

      MatterMachine is a flow-based parametric modeling engine. Think Grasshopper, or SideFX Houdini. It currently runs in the browser, using Unity3D.

      It's akin to Dynamic Components, but it uses a graph, is more modular, and packs quite a bit more power in general.

      Here are a couple of examples of what that power gives you:
      An intro showing a table configurator and how to model a parametric classic: a shell.
      Modeling a Spiral Staircase

      Below are a few live examples. It's currently best to use Chrome. And you'll be asked to install the Unity3D plugin.
      The /editor links will show the graph.

      Staircases:
      http://mattermachine.com/app#machine/AHnb3ZkNNQcuJst2Z8nVqT/spiral-staircase
      http://mattermachine.com/app#machine/AHnb3ZkNNQcuJst2Z8nVqT/spiral-staircase/editor

      http://mattermachine.com/app#machine/ykreci4Y59ktGWkanTY9oh/stair-string
      http://mattermachine.com/app#machine/ykreci4Y59ktGWkanTY9oh/stair-string/editor

      Window & Door:
      http://mattermachine.com/app#machine/AHnb3ZkNNQcuJst2Z8nVqT/multipanel-window
      http://mattermachine.com/app#machine/AHnb3ZkNNQcuJst2Z8nVqT/multipanel-window/editor

      http://mattermachine.com/app#machine/ykreci4Y59ktGWkanTY9oh/door-and-doorframe
      http://mattermachine.com/app#machine/ykreci4Y59ktGWkanTY9oh/door-and-doorframe/editor

      Draw people & trees:
      http://mattermachine.com/app#machine/AHnb3ZkNNQcuJst2Z8nVqT/place-trees-people
      http://mattermachine.com/app#machine/AHnb3ZkNNQcuJst2Z8nVqT/place-trees-people/editor

      We think we can lower the threshold for developing dynamic assets, as well as provide a visual programming alternative to Ruby extensions.

      Let us know if you think it's worth a shot (or not!).

      Tom

      posted in Corner Bar
      tkluyskT
      tkluysk
    • 1 / 1