• Login
sketchucation logo sketchucation
  • Login
๐Ÿค‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Camera independent flat shading (solved)

Scheduled Pinned Locked Moved Newbie Forum
sketchup
8 Posts 4 Posters 1.1k Views 4 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.
  • O Offline
    OricAtmos
    last edited by OricAtmos 3 Feb 2011, 12:06

    Hi,

    is there a shading mode that doesn't change the brightness of faces when the camera moves or rotates but that displays the faces' colors? Hidden Line mode doesn't show colors, Shaded and Shaded With Textures changes the brightness with camera orientation. Turning on shadows makes the brightness independent from the camera but introduces shadows which I would like to avoid. Besides, rendering with shadows can get really slow with complex models.
    I'm partially color blind, so it's very hard for me to see whether all faces have the correct material applied when the brightness of the faces changes with the view angle.

    If all else fails, I'm probably going to write an OpenGL wrapper dll that hopefully can manipulate the calls to the OGL API in a way that gets me what I want, but I'm hoping there's a simpler solution.

    Any help appreciated!

    Edit (Solution):
    Setting Light to 0 and Dark to 80 in the Shadow Settings seems to preserve the material's color exactly.

    Edit 2:
    Here's the corresponding ruby code:

    shadow_info = Sketchup.active_model.shadow_info
    shadow_info["Light"] = 0
    shadow_info["Dark"]  = 80
    shadow_info["UseSunForAllShading"] = true
    shadow_info["DisplayShadows"]      = false
    
    1 Reply Last reply Reply Quote 0
    • G Offline
      Gaieus
      last edited by 3 Feb 2011, 12:32

      Hi Ralf (and a bit belated welcome),

      In the shadow settings dialog, do not set shadow (of course) but check "use sun for shading" then pull both the dark and light sliders completely to the right. To me, it seems there is no difference between the colour of the faces this way.

      (You can even save this setting as a custom template to always start with under File > Save as template)


      shadows.png

      Gai...

      1 Reply Last reply Reply Quote 0
      • M Offline
        mitcorb
        last edited by 3 Feb 2011, 12:42

        @Gaieus: Don't you ever sleep? You must be trying to outdo TIG ๐Ÿ˜†

        I take the slow, deliberate approach in my aimless wandering.

        1 Reply Last reply Reply Quote 0
        • G Offline
          Gaieus
          last edited by 3 Feb 2011, 12:53

          It's just 2 pm here. Soon going to mum for lunch!
          ๐Ÿ˜„

          Gai...

          1 Reply Last reply Reply Quote 0
          • O Offline
            OricAtmos
            last edited by 3 Feb 2011, 13:17

            @gaieus said:

            To me, it seems there is no difference between the colour of the faces this way.

            Thanks a lot, I didn't know that option! Unfortunately it doesn't seem to work for very dark or very light colors. But it's better than the view angle dependent shading.


            almost there, but not quite

            1 Reply Last reply Reply Quote 0
            • G Offline
              Gaieus
              last edited by 3 Feb 2011, 13:27

              And what if you pull the light (upper) slider completely to the left?

              Gai...

              1 Reply Last reply Reply Quote 0
              • M Offline
                MrPokeylope
                last edited by 3 Feb 2011, 17:03

                @gaieus said:

                And what if you pull the light (upper) slider completely to the left?

                Interesting. Now the shading is consistent, but I have another problem. Some colors now look too similar. At least for me. See for yourself:


                no_sun.png


                use_sun.png


                These are the two colors that look almost the same with sun shading.

                1 Reply Last reply Reply Quote 0
                • O Offline
                  OricAtmos
                  last edited by 3 Feb 2011, 17:06

                  Oh, sorry. I was logged in with an old account (that I didn't remember I had) on my home computer.

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

                  Advertisement