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

Messed up in Shadows

Scheduled Pinned Locked Moved SketchUp Discussions
sketchup
9 Posts 6 Posters 546 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.
  • M Offline
    mpiper
    last edited by 14 Oct 2010, 19:28

    hello,

    anyone know how to get shadows to behave properly when the view is taken in the cover of the shadows?

    whenever i position the view within the shadows the shadows get all messed up. they tend to cover the entire scene in a patchwork of shadows that is not what should be casted. i verified the shadows were normal by moving the scene out of the shadows, and sure enough they cast properly.

    1 Reply Last reply Reply Quote 0
    • D Offline
      Dragoonprogramming
      last edited by 14 Oct 2010, 22:27

      this is what most older sketch up users call the "infamous shadow bug"
      no know cure for it
      your just going to have to wait until google figures it out

      "...And if he says that one more time i'll punch him right in the throat" - Armstrong and Getty
      My website http://dragoonprogramming.weebly.com/

      1 Reply Last reply Reply Quote 0
      • C Offline
        Chris Fullmer
        last edited by 15 Oct 2010, 02:08

        It is called Carmack's reverse - or rather, Carmack's reverse would be the cure for it which Google is not licensed to use, hence the shadow problem. Its much larger than just SketchUp.

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

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 15 Oct 2010, 06:14

          I've worked around it occasionally by adding a tiny hole in the geometry behind the camera that lets in a tiny bit of light to the exact position of the camera eye.

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

          1 Reply Last reply Reply Quote 0
          • P Offline
            Pixero
            last edited by 15 Oct 2010, 06:24

            @thomthom said:

            I've worked around it occasionally by adding a tiny hole in the geometry behind the camera that lets in a tiny bit of light to the exact position of the camera eye.

            Ah, that was clever. Could it be made at least semi automatic?
            Meaning, that one would create the "hole" between the sun and the camera and turn it on and of with a click or something like that?
            Maybe booleans?

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 15 Oct 2010, 10:04

              To automate this...
              You'd need to get the vector from 'target' to 'eye', then 'raytest' [but its now buggy in v8!] with it - from the 'camera.eye' [or do we need 'eye' to 'sun' vector?]; finding every face it hits, then adding a small 'hole' in each of the faces - even if they are in instances ? - these 'holes' would have a new small face put on a new layer that is 'off' [only in that view ?]...
              A toggle toolbar that adds/removes the 'hole' is probably best - it'd find every face that's on that special layer and takes its edges and erase them if they are not needed to preserve other faces etc, these holes/faces would then disappear from the model...
              Thomthom is the resident 'raytest' guru... AND made this initial idea so we await his new wonder_tool... ๐Ÿ˜„

              TIG

              1 Reply Last reply Reply Quote 0
              • T Offline
                thomthom
                last edited by 15 Oct 2010, 10:21

                I won't have time for this one.
                But it could probably be made pretty non-restrictive by adding cut-out components where the holes needs tobe. then placing then on a separate layer for easy toggle.

                As for model.raytest - completely unpredictable in SU8, random rays fail. FUBAR. We need a patch for SU.

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

                1 Reply Last reply Reply Quote 0
                • T Offline
                  TIG Moderator
                  last edited by 15 Oct 2010, 10:50

                  To clarify... is the 'hole' needed from eye along the target_to_eye vector, or from eye along the eye_to_sun vector???
                  How big is the 'hole' required to be ?
                  I can see that using a small 'hole cutting' component placed on every face at every intersection of the ray with a face would be best. It's non-destructive and easier to remove later...

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thomthom
                    last edited by 15 Oct 2010, 11:06

                    It'd be from the eye to the sun - as, if I remember correctly, the camera eye needed to be outside the shadows.

                    (You might want to verify this works properly - as I only did it a couple of times, on very simple models. I might have mistaken the conditions that made it work...)

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

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

                    Advertisement