[Plugin] Rain - v1.0.0 Beta

[Plugin] Rain - v1.0.0 Beta

Postby renderiza » Tue Nov 06, 2012 11:09 pm

This is a plugin that enables you to have animated rain with thunder inside SketchUp.

Rain v1.0.0 Beta: https://www.dropbox.com/sh/do3mst2z8exwu8u/dRxHelRQzL

3D Model: http://sketchup.google.com/3dwarehouse/ ... vstart=168

0
User avatar
renderiza 
Premium Member
Premium Member
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby utiler » Wed Nov 07, 2012 6:53 am

This is wicked, Rafael!!!! :ecstatic:
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby thomthom » Wed Nov 07, 2012 10:52 am

I'm currently rendering a model so I can't install and try the plugin right now.

But I've been looking at the code - got a couple of suggestion:

1. Why publish the plugin as a RAR - why not use RBZ so it can be installed directly from within SketchUp? (And no need for extra utilities to unpack.)

2. You're using Sketchup.find_support_file to determine the path to your support folder. This can give you the wrong path. Plugins isn't installed in the main SketchUp Plugins folder. I for instance install my plugins to a shared Dropbox folder - I cannot do that with plugins that use Sketchup.find_support_file. There's also issues where many OSX users place their plugin in their USER folder instead of the ROOT folder. Because of this it's best to get the actual path of your files using the magic constant __FILE__. Read more here: http://www.thomthom.net/thoughts/2012/0 ... -anywhere/

3. Strings are very slow! Avoid using them whenever you can for stuff like states etc. Use Symbols or Integer constants instead. And .typename for determining the type of entity is one of them things that really bothers be about the API docs - because this method is horribly slow since it's returning string. Instead use .is_a?( Sketchup::ComponentInstance ). Read more: http://www.thomthom.net/thoughts/2011/1 ... -typename/

4. Your Thunder Effects routine can be re-factored to not repeat it self. You only change a couple of values for each repeated pattern there. Perfect candidate for a method with arguments. Much easier to maintain when you need to make changes.

Hope this helps.

I'll get around to try it out in action when I'm done with my renders.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby iichiversii » Wed Nov 07, 2012 11:07 am

This is fantastic, the effects are very effective :thumb:
0
Bring on the Rain...
User avatar
iichiversii 
Premium Member
Premium Member
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby pilou » Wed Nov 07, 2012 11:12 am

Very tricky one! :fro:

Next will be to show the level of water grows over the volumes! :enlight:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby Dave R » Wed Nov 07, 2012 12:03 pm

What a cool idea!
0
Inspecting mirrors is a job I could easily see myself doing.

If you are the smartest person in the room, you are in the wrong room.
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby mitcorb » Wed Nov 07, 2012 1:55 pm

Bravo to you, Renderiza.
0
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb 
Top SketchUcator
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby renderiza » Wed Nov 07, 2012 8:52 pm

Thanks everyone for your comments! :mrgreen:

thomthom – This type of feedback is very valuable and I’ll be sure to study your suggestion carefully so I can apply them later.
0
User avatar
renderiza 
Premium Member
Premium Member
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby EscapeArtist » Thu Nov 08, 2012 3:03 am

I'll be darned. Never would've thought of that within SU. Cool, and thanks for sharing!
0
User avatar
EscapeArtist 
Top SketchUcator
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby 3eighty » Thu Nov 08, 2012 8:35 pm

The water is so real..Excuse me. I have to visit the men's room...
0

3eighty 
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby SimFonIA_team » Fri Nov 09, 2012 11:17 am

Hello Renderiza,

That is a very interesting and usefull job, thank you )). in a recent message you tried to link your plugin with our animation tool, does it work?
0
Give life to your ideas : http://www.simfonia.fr/SAT/
User avatar
SimFonIA_team 
SimFonIA
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby renderiza » Fri Nov 09, 2012 1:01 pm

EscapeArtist: After watching “Advanced Ruby Scripting for Sketchup” by Scott Lininger I started to get interested in doing these kinds of stuff. Here is a link; http://www.youtube.com/watch?v=FALvwBN5-hc

3eighty: I hope that is not a concurrent symptom problem.

SimFonIA_team: You guys are awesome thanks for your “SimFonIA Animation Tools”!

To answer your question I have been able to run animations made with your tools while simultaneously running animations that I have coded with my own scripts like this rain plugin for example. A current workflow of mine is to try animating my idea with your tool before trying it on code because I find it to be faster that way.

One thing I have not figure out is to make your record video option to recognize my animation but I recently got “Fraps” to record videos which can solve this problem. I need to check if I can disable the “Elapsed” time but that is not that big of a deal.

A future plan of mine is to be able to share animations like flying birds, moving trees, clouds, ect… with your tool through Trimble’s Warehouse since I feel one of the strongest feature of your plugins is that the animation data stays with the object itself.
Thanks!
0
User avatar
renderiza 
Premium Member
Premium Member
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby SimFonIA_team » Fri Nov 09, 2012 3:33 pm

Hello Renderiza,

It is interesting to have your feedback. We are surprised by your workflow (first using SAT before going into code) : very interesting.

About simultaneous recording of rain_plugin and SAT I suggest you send an email to our developer (I am just an awful physicist). He will give you technical information and search for a solution. You can join him there: bugreport.sat[arobase]simfonia.fr

Best regards,
0
Give life to your ideas : http://www.simfonia.fr/SAT/
User avatar
SimFonIA_team 
SimFonIA
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby renderiza » Fri Nov 09, 2012 4:46 pm

That is very cool to know thank you!
0
User avatar
renderiza 
Premium Member
Premium Member
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby mjeduard » Sat Nov 24, 2012 5:31 pm

Rafa, felicidades great plugin. keep on the good work.

CHALUPA
0

mjeduard 
 

Re: [Plugin] Rain - v1.0.0 Beta

Postby renderiza » Sat Nov 24, 2012 10:22 pm

Hola,

Que bueno saber que personas que hablan español visitan este sitio.

Muchas gracias!
0
User avatar
renderiza 
Premium Member
Premium Member
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: jls006 and 10 guests

Visit our sponsors: