sketchucation logo sketchucation
    • Login
    ⚠️ Attention | Having issues with Sketchucation Tools 5? Report Here

    Better fog tools ?

    Scheduled Pinned Locked Moved Plugins
    12 Posts 6 Posters 492 Views 6 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.
    • D Offline
      DOD3R
      last edited by

      Hi guys,
      I am just wandering if someone could benefit from better fog tool.
      I am thinking of distances based falloff.
      Or is there any other way to be consistent results with fogtool?
      My problem is that my elevations and exports with fog, are with different shades of colors and it simply looks bad on paper.

      1 Reply Last reply Reply Quote 0
      • renderizaR Offline
        renderiza
        last edited by

        Do you have any examples that will help me understand what distance based falloff is?

        [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

        1 Reply Last reply Reply Quote 0
        • pbacotP Offline
          pbacot
          last edited by

          Something about the fog settings certainly make it difficult for me to use. I'll grant that. But what could be done? Usually get what I need eventually.

          I would like to see what you mean visually if possible.

          MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

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

            I don't use fog much but I've thought it would be interesting to be able to define where the fall-off occurs using a graphical slider right on the ground plane. Probably not possible but it would be cool.

            Fog.png

            Etaoin Shrdlu

            %

            (THERE'S NO PLACE LIKE)

            G28 X0.0 Y0.0 Z0.0

            M30

            %

            1 Reply Last reply Reply Quote 0
            • jolranJ Offline
              jolran
              last edited by

              It may be possible, since there appears to be some RenderingOptions methods in the API for this matter.

              I have never experimented with these, but one can extract this information:
              (I persume on can also set these attributes.)

              FogColor
              FogDensity
              FogEnd
              FogStart
              FogType
              FogUseBkColor
              ForegroundColor

              So using a graphical slider right on the ground plane like Dave R demonstrates could be a good solution. One could use GL rendered objects for that.
              There already are some fance gadgets in this fashion made. Look at some of Fredos Tools and Aerilius GL sliders and gadgets.

              It's an interesting project, but I don't have any time left over for this kind of thing. Maybe Renderiza ? πŸ˜„

              1 Reply Last reply Reply Quote 0
              • renderizaR Offline
                renderiza
                last edited by

                Hi,

                I will be happy to give it a try! πŸ’š

                The example that Dave R posted is very helpful to understand the end goal but if anyone have a particular idea please share it so we can make the best plugin possible.

                Thanks,
                Renderiza

                [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                1 Reply Last reply Reply Quote 0
                • renderizaR Offline
                  renderiza
                  last edited by

                  I did some looking around an found this post in which thomthom makes a list of what seems all the rendering_options... http://sketchucation.com/forums/viewtopic.php?f=323&p=271960

                  For Example:

                  Sketchup.active_model.rendering_options["DisplayFog"] = true

                  Sketchup.active_model.rendering_options["FogStartDist"] = 1.0

                  Sketchup.active_model.rendering_options["FogEndDist"] = 15000.0

                  Note: Just in case you are lost in how to use the lines of code you see above, here is a list of some of the best Ruby Consoles for SketchUp... http://renderizastudio.blogspot.com/2013/06/top-ruby-consoles-for-sketchup.html

                  [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                  1 Reply Last reply Reply Quote 0
                  • renderizaR Offline
                    renderiza
                    last edited by

                    Here are some interesting finds...

                    Fog Distance -what does it refer to? by thomthom - http://sketchucation.com/forums/viewtopic.php?f=180&p=219538

                    The above is a discussion that have me worried the plugin we wanted to create is not possible. This distance value of the fog is always tied to the camera position so it is not a fixed value that can be easily attach to a marker on the floor like we want it to.

                    Maybe it could be done but I just don't know how at the moment. 😒


                    The following Rendering Options methods are a mystery to me!

                    • DisplayFogEdges

                    • FogDensity

                    • FogType

                    Maybe the SketchUp team was on to something they never finished. πŸ˜•


                    Anyways I will keep the search, wish me luck! πŸ‘

                    [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

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

                      A Fog plugin would be very cool. I've tried fog a few times and never could get it to go where I wanted to. Best of luck Renderiza.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        DOD3R
                        last edited by

                        DaveR naled it with the picture!
                        exactly what i had on my mind. visually i was imagining repaints axes gadget.
                        so i hope lives thats good. πŸ˜„
                        good luck Renderiza in making.
                        D.

                        1 Reply Last reply Reply Quote 0
                        • jolranJ Offline
                          jolran
                          last edited by

                          @unknownuser said:

                          The above is a discussion that have me worried the plugin we wanted to create is not possible. This distance value of the fog is always tied to the camera position so it is not a fixed value that can be easily attach to a marker on the floor like we want it to.

                          Maybe it could be done but I just don't know how at the moment. 😒

                          Ah bummer. Not as straightforward to do then..
                          Looks like there have been some pre attempts at making a plugin like this.

                          I have never dealt with fog so aint got a clue how it works.

                          Looks like there are some hints from TIG dealing with raytests and camera positions, etc in the links. Thomthom where on to something there as well.
                          Maybe that could help. Hope you manage to find something, Renderiza.

                          1 Reply Last reply Reply Quote 0
                          • renderizaR Offline
                            renderiza
                            last edited by

                            Thanks everyone for the encouragement, I will try my best. πŸ‘

                            @jolran said:

                            Looks like there are some hints from TIG dealing with raytests and camera positions, etc in the links. Thomthom where on to something there as well.
                            Maybe that could help. Hope you manage to find something, Renderiza.

                            The camera position in relation to the markers on floor is something to be explored indeed but its going to be a mess trying to have formula that can give you the right value for fog. πŸ˜•


                            Depth of Field
                            with SkethcUP and Photoshop

                            Here is little experiment using Fog and the style options for making an alpha type image that I could use in Photoshop to make depth of field.

                            Alpha 1 (from SketchUp)

                            http://s21.postimg.org/h2d1wndtz/image.jpg

                            This is an exported image from SketchUp which was made to look like that using Styles options to modify fog color and few other parameters. This output image will then serve me as alpha channel to apply lens blur in Photoshop.

                            Original (from SketchUp)

                            http://s16.postimg.org/50848wuj9/image.jpg

                            Result (from Photoshop)

                            http://s3.postimg.org/bwdsy5xib/image.jpg

                            This is how it will look with depth of field applied, please keep in mind that you have full control of the amount and you can even invert it so that the blur area is the front. Apart from the blur effect I also did an inner shadow type of effect just in case anyone wanted to know.

                            Maybe I will make a tutorial so that it becomes more clear how to do this.

                            Thanks,
                            Renderiza

                            [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

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

                            Advertisement