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

    [Plugin] Shadowtex v1.0.1

    Scheduled Pinned Locked Moved Plugins
    20 Posts 10 Posters 15.4k Views 10 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.
    • renderizaR Offline
      renderiza
      last edited by renderiza

      [pre:3d9bu8ng]Author:: Renderiza
      Plugin Name:: Shadowtex
      Version:: 1.0.1
      Release Date:: 6/11/2013
      Update Date:: 6/12/2013
      Cost:: Free[/pre:3d9bu8ng]

      http://s21.postimg.org/5kvghu547/tt_1.png

      Shadowtex

      %(#909090)[Shadowtex enables you to paint or texture all faces that are in shadows automatically.

      Shadowtex targets a single ray from the center of a face, towards the direction of the sun and if a collision is detected preventing it from reaching that point, then it will be assumed that the face is in shadow. This method only works with loose faces, but if the plugin is activated while inside a group or component it will target all the faces there.

      If shadows are only being projected in some areas of a single face, the plugin will not apply color or texture to does specific instances. Remember that the plugin only takes into consideration a single point on the center of the face and if that specific area is not on shadow it will assume the whole surface is like that as well.

      Do not consider Shadowtex a one click solution, but instead a plugin that will require your assistance in completing a specific task.

      For plugin compatibility it is recommended to instal] Internet Explorer 9 or higher.

      Available at
      sketchUcation
      pluginStore
      click here

      ______________________________________________________________________

      Extension Warehouse

      click here

      Note: If the latest version is not yet available at Extension Warehouse that means it is still awaiting to be approved by the quality assurance team to make sure extension meets the technical and security requirements.

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

      1 Reply Last reply Reply Quote 0
      • yorik1984Y Offline
        yorik1984
        last edited by

        how it use?

        1 Reply Last reply Reply Quote 0
        • KrisidiousK Offline
          Krisidious
          last edited by

          Kooool...

          By: Kristoff Rand
          Home DesignerUnique House Plans

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

            Interesting idea. I tried it on my Win7 machine. Edit: after running it several times with no results, I ran it again and finally got a color displayed however it just painted an entire face. It did not discern between shadow and lit regions on the face.

            Etaoin Shrdlu

            %

            (THERE'S NO PLACE LIKE)

            G28 X0.0 Y0.0 Z0.0

            M30

            %

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

              @yorik1984 said:

              how it use?

              http://s21.postimg.org/lnznswprb/dlg_1.jpg

              Steps:

              1. Open plugin to reveal web-dialog shown above.

              2. Pick between painting faces with colors or textures by selecting from radio buttons.

              3. Choose color or textures by clicking on top of them.

              4. Click Shadowtex Button for plugin to work.

              5. Done!

              Note: It is very important that the faces that you want to paint are not in components or groups. Also it is recommended have internet explorer 9 or above so that the color picker works.

              Hope this helps!

              @krisidious said:

              Kooool...

              Thanks...did it work for you no problem?

              @dave r said:

              Interesting idea. I tried it on my Win7 machine. Edit: after running it several times with no results, I ran it again and finally got a color displayed however it just painted an entire face. It did not discern between shadow and lit regions on the face.

              Have you set the sun position so that some faces are in shadow? I am not sure what is the problem at the moment but hopefully it will be figured out as soon as possible.

              Thanks for feedback!

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

              1 Reply Last reply Reply Quote 0
              • Rich O BrienR Offline
                Rich O Brien Moderator
                last edited by

                Works for me on Win8 and IE10

                Thanks Raphael

                Download the free D'oh Book for SketchUp πŸ“–

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

                  @unknownuser said:

                  Have you set the sun position so that some faces are in shadow? I am not sure what is the problem at the moment but hopefully it will be figured out as soon as possible.

                  Yes. I had an ungrouped face on the ground plane with a model standing on it so part of the ground face was in shadow. The plugin simply painted the entire ground face the same color.

                  Edit: I've tried it again with another model. I added an ungroupd face casting a shadow onto another ungrouped face, tried selecting bot face, tried selecting nothing, tried selecting one or the other. No change in the shadows but now I have half a dozen black thumbnails in the In Model Materials library. This time the plugin didn't even paint the face on the ground plane.

                  Etaoin Shrdlu

                  %

                  (THERE'S NO PLACE LIKE)

                  G28 X0.0 Y0.0 Z0.0

                  M30

                  %

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

                    @rich o brien said:

                    Works for me on Win8 and IE10

                    Thanks Raphael

                    You welcome!

                    @dave r said:

                    Yes. I had an ungrouped face on the ground plane with a model standing on it so part of the ground face was in shadow. The plugin simply painted the entire ground face the same color.

                    Currently the way the plugin detects when its on shadow is by projecting a ray from center of the face towards the sun and if there is something blocking it then it assumes its on shadow.

                    At the moment a single face will not be painted multiple ways depending if its on shadow or not since the shadow detection is not that complex to achieve that result yet.

                    Maybe a possible solution might be to try Shadow Projector by TIG http://sketchucation.com/forums/viewtopic.php?t=41885 and then use Shadowtex but eveb TIG's plugin has its limits if model is too complex.

                    The way I currently use Shadowtex is to paint as much of the faces automatically and then I do the rest manually to fix errors and such.

                    Hope this helps...cheers!

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

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

                      Works for me in V7! β˜€
                      Edit: I was too speed! πŸ˜’
                      The selector of color don't well appear! 😳
                      But I can enter the number! πŸ˜„

                      Any plugin for color the Shadows itself ?

                      blues.jpg

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

                      1 Reply Last reply Reply Quote 0
                      • KrisidiousK Offline
                        Krisidious
                        last edited by

                        @renderiza said:

                        Thanks...did it work for you no problem?

                        Yes, worked for me as described...

                        Don't know what I'll use it for, but it's certainly kool. I mistook it doing something else though. I thought it would put this color or pattern where ever the shadow landed. not where it originated from.

                        By: Kristoff Rand
                        Home DesignerUnique House Plans

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          Anton_S
                          last edited by

                          That's some interesting plugin! πŸ‘
                          Thanks Renderiza

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

                            @unknownuser said:

                            Works for me in V7! β˜€
                            Edit: I was too speed! πŸ˜’
                            The selector of color don't well appear! 😳
                            But I can enter the number! πŸ˜„

                            Any plugin for color the Shadows itself ?

                            Do you have the Windows Internet Explorer 9 or above installed? The color sample feature need it to run properly although its nice to know you can at least input number.

                            As for a plugin that changes the shadow color I have not seen that. From what I have seen the SketchUp API doesn't have a way to call the shadow color but not 100% sure. It will certainly be a nice addition to SU 2014...again thanks for feedback!

                            @krisidious said:

                            Yes, worked for me as described...

                            Don't know what I'll use it for, but it's certainly kool. I mistook it doing something else though. I thought it would put this color or pattern where ever the shadow landed. not where it originated from.

                            Making plugin put color or pattern where ever shadow lands while still be inside SketchUp will be pretty cool indeed. You can check out this plugin "NPR Tools" http://www.scriptspot.com/sketchup/plugins/nprtools-non-photorealistic-tools-for-sketchup it offers nice way to do what you suggested...the only thing is that it will work only on exported images and not give results inside SketchUp but it is still pretty good. Also they have nice library of sketchy texture that I like to use with Shadowtex...you just need to find the folder after you install it.

                            @anton_s said:

                            That's some interesting plugin! πŸ‘
                            Thanks Renderiza

                            You welcome Anton_S!

                            By the way I forgot to add "model.start_operation("Shadowtex", true)" and "model.commit_operation" so that you only need to click undo once but I already made changes and will be posting update soon for that. Will be trying to change faces inside groups as well...Again thanks for feedback!

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

                            1 Reply Last reply Reply Quote 0
                            • KrisidiousK Offline
                              Krisidious
                              last edited by

                              TIG managed to cut them out....

                              http://sketchucation.com/forums/viewtopic.php?p=371243#p371243

                              By: Kristoff Rand
                              Home DesignerUnique House Plans

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

                                Shadowtex v1.0.1 is updated!

                                Changes:

                                • Only one click needed to undo all painted faces.
                                • Shortened some code lines to iterate through faces.

                                @krisidious said:

                                TIG managed to cut them out....

                                http://sketchucation.com/forums/viewtopic.php?p=371243#p371243

                                I will put a Recommended Plugin section on main topic so that people can find out about TIG is plugin just in case they don't know about it.

                                Cheers!

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

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

                                  @unknownuser said:

                                  Do you have the Windows Internet Explorer 9 or above installed?

                                  No, the IE6 is sufficient for me! 98 % of the plugins are working! πŸ˜„

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

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

                                    @unknownuser said:

                                    @unknownuser said:

                                    Do you have the Windows Internet Explorer 9 or above installed?

                                    No, the IE6 is sufficient for me! 98 % of the plugins are working! πŸ˜„

                                    That is perfectly fine but please keep in mind that you may see new developers integrate HTML 5 & jQuery features to their plugins and that will open new possibilities in the future.

                                    Cheers! πŸ‘

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

                                    1 Reply Last reply Reply Quote 0
                                    • jiminy-billy-bobJ Offline
                                      jiminy-billy-bob
                                      last edited by

                                      @unknownuser said:

                                      the IE6 is sufficient for me!

                                      Guess not, since some things aren't working ! Plus, you're making devs' life harder.

                                      http://www.ie6countdown.com/

                                      25% off Skatter for SketchUcation Premium Members

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

                                        Hi, in order to be more clear and avoid any confutions on what the plugin do I changed the description. Since English is not my main language and I am dyslexic it will be nice If I was to be corrected of any mistakes. Below is what a wrote...

                                        @unknownuser said:

                                        Shadowtex targets a single ray from the center of a face, towards the direction of the sun and if a collision is detected preventing it from reaching that point, then it will be assumed that the face is in shadow. This method only works with loose faces, but if the plugin is activated while inside a group or component it will target all the faces there.

                                        If shadows are only being projected in some areas of a single face, Shadowtex will not apply color or texture to does specific instances. Remember that the plugin only takes into consideration a single point on the center of the face and if that specific area is not on shadow it will assume the whole surface is like that as well.

                                        Do not consider Shadowtex a one click solution, but instead a plugin that will require your assistance in completing a specific task.


                                        Shadowtex is now on Trimble Extension Warehouse! πŸ˜›

                                        Extension Warehouse

                                        http://www.sketchup.com/sites/sketchup/files/New_01_Extensions_240x126.jpg

                                        click here

                                        Note: If the latest version is not yet available at Extension Warehouse that means it is still awaiting to be approved by the quality assurance team to make sure extension meets the technical and security requirements.

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

                                        1 Reply Last reply Reply Quote 0
                                        • jojo9J Offline
                                          jojo9
                                          last edited by

                                          small but a very nice idea! πŸ‘

                                          as i see from your example, we should get texture on the projected as on the self shadow.
                                          Maybe i did too few tests, but my projected shadow rests always the default one, without texture.Hm…

                                          1 Reply Last reply Reply Quote 0
                                          • P Offline
                                            PropertyToday
                                            last edited by

                                            Hi.
                                            Can You look at the picture and tell why the faces are or are not in color???
                                            It is just simply few faces drawn wiyhout any groups etc. SU 2019
                                            Adam


                                            2019.10.28_00119.jpg

                                            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