Nutcracker: Effects...
 
Notifications
Clear all

Nutcracker: Effects builder released

92 Posts
22 Users
0 Reactions
34.6 K Views
Greg in Canby
Posts: 854
(@greg-in-canby)
Prominent Member
Joined: 19 years ago

I really need to get into this pixel technology. I suppose more work overtime is in order . . .


Reply
dirknerkle
Posts: 10293
(@dirknerkle)
Illustrious Member
Joined: 18 years ago
Lionking_Tx wrote:MOVIES ????? Hey, I'm drooling now

Hasn't this been done already? I mean, you can buy a digital projector for peanuts these days, and it'll certainly have more definition than any pixel setup that's realistically affordable...


Reply
Posts: 63
(@caretaker)
Trusted Member
Joined: 19 years ago
dirknerkle wrote:Hasn't this been done already? I mean, you can buy a digital projector for peanuts these days, and it'll certainly have more definition than any pixel setup that's realistically affordable...

The difference is that with a video projector you need to project on a screen, with this you can create (albeit lower resolution) images on your Mega Tree or other pixel display piece. Sean even had the idea of having a web cam take a picture of the crowd and display it on the mega tree in almost real time. In regards to a digital projector even if you find one at a really low price you still have to make/buy a screen. With Sean's Nut Cracker software you would use your already existing display piece. Don't get me wrong I have nothing against video projectors (I hope to get one sometime this year) but to be able to do limited video on my Mega Tree is just to cool.


Reply
smeighan
Posts: 2595
Topic starter
(@smeighan)
Famed Member
Joined: 15 years ago
dirknerkle wrote:Hasn't this been done already? I mean, you can buy a digital projector for peanuts these days, and it'll certainly have more definition than any pixel setup that's realistically affordable...

The Nutcracker software is not the end to sequencing. I saw a gap in the current software for creating animated effects on RGB devices, I am trying to fill it.

I think the landscape is

1) sequencers that can create effects and drive the hardware: LOR, LSP, Vixen, madrix ( http://www.madrix.com/ ) and now Joe's HLS ( http://doityourselfchristmas.com/forums/showthread.php?19568-HLS-Sequencer-Beta-Free-to-use )

2) Software that reads the above sequencer files and drives the hardware, xLights. Focuses on being efficient and scheduler rich.

3) Programs that create sequences but do not drive hardware.
Olive studio, http://diylightanimation.com/index.php?board=39.0
Prancer, http://diylightanimation.com/index.php?board=34.0
Nutcracker, RGB Effects builder

I know i am missing others and may not have got them all classified correctly. I only started the Nutcracker 6 weeks ago, all of this stuff is still new to me.

I look to Madrix to get ideas of effects i would like to add into Nutcracker, Nutcracker is sort of Madrix light. They have so much more than i ever will, but i am free. Here ( http://www.alibaba.com/product-gs/507963652/Latest_Madrix_led_software_MADRIX_2.html ) it shows their complete, high end package is $4000. I think you can get an entry level package for around $800-$1000.

I don't know how movies or pictures will look like until we get a Nutcracker sequencer actually projected on someones real megatree. It took a few hours to write the software for the pictures, so not a huge investment if it doesn't turn out looking good.

I own two projectors, i am thinking of ways they might enhance my display.

thanks


Reply
Posts: 792
(@boarder3)
Noble Member
Joined: 19 years ago

I was thinking of a projector but unless you have a special box with heating and ventilation equipment its going to go bad real fast. Projectors throw out alot of heat and when it cools down it will make so much condensation it will fill box with water. Unless you project through a window and that will make it not as bright. you can buy these boxes for about 2,000 dollars not very cheap.


Reply
Lionking_Tx
Posts: 778
(@lionking-tx)
Prominent Member
Joined: 15 years ago

I do have an old Toshiba Projector which I may put to use with Virtual Santa this year......and yes, I started drooling the first time I saw this project :smoke:


Reply
smeighan
Posts: 2595
Topic starter
(@smeighan)
Famed Member
Joined: 15 years ago

Two new options added to the spiral effect class.

First option: Sparkles

New option on spiral class added.

sparkles is a number form 0-100. This indicates what percentage of the pixels being drawn should have their color overwritten and instad be set to white.0 indicates no sparkles, 100 overrides every pixel to white. I think 10^% looks best.

I did this as a test, to verify i can add options to the class without needing to touch the html forms.

it works and is now another option for you to choose.

Here is an example, notice sparkles is now one of the options.

(
[username] => Tallahassee Dreamer
[user_target] => MEGA1
[effect_class] => spirals
[effect_name] => sean4
[number_spirals] => 7
[number_rotations] => 2
[spiral_thickness] => 3
[start_color] => #1812BD
[end_color] => #0F0C6B
[frame_delay] => 22
[direction] => 1
[sparkles] => 10
[submit] => Submit Form to create your target model
)

================================================================================================
Second Option: window_degrees

Davidt wrote:

G'day Sean,

This is looking very promising. Well done.

I've built a couple of target models based on a half Mega Tree, but when I use the Effects Generator the animated gif models appear to be based on a full Mega Tree, rather than a half Mega Tree.

Cheers,

davidt

Hi David;

I think i will drop the half mega tree model as a choice in the target model screen. Instead, use this method:

You build the mega tree with the number of strands fo a full tree. You then adjust thw window_degrees to 180.

Example. You have 16 CCR's that you will fold with UP/DOWN NEXT. You now have 32 strands.

When building a tree specify the strings that would be needed for building a full tree, 32 strings in this example and 64 strands.

Now the spacing has been built correctly. To only have your half shown, specify a window_degrees of 180.

==================================================

Here is a post i made yesterday on DLA
http://diylightanimation.com/index.php?topic=8144.0

New release. Added new option on spiral effect class, window_degrees. Value 0-360 degres
this is how much of your tree will be displayed.
360 will show entire tree, 180 = half a tree, 90 = 1/4 of a tree.

This release is for you Steve Gase. Steve, wants to display 225 degrees of his tree.

Here is window-degrees=180 on the barb er pole, so front half of tree will display
_POST
username f
user_target ZZ_ZZ
effect_class spirals
effect_name barberpole_180
number_spirals 2
number_rotations 2
spiral_thickness 16
window_degrees 180
start_color #0DFF05
end_color #1C14FF
frame_delay 22
direction ccw
sparkles 0
submit Submit Form to create your target model

Here is with window_degrees set to 360, so this will do entire tree
username f
user_target ZZ_ZZ
effect_class spirals
effect_name barberpole
number_spirals 2
number_rotations 2
spiral_thickness 16
window_degrees 360
start_color #0DFF05
end_color #1C14FF
frame_delay 22
direction ccw
sparkles 0
submit Submit Form to create your target model

Here it is set to 90 degrees, only 1/4 of tree will display

username f
user_target ZZ_ZZ
effect_class spirals
effect_name barberpole_90
number_spirals 2
number_rotations 2
spiral_thickness 16
window_degrees 90
start_color #0DFF05
end_color #1C14FF
frame_delay 22
direction ccw
sparkles 0
submit Submit Form to create your target model

thanks


Reply
CaptKirk
Posts: 2195
(@captkirk)
Noble Member
Joined: 16 years ago

It seems like that second GIF there (barberpole with the window_degree set to 180) has sparkles turned on but you indicate sparkles is set to 0 in the text, is that a typo or a bug??


Reply
smeighan
Posts: 2595
Topic starter
(@smeighan)
Famed Member
Joined: 15 years ago

no, what happens is i went back later and modified the effect (added sparkle) and re-ran it. Since the web page is pointing to the gif file, it now shows the latest image.

When posting images, i will have to pick an effect name that i dont go and later run.

*sigh*, more stuff to remember

thanks


Reply
smeighan
Posts: 2595
Topic starter
(@smeighan)
Famed Member
Joined: 15 years ago

Some people have some pretty big trees. One user has 76 strings. His Nutcracker run timed out. I have added timing statements to Nutcracker so i can see where most of the time is being taken.

Here is that thread

Steve Gase wrote:
better!
then i tried the following, and got the error...

Fatal error: Maximum execution time of 30 seconds exceeded in /users/meighan.net/htdocs/nutcracker/effects/read_file.php on line 503

Maybe a more complex image needs more time...?

_POST
username Steve Gase
user_target SGMEG48W
effect_class spirals
effect_name barber2
number_spirals 9
number_rotations 4
spiral_thickness 7
window_degrees 225
start_color #1241FF
end_color #FF6F3B
frame_delay 50
direction ccw
sparkles 20
submit Submit Form to create your target model

This is a limit with my internet provider. I am on a shared server. To make sure no one hogs the server, they kill anyone whose code runs longer than 30 seconds.

I am going to try and see if i could work around this by breaking the generation of the sequence from the generation of the animated gif.

Here i reduced the thickness that you had and i got the sequence to finish in 25 seconds.

_POST
username Steve Gase
user_target SGMEG48W
effect_class spirals
effect_name barber2sean
number_spirals 9
number_rotations 4
spiral_thickness 1
window_degrees 225
start_color #1241FF
end_color #FF6F3B
frame_delay 50
direction ccw
sparkles 20
submit Submit Form to create your target model

Creating Effect, spirals class: : Elapsed time = 0.13534 seconds
Finished Effect, spirals class: : Elapsed time = 0.24950 seconds
Starting Rotate image about Z axis : Elapsed time = 0.24957 seconds
Finished Rotate image about Z axis : Elapsed time = 11.28429 seconds
Making gnuplot command file: : Elapsed time = 11.28435 seconds
Finished gnuplot command file: : Elapsed time = 11.38652 seconds
Calling Gnuplot: : Elapsed time = 11.38672 seconds
Finished Gnuplot: : Elapsed time = 26.79310 seconds
Calling Imagick to make animated GIF: : Elapsed time = 26.79319 seconds
Finished Imagick to make animated GIF: : Elapsed time = 27.30974 seconds

Elapsed time = 25.63657 seconds

For those who are interested, here is the specs on your target model
MODEL: SGMEG48W.dat
target_name SGMEG48W
total_strings 76
pixel_count 85
pixel_length 252.00
unit_of_measure in
topography BOT_TOP

When i changed the thickness value back to 7 (a value that would fill in all of the tree)
_POST
username Steve Gase
user_target SGMEG48W
effect_class spirals
effect_name barber2sean
number_spirals 9
number_rotations 4
spiral_thickness 7
window_degrees 225
start_color #1241FF
end_color #FF6F3B
frame_delay 50
direction ccw
sparkles 20
submit Submit Form to create your target model

Fatal error: Maximum execution time of 30 seconds exceeded in /users/meighan.net/htdocs/nutcracker/effects/read_file.php on line 503

If i got a dedicated hosting box, then all limits would be gone. The problem is that is $60/month.
http://order.1and1.com/ServerPremium?ac=OM.US.US469K02463T2103a&ovm_kp=wh&ovm_wm=text&PID=3564792 is one of the best deals.
This includes 1000gb disk space and a 4 thread box.

Currently i have these limits, 10g disk space (i am using 3g), 30 seconds of runtime per page. I do not think that i will exceed the disk limits.

This dedicated server would cost me about $500 more per year and I dont think that will fly with my wife. I told her that i can build the tool with no additional cost to us.

For now, i will see if i can break the generation of the gif into a separate task.

Another solution is for people to download wamp onto their windows xp, 7 boxes. This is an Apache server, Mysql database, php 5 package. The down side is it is 300mbytes and requires that you set it up. Also , i make sometimes 4-5 releases per day. You would have to download and install this. I do not want to go down this path.

I like the web server approach of nutcracker there is nothing for the user to install or maintain. Just run it. It currently runs fine from my ipad device.
The entire Nutcracker code is 6.5 mbytes so far.

So, for most people, they will not hit this limit. 24, 32 or even 48 strand trees no problem. For anyone who comes close to the 80-100 strand tree, the time approaches 30 seconds.

Ill work on optimizing the code

sorry

sean


Reply
Page 2 / 10
Share: