[Plugin] Shadowtex v1.0.1
-
[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]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.
-
how it use?
-
Kooool...
-
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.
-
@yorik1984 said:
how it use?
Steps:
-
Open plugin to reveal web-dialog shown above.
-
Pick between painting faces with colors or textures by selecting from radio buttons.
-
Choose color or textures by clicking on top of them.
-
Click Shadowtex Button for plugin to work.
-
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!
-
-
Works for me on Win8 and IE10
Thanks Raphael
-
@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.
-
@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!
-
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 ?
-
@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.
-
That's some interesting plugin!
Thanks Renderiza -
@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 RenderizaYou 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!
-
TIG managed to cut them out....
http://sketchucation.com/forums/viewtopic.php?p=371243#p371243
-
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!
-
@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!
-
@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!
-
@unknownuser said:
the IE6 is sufficient for me!
Guess not, since some things aren't working ! Plus, you're making devs' life harder.
-
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
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.
-
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… -
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
Advertisement