• Login
sketchucation logo sketchucation
  • Login
โ„น๏ธ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

[Plugin] ShadowProjector

Scheduled Pinned Locked Moved Plugins
127 Posts 35 Posters 80.4k Views
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.
  • S Offline
    simon le bon
    last edited by 14 Dec 2011, 09:53

    Hi John

    You are right in the way I never take enough care of the scale !!! ๐Ÿ˜‰
    In this occurrence, the scale is not too small but too big: a glass of 135cm width !! You may be thirsty ๐Ÿ˜ฒ


    http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/thShadowProjector_TIG_004.jpg

    ++simon

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 14 Dec 2011, 13:52

      Is the orange face 'reversed' - view in Monochrome mode to see.
      Shadows are only cast onto front faces.
      Also there is an issue with tiny faces/holes and groups/instances placed exactly onto a face and casting a shadow.
      I'm doing a fix now...

      TIG

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 14 Dec 2011, 15:27

        Here's v1.1 http://forums.sketchucation.com/viewtopic.php?p=371243#p371243
        1.1 20111214 Addressed issues with tiny faces/holes and group/instance sitting on face whilst casting a shadow.

        TIG

        1 Reply Last reply Reply Quote 0
        • S Offline
          simon le bon
          last edited by 14 Dec 2011, 18:18

          Hi TIG ๐Ÿ˜‰

          This tool is a great idea ++ ๐Ÿ‘
          I'm very sorry The updated rb doesn't work at all and anymore for me (and the first version is overwrited arghhh!).

          Please can you pick an eye on my following SketchUp 7 model ?

          TIG_shadowProjector002.skp

          Sorry for trouble ๐Ÿ˜•

          ++simon

          1 Reply Last reply Reply Quote 0
          • T Offline
            TIG Moderator
            last edited by 14 Dec 2011, 20:24

            @simon le bon said:

            Hi TIG ๐Ÿ˜‰

            This tool is a great idea ++ ๐Ÿ‘
            I'm very sorry The updated rb doesn't work at all and anymore for me (and the first version is overwrited arghhh!).

            Please can you pick an eye on my following SketchUp 7 model ?

            [attachment=1:12he1z9c]<!-- ia1 -->TIG_shadowProjector002.skp<!-- ia1 -->[/attachment:12he1z9c]

            Sorry for trouble ๐Ÿ˜•

            ++simon
            I can get it to work with reduced complexity [removing the 'glass']...
            [attachment=0:12he1z9c]<!-- ia0 -->Capture.PNG<!-- ia0 -->[/attachment:12he1z9c]
            I don't have v1.0 either ๐Ÿ˜’ [lost it!]
            I'll investigate...


            Capture.PNG

            TIG

            1 Reply Last reply Reply Quote 0
            • S Offline
              simon le bon
              last edited by 14 Dec 2011, 23:48

              Hi TIG,

              @unknownuser said:

              I can get it to work with reduced complexity [removing the 'glass']...

              Me too ๐Ÿ‘ ๐Ÿ˜‰

              http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/ShadowProjector_TIG_005.jpg

              I'm going to test the ShadowProjector with incremental complexity models...

              thank you for your patience and kindness

              *s

              1 Reply Last reply Reply Quote 0
              • T Offline
                TIG Moderator
                last edited by 15 Dec 2011, 09:19

                Hiding the glass, or putting it onto an 'off' layer work too...

                TIG

                1 Reply Last reply Reply Quote 0
                • S Offline
                  simon le bon
                  last edited by 15 Dec 2011, 11:30

                  Dear TIG

                  @unknownuser said:

                  I can get it to work with reduced complexity [removing the 'glass']...


                  Hiding the glass, or putting it onto an 'off' layer work too...

                  As I can conclude , ShadowProjector not only take in account the geometry casted by the shadowed selected face, but also the entire geometry of the model.๐Ÿ˜’
                  ๐Ÿ˜•

                  @unknownuser said:

                  I'm going to test the ShadowProjector with incremental complexity models...

                  Alas ShadowProjector is stopped by the first model ๐Ÿ˜•

                  http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/ShadowProjector_TIG_006.jpg

                  http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/ShadowProjector_TIG_007.jpg

                  TIG_shadowProjector_incrementalComplexity.skp

                  Simon.

                  PS1: I am not happy to be the one who show the tool limitations ๐Ÿ˜ณ

                  PS: [Plugin] Teapot (1.0.0) โ€” 01 December 2009

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TIG Moderator
                    last edited by 15 Dec 2011, 13:35

                    You are right.
                    It would be better/quicker if it found only the objects potentially casting shadows on the face...
                    BUT the algorithm to do that robustly is beyond me [at the moment].
                    So at the moment it checks everything that's active for shadow casting even when it doesn't even cast a shadow on the face.
                    So I suggest that keep the 'active entities' simple [using temporary grouping?] and do small sets of shadows...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      TIG Moderator
                      last edited by 15 Dec 2011, 15:57

                      Here's v1.2 http://forums.sketchucation.com/viewtopic.php?p=371243#p371243
                      Its speed and error trapping are improved.
                      It now limits its purview to potential shadow-casting objects and is therefore quicker... ๐Ÿ˜ฒ

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        simon le bon
                        last edited by 15 Dec 2011, 17:42

                        @unknownuser said:

                        Because faces using a translucent material don't show normal shadows you can now use this tool to add a visible translucent 'gray' shadow-group face [with no edges] onto selected window-glass etc,

                        http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/ShadowProjector_TIG_009.jpg

                        http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/ShadowProjector_TIG_010.jpg

                        As it is, it's already a great tool dear TIG

                        Thank you so much to make SketchUp each day growing as a wonderful application

                        ++simon

                        1 Reply Last reply Reply Quote 0
                        • dereiD Offline
                          derei
                          last edited by 19 Dec 2011, 12:06

                          I can't use the plugin ๐Ÿ˜ž It crashes my model all the time. I made a magnifier glass and a ground plane (face) . I selected the face, that was oriented with front upwards (the shadow projected on front face), then ran the plugin. ... First time it made a grouped face over my selected one. Now it just crashes every time.
                          Model attached.


                          magnifier.skp

                          DESIGNER AND ARTIST [DEREI.UK](http://derei.uk/l)

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            TIG Moderator
                            last edited by 19 Dec 2011, 13:20

                            It Bugsplats for me too. ๐Ÿ˜• ๐Ÿ˜ข

                            It's a relatively small object and makes many tiny facets in the shadow that it needs to process.
                            Some complex shapes just have too much geometry.
                            I erased the unneeded coplanar edges which up the face count considerably!
                            Also made sure the forms were solids - tiny holes leak shadows - erased unwanted internal partitions and flaps...
                            The small detailing on the handle also makes some tiny facets when projected.
                            Lifting the handle up 1mm so it didn't touch the face [a single point of contact or tiny common facet seems to be awkward].
                            Making it 1000 bigger using Scale, simplifying the handle and putting the lens on an 'off' layer [you don't want it's shadow anyway ?] - I did get it to work eventually... BUT it took ages !

                            If I copy/paste your geometry into a new SKP I get an error fix now ? message about zero length edges - BUT it doesn't 'fix' within the SKP itself - weird...

                            This simplified version processes readily without problems.Capture.PNG

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • sbpronhS Offline
                              sbpronh
                              last edited by 22 Dec 2011, 18:08

                              Using this technic and some more ๐Ÿ˜„ creating anamorph art would be great!!!! url:
                              http://jrengozzi.wordpress.com/page/2/

                              Regards and thanks!
                              Harry

                              1 Reply Last reply Reply Quote 0
                              • JuantxoJ Offline
                                Juantxo
                                last edited by 2 Feb 2012, 08:22

                                If someone is interested there is a similar shadow projector in skelion plugin.
                                You can project shadows at specific time, but over a range of time too, that's the main difference of the plugin.
                                I tried with the magnifier.skp test and it works.(Time calculation about a minut)

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  morph
                                  last edited by 11 Mar 2012, 13:48

                                  to TIG

                                  I try to find the way to reduce the time of ShadowProjector plugin culation process after I found it take a long time when the number of calculated face up to 50 faces.

                                  Now, I study in master degree and try to create plugin to retrieve shadow area from all day solar vector on glass face of building. When I try to put ShadowProjector algorithm to 10 loops solar vector, the time usage graph of 10 loops are not linear. It is parabola although the time usage graph in loop which use the .raytest function is linear.

                                  Please suggestion.

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    TIG Moderator
                                    last edited by 11 Mar 2012, 15:40

                                    Morph

                                    The time it takes Sketchup to add objects to a context is not linear.
                                    The more objects the slower it is, but as you have noticed it is almost 'exponential' so x2 objects takes x4 the time etc.
                                    With relatively few objects this is not so noticeable - but the more objects the worse it gets.
                                    Also the number of objects already in the context slows things up considerably... so perhaps compartmentalizing the results inside their own entities context - e.g. a group - might speed things up...

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      morph
                                      last edited by 14 Mar 2012, 16:26

                                      to TIG

                                      Next idea I think I will try to use EntitiesObserver and EntityObserver to check face after first run calculation process (which take a long time) if face is not modified it will cut off from next calculation.

                                      But after I read Google Developer Sketchup (https://developers.google.com/sketchup/docs/ourdoc/entitiesobserver) it warn me that "WARNING: The methods of this observer fire in such a way that making changes to the model while inside of them is dangerous. If you experience sudden crashes, it could be because of this observer. A potential workaround is to use a ToolsObserver to watch what the user is doing instead."

                                      Please recommend me for my idea.

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        Mra
                                        last edited by 19 Jun 2012, 06:57

                                        I can't seem to get this to work.

                                        It works on one object on my scene, but crashes SketchUp if I attempt it on other objects (exploded or not, normals facing the right way).

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          TIG Moderator
                                          last edited by 19 Jun 2012, 10:06

                                          @unknownuser said:

                                          I can't seem to get this to work.
                                          It works on one object on my scene, but crashes SketchUp if I attempt it on other objects (exploded or not, normals facing the right way).
                                          How does it 'crash' ?
                                          If you mean it becomes 'unresponsive' [aka a white-out], that doesn't mean it's crashed - it's just taking a long time to do all of the calculations needed - the complexity increases exponentially as everything has to be checked against everything else... ๐Ÿ˜ฎ

                                          You do need to keep things as simplified as you can to ensure it completes within a reasonable time - e.g. use layers etc to hide unwanted objects, ensure the objects are not too complex - and remember that it's pointless casting shadows from [or onto] door-handles, leaves etc - it's to take shadows from block models onto block models etc - also many objects won't cast shadows if they are already within the 'umbra' of other objects, so exclude those from the calculations too...

                                          If it's actually 'crashing' - as in a Bugsplat! - then what error messages do you get, if any ๐Ÿ˜•

                                          TIG

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

                                          Advertisement