Using images for scaling and geometry patterns in SketchUp

Using images for scaling and geometry patterns in SketchUp

This post was actually inspired by a question in my Basecamp presentation: Could we use images to create or modify geometry in SketchUp? As it turns out, this is actually quite easy since SketchUp version 2018. This year's version of SketchUp includes a new class in Ruby, the ImageRep. Contrary to the regular Image class (which you can use to work with images as entities in SketchUp), the ImageRep class goes further and allows you to look at images on a pixel by pixel basis. This is basically what we need to be able to read pixel color values and then use those to create or modify geometry. As you can see in the code snippet below, this is reasonably straightforward once one figures out the basic geometric behavior. The code even stretches the image by the (x and y) dimensions of the selected geometry. One part that needed to be resolved was that color information in an image contains red, green, and...
Read More
Beautiful Functions in SketchUp

Beautiful Functions in SketchUp

Scripting geometry (as described in Chapter 7) can make things look very interesting (and quite beautiful) with a rather small amount of actual code. You can see this in the patterned panel example or in the pulled brick post. Both of those examples use a combination of sine and cosine functions to create a "wavy" pattern that nicely undulates shapes and geometry. There are other functions, however, some of which you likely remember from algebra and trigonometry classes. But even without delving too deeply into this, I thought it would be useful to have a reference for some interesting functions that may be of use. The interactive examples shown below use the following grid of 1 inch cubes in SketchUp that were simply scaled vertically according to the lines of code that are included at the bottom of this post. Obviously you can use this approach for other purposes and in other ways, too, but this is a good way to...
Read More
SketchUp 2017 is out. And it’s looking great!

SketchUp 2017 is out. And it’s looking great!

Okay, admittedly SketchUp 2017 has been out for a few days now (there's even a first maintenance release already). I just didn't get around to posting about it. So, what do I like most about this release? Here's my rundown: A new Graphics Engine This one is a major improvement. As you may know, SketchUp doesn't only exist on Mac or Windows computers, but since a little while also as a browser-based modeling app on the web (at my.sketchup.com). This means that there are three different graphics environments out there in which you can push and pull to your heart's content. It makes only sense from a software development standpoint to unify those three. Fortunate for the users, this also leads to much more consistent graphics as well. Specifically this means: The modeling environment is now DPI-aware. This means that on a high-resolution screen, everything from lines to tool cursors now scales with the set resolution. You can see this already in the...
Read More
How to best prepare your SketchUp models for Sketchfab.com

How to best prepare your SketchUp models for Sketchfab.com

There are nowadays quite a few ways in which we can share a SketchUp model with the world, thanks to a technology that is built right into most modern browsers: WebGL. One example is Trimble's 3D Warehouse, where an uploaded model becomes an interactive one just by clicking on a small icon: Other web services expand on this technology. Of those, Sketchfab offers amazing possibilities when it comes to adjusting the model and its materials after upload. Using its 3D Editor, you can tweak the interactive WebGL model quite a bit. Here is an example of an edited SketchUp model. I am covering the process of preparing a SketchUp model, uploading, and adjusting it in a guest post on the Sketchfab blog. You can read it at the link below. Feel free to discuss anything related to this process in the comments below this post. http://blog.sketchfab.com/post/139059882629/getting-your-sketchup-models-to-sketchfab-the If you want to experiment with the sample model, download it here: https://3dwarehouse.sketchup.com/model.html?id=uf387fc06-37bd-4099-ad5a-584fd6525db1...
Read More
Second edition of “Architectural Design with SketchUp” is now available!

Second edition of “Architectural Design with SketchUp” is now available!

I am very excited to be announcing the release of the second edition of my book "Architectural Design with SketchUp" today! For this edition, I went back through the text and updated and improved a lot of content. As before, my main goal was to keep it relevant for as large a variety of SketchUp users as possible and at the same time provide thorough yet easy to follow examples and tutorials. I am also very excited to announce a completely new chapter on physically making things with SketchUp that includes 3D printing, CNC cutting, and other techniques. Lots of fun stuff! As before, this second edition will use the companion website at http://sketchupfordesign.com/the-book where you can find free sample chapters, videos, references, 3D models, and tutorials.There are also now over 30 videos that accompany the book and can be accessed using the instructions in the book. Interested in getting the book? Check out Amazon or Wiley. Here's the official press release: 3D Modeling in SketchUp and Digital Making Come Together in Second Edition of “Architectural...
Read More