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

    [Plugin] FredoTools::ColorByAltitude - v1.2a - 10 Jul 21

    Scheduled Pinned Locked Moved Plugins
    26 Posts 7 Posters 21.6k Views 7 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.
    • fredo6F Offline
      fredo6
      last edited by

      @pixero said:

      Looking great.
      How is the colors applied to the surface? Is it projected from the x or y direction?
      I can see this useful as a mask for different terrain textures.
      Would it be hard to also add color by slope and a mix of both?

      Colors are applied in the Z direction (mapping Z to V), so it's not really a planar projection.

      The technique of using a single texture for all faces only works when there is an absolute criteria, here the altitude, which is defined in each point of the face.

      It won't work for slope, since faces can have different slopes in any direction (in addition to the difficulty to define a 'sliding' slope for a face).

      For masking, this is a limitation of Sketchup which cannot 'mix' textures. You have to do that in an external editor. In theory, I think I could do it from within Sketchup with the API, but it's going to be damned long for the calculation, as the plugin would have to calculate the individual mixed texture for every face. And of course, you'll get as many material as faces (which can be numerous in terrain). So not really something to keep a light model.

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

        Very nice, sir. A useful extension for sure.

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

        1 Reply Last reply Reply Quote 0
        • pilouP Offline
          pilou
          last edited by

          Fresh air of the altitude! 😎

          Frenchy Pilou
          Is beautiful that please without concept!
          My Little site :)

          1 Reply Last reply Reply Quote 0
          • PixeroP Offline
            Pixero
            last edited by

            That makes sense. I was thinking of using it as a mask in rendering software where you can layer materials.

            @fredo6 said:

            @pixero said:

            Looking great.
            How is the colors applied to the surface? Is it projected from the x or y direction?
            I can see this useful as a mask for different terrain textures.
            Would it be hard to also add color by slope and a mix of both?

            Colors are applied in the Z direction (mapping Z to V), so it's not really a planar projection.

            The technique of using a single texture for all faces only works when there is an absolute criteria, here the altitude, which is defined in each point of the face.

            It won't work for slope, since faces can have different slopes in any direction (in addition to the difficulty to define a 'sliding' slope for a face).

            For masking, this is a limitation of Sketchup which cannot 'mix' textures. You have to do that in an external editor. In theory, I think I could do it from within Sketchup with the API, but it's going to be damned long for the calculation, as the plugin would have to calculate the individual mixed texture for every face. And of course, you'll get as many material as faces (which can be numerous in terrain). So not really something to keep a light model.

            1 Reply Last reply Reply Quote 0
            • cottyC Offline
              cotty
              last edited by

              @fredo6 said:

              since faces can have different slopes in any direction

              I think the most useful slope would be the maximum value for each face, something like the magnitude of the gradient: "it has the direction of fastest increase of the function at P, and its magnitude is the rate of increase in that direction." [Wikipedia]

              my SketchUp gallery

              1 Reply Last reply Reply Quote 0
              • fredo6F Offline
                fredo6
                last edited by

                @cotty said:

                I think the most useful slope would be the maximum value for each face, something like the magnitude of the gradient: "it has the direction of fastest increase of the function at P, and its magnitude is the rate of increase in that direction." [Wikipedia]

                In fact I know more or less what to do to manage a continuous mapping of slope in any point of a face, since we compute the local gradient. The issue is that I cannot map a single texture for all faces, but would need individual texture by face. So it's a little bit overkill for the problem, which is mainly to visualize technicall the low and high slopes.

                1 Reply Last reply Reply Quote 0
                • pilouP Offline
                  pilou
                  last edited by

                  Frenchy Pilou
                  Is beautiful that please without concept!
                  My Little site :)

                  1 Reply Last reply Reply Quote 0
                  • fredo6F Offline
                    fredo6
                    last edited by

                    NEW RELEASE: ColorByAltitude 1.1e - 02 Nov 19

                    ColorByAltitude 1.1a includes cosmetic adjustments and bug fixing.

                    It is available as of FredoTools v3.7a.


                    See FredoTools plugin home page for Download.

                    See also main post of this thread for User Discussion.

                    Fredo

                    1 Reply Last reply Reply Quote 0
                    • zooenZ Offline
                      zooen
                      last edited by

                      Bonjour,

                      Je ne comprends pas, je n'ai pas la rampe de couleurs sur la gauche de la boîte de dialogue. Dans la vidéo elle est présente dès l'ouverture de la boîte de dialogue. J'ai désinstallé puis réinstallé FredoTools_v3.8c et il me manque aussi des icônes dans le lanceur FredoTools.

                      Quelqu'un a-t-il une réponse?

                      I don't understand, I don't have the color ramp on the left of the dialog. In the video it is present from the opening of the dialog box. I uninstalled and then reinstalled FredoTools_v3.8c and I'm also missing icons in the FredoTools launcher.

                      Anyone have an answer?

                      1 Reply Last reply Reply Quote 0
                      • fredo6F Offline
                        fredo6
                        last edited by

                        Which version of Windows?

                        Do you have the latest version of LibFredo6 (v9.5k)?

                        Fredo

                        1 Reply Last reply Reply Quote 0
                        • zooenZ Offline
                          zooen
                          last edited by

                          Bonsoir Fredo,

                          Merci de répondre aussi rapidement. Je suis bien à jour: 9.5k et je suis sous Win 10 Pro.

                          Zooen

                          1 Reply Last reply Reply Quote 0
                          • fredo6F Offline
                            fredo6
                            last edited by

                            There seems to be a problem with the SVG files in the default web browser (and also a problem for supporting Canvas). With Windows 10, this should be OK, unless you did something to the browser and still have an old version of IE.

                            Also, with LibFredo6 v9.5k, you should have a small eye icon on the right of each line.

                            Fredo

                            1 Reply Last reply Reply Quote 0
                            • zooenZ Offline
                              zooen
                              last edited by

                              Thank you for the answer,i do not use IE as a browser!

                              I look at that and come back to you to inform you of the rest.

                              Merci pour la réponse, je n'utilise pas IE comme navigateur!
                              je regarde ça et reviens vers toi pour t'informer de la suite.
                              Zooen

                              1 Reply Last reply Reply Quote 0
                              • zooenZ Offline
                                zooen
                                last edited by

                                Bonjour,

                                J'ai fait deux ou trois choses pour essayer de résoudre le problème (et comprendre la teneur de ton message).
                                J'ai installé SU 2020 sur mon portable (Win 8.1) avec Mozilla firefox comme navigateur par défaut (c'est toujours celui que j'utilise depuis des années) en y associant les SVG, pour voir si j'avais le même problème. Avec uniquement les extensions et plugins suivants:
                                Sketchucation plugin store et tes plugins et extensions.

                                j'ai fait un test avec avec ColorByAltitude Avec les trois variantes de dégradé, cela fonctionne (il y a déjà un progrès 😄 ). La matière est présente et varie en fonction de la variante choisie : Géographique, Niveaux de gris et Arc-en-ciel.

                                J'ai fait la même association SVG sur mon ordi de Bureau, même résultat c'est OK.

                                Mais je n'ai toujours pas la rampe et les icônes (voir la capture d'écran).

                                Quant à "Canvas" j'ai fais quelques recherches sur le net pour voir et comprendre ce que c'est, bon cela reste assez flou pour moi.

                                TruePaint et les autres plugins que j'utilise fonctionnent très bien aussi et je n'ai pas de problème d'affichage pour eux.

                                Voilà où j'en suis. Notre échange devrait-il sur faire sur le forum français?

                                Zooen

                                1 Reply Last reply Reply Quote 0
                                • V Offline
                                  varioushemrog
                                  last edited by

                                  Bon Jour Fredo! 😄

                                  I found today your extensions. Thank you so much for creating all these wonderful tools!

                                  I use a Macbook Pro 2021 M1 not intel and installed today: LibFredo6 12.8a, TopoShaper 2.6a and FredoTools 4.3a

                                  Sadly ColorByAltitude is NOT showing in my toolbar and it shows in in pink in the "Check Fredo6 Plugins for Update".

                                  This is the reason I downloaded the FredoTools 😄 I need to color by altitude a 20 acre land.

                                  Please help!

                                  Thanks for all you do! (I will post a message under TopoShaper for I have a couple of questions I hope you can help me with too)

                                  Have a happy one!

                                  Helena

                                  1 Reply Last reply Reply Quote 0
                                  • fredo6F Offline
                                    fredo6
                                    last edited by

                                    @varioushemrog said:

                                    Sadly ColorByAltitude is NOT showing in my toolbar and it shows in in pink in the "Check Fredo6 Plugins for Update".

                                    Could you show a screenshot of this.

                                    In principle, FredoTools::ColorByAltitude should work on Mac M1.

                                    1 Reply Last reply Reply Quote 0
                                    • V Offline
                                      varioushemrog
                                      last edited by

                                      Hi Fredo! 😄

                                      Of course, here is the Screenshot.

                                      Merci beaucoup!

                                      Helena


                                      Showing Palette

                                      1 Reply Last reply Reply Quote 0
                                      • fredo6F Offline
                                        fredo6
                                        last edited by

                                        Then, can you check the version of FredoTools. It cannot be v4.3a.

                                        1 Reply Last reply Reply Quote 0
                                        • V Offline
                                          varioushemrog
                                          last edited by

                                          Hi Fredo,

                                          I went to Tools> FredoTools> About FredoTools 4.3 and it opens a window that says: "Fredo Tools 4.3a - 06 Mar 22"

                                          See attached screenshot please. 😄

                                          Thanks!


                                          version

                                          1 Reply Last reply Reply Quote 0
                                          • fredo6F Offline
                                            fredo6
                                            last edited by

                                            Your screenshot shows that you run Sketchup 2017.

                                            ColorByAltitude only works with SU2018 and above.

                                            So, it is normal you do not see it in the menu.

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

                                            Advertisement