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

    [Plugin] Color by Z (Updated August 27th, 2009)

    Scheduled Pinned Locked Moved Plugins
    54 Posts 21 Posters 50.8k Views 21 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.
    • JClementsJ Offline
      JClements
      last edited by

      Chris, .skp was added to my previous posting.

      John | Illustrator | Beaverton, Oregon

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        Cool, thanks John. I see it now. There is some overlapping geometry that I couldn't see in the image. That accounts for the coloration working the way it is. Thanks John!

        Chris

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • X Offline
          xrok1
          last edited by

          maybe a better direction for this would be to create a plug that creates 'real' gradient textures based on the height of geo in a scene. they could then be projected manually or auto matically based on a plane that is created with a similiar prcess to a section plane?

          “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

          http://www.Twilightrender.com try it!

          1 Reply Last reply Reply Quote 0
          • Chris FullmerC Offline
            Chris Fullmer
            last edited by

            THats a nice arrow their John. It took me a while to find it on the image, but once I clicked on the image to expand it, it all made sense. Very nice. And your mountain looks great too! It works out really nice with white at the top that changes quickly into a brown and works its way down to give a nice snow capped mountain appearance 😄

            Chris

            Lately you've been tan, suspicious for the winter.
            All my Plugins I've written

            1 Reply Last reply Reply Quote 0
            • X Offline
              xrok1
              last edited by

              @daniel s said:

              SU7 has an option called Combine Textures (The Combine Textures menu item combines separate textures on adjacent co-planar faces into a single larger texture. This feature also, optionally, removes edges between co-planar faces to reduce the polygon count for the model as a whole. Context-click on multiple selected parallel faces, with at least one face having a texture, and select Combine Textures to create a texture which is unique to that set of faces.)
              This is a great tool, but it will be more usefull if it`s extended into curved surfaces. This Color by Z or the Tools On Surface are examples of plugins that will be benefit.

              Daniel S

              how can you get to this tool? i can't find it, tried RC menu?

              “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

              http://www.Twilightrender.com try it!

              1 Reply Last reply Reply Quote 0
              • Chris FullmerC Offline
                Chris Fullmer
                last edited by

                Here's a video on using combine textures.

                [flash=727,635:2s0w7uxd]http://www.chrisfullmer.com/chrisfullmer/forums/combine_textures.swf[/flash:2s0w7uxd]

                Chris

                Lately you've been tan, suspicious for the winter.
                All my Plugins I've written

                1 Reply Last reply Reply Quote 0
                • X Offline
                  xrok1
                  last edited by

                  thats sweet. thank you very much for that. coincidentally you just answer a another question, i was trying to figure out how to make a painted wall texture for skindigo, but i couldn't figure out how get SK to UV map surfaces with just white material on it so i could apply displacement. now after watching your vid i figure i can just make unique my material then it should be uv'ed.

                  thank you

                  “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                  http://www.Twilightrender.com try it!

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    linea
                    last edited by

                    Good idea Chris, thanks

                    1 Reply Last reply Reply Quote 0
                    • urgenU Offline
                      urgen
                      last edited by

                      ...nice idea Chris! 👍 😄

                      --pupil forever...------

                      1 Reply Last reply Reply Quote 0
                      • soloS Offline
                        solo
                        last edited by

                        Cool and thanks, this should come in handy.


                        http://img13.imageshack.us/img13/6384/colorfulkk4.jpg

                        http://www.solos-art.com

                        If you see a toilet in your dreams do not use it.

                        1 Reply Last reply Reply Quote 0
                        • JClementsJ Offline
                          JClements
                          last edited by

                          It never occurred to me to project a gradient color onto a terrain, great idea.

                          Mt Hood gone Active Vulcanic AGAIN 2.jpg

                          However, I do project gradient transparency along with gradient color onto a single surface to make arrow-shaped objects and "swooshes" that indicate direction or motion.

                          Gradient Arrow in SKP.jpg


                          Mt Hood gone Active Vulcanic AGAIN 2.skp


                          Gradient Arrow.skp

                          John | Illustrator | Beaverton, Oregon

                          1 Reply Last reply Reply Quote 0
                          • Chris FullmerC Offline
                            Chris Fullmer
                            last edited by

                            Solo, was that made with the plugin or with the image gradient method?

                            Chris

                            Lately you've been tan, suspicious for the winter.
                            All my Plugins I've written

                            1 Reply Last reply Reply Quote 0
                            • GaieusG Offline
                              Gaieus
                              last edited by

                              Hi Chris and all,

                              I haven't been able to drop by the Ruby Dept for days so I might be a bit late... Do you know however Didier's "paint_altitude_faces.rb" by any chance? It works kind of similar (only with the gradients of the same colour):
                              http://www.crai.archi.fr/RubyLibraryDepot/Ruby/em_ren_page.htm
                              There's also a demonstration video supplied.

                              All in all, yours is a very cool plugin with this texture gradient! 👍

                              Gai...

                              1 Reply Last reply Reply Quote 0
                              • Chris FullmerC Offline
                                Chris Fullmer
                                last edited by

                                Yeah, I have a tendency to not look around to see if similar scripts exist before starting one (I think there were already about 4 version of a random pushpull script before I wrote mine, for example). Mostly because I'm still just writing these for the experience and they each teach me a new little portion of the Ruby SketchUp API. But I definitely need to watch out for that before I embark on any seriously large and in-depth projects I suppose!

                                So I tried to check his out, and its only painting black faces on my model regardless of what color I select. I suppose it might be a units thing? but I changed my model units to metric with no luck. Also the avi file wouldn't play for me so I couldn't see it in action. I even tried playing it with mPlayer, which generally plays anything you throw at it. But that didn't work. It came out all garbled.

                                Chris

                                Lately you've been tan, suspicious for the winter.
                                All my Plugins I've written

                                1 Reply Last reply Reply Quote 0
                                • thomthomT Offline
                                  thomthom
                                  last edited by

                                  @chris fullmer said:

                                  So I tried to check his out, and its only painting black faces on my model regardless of what color I select. I suppose it might be a units thing? but I changed my model units to metric with no luck. Also the avi file wouldn't play for me so I couldn't see it in action.

                                  Ditto.

                                  Thomas Thomassen — SketchUp Monkey & Coding addict
                                  List of my plugins and link to the CookieWare fund

                                  1 Reply Last reply Reply Quote 0
                                  • GaieusG Offline
                                    Gaieus
                                    last edited by

                                    Okay guys, don't ask me. I just remembered seeing the ruby in the list about two ears ago (never tried). Maybe it has problems with SU 6+? The video plays to me and Didier uses a blue colour for the demo.

                                    Gai...

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

                                      This is just great Chris. Thank you so much.
                                      I deal with many diffrent urban projects and
                                      I clearly see that Skechup with smart programmers like yourself
                                      has great potential in evolving into sth not only for visual outcomes but
                                      for urban analysis.
                                      Color by Z is already a great start isn't it?
                                      Could this kind of approach broadens to....
                                      **- analyze daytime shadow coverage ratio

                                      • density analysis(maybe by comparing # of lines certain area contains)
                                      • open view condition by z**
                                        and so on and so on...

                                      If anyone is interested, I would love to discuss about it(just can't program it ;( ).
                                      Thanks again Chris.Untitled.jpg

                                      1 Reply Last reply Reply Quote 0
                                      • Chris FullmerC Offline
                                        Chris Fullmer
                                        last edited by

                                        "analyze daytime shadow coverage ratio"

                                        That is one that has been on my mind lately. I just can't figure out how to figure out the percentage calculations because there is no easy way to get that data out of SU I think. So I would essentially have to find get the location data from the model, and evaluate each face myself using the sun angles every 15 minutes or something and run that on each face etc. I'm really not sure how that would go or if its even feasible. It would be cool if it was.

                                        Chris

                                        Lately you've been tan, suspicious for the winter.
                                        All my Plugins I've written

                                        1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          rinaldo
                                          last edited by

                                          Erro ao carregar o arquivo clf_color_by_z.rb
                                          No such file to load -- progressbar.rb

                                          1 Reply Last reply Reply Quote 0
                                          • TIGT Offline
                                            TIG Moderator
                                            last edited by

                                            @rinaldo said:

                                            Erro ao carregar o arquivo clf_color_by_z.rb
                                            No such file to load -- progressbar.rb

                                            Download progressbar.rb free from SMustard...

                                            TIG

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

                                            Advertisement