If you wanted to go with a dedicated hosting server solution, you should look into setting up your own web server off your computer. Then you could do what you want with no restrictions (depending on your hardware i guess)... plus save some money on web hosting all together...
smeighan wrote: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
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
A suggestion for some more color prompts
AussiePhil wrote:
Seanwow this is really starting to come together.
Couple things for you from my experience playing just now.
- Calling your point of origin "pixel 1" is confusing to me even though you make it clear it's for internal use.
Maybe i should call them n1 to nxx. Something that makes sure there is no confusion with the pixel number on your strings?- the start colour, end colour are describe as morphing top to bottom, playing with different numbers of spirals shows that is not how it currently functions.
This was a bug that i fixed last night, it should morph correctly now
- you went back to total string length rather than pixel spacing, seems a backward step when you collect the count.
I have always prompted for total length of string. I have displayed pixel spacing. This is probably confusing. Maybe i should just prompt for pixel spacing and total pixels??- certainly for spirals it would be nice to specify each spiral colour and or the vertical colour change.
Taking that a step further making complex olour gradients both around the tree and vertically on a tree would be unreal
Yep, i have it on my plan. Here was my idea for expanded color prompts:Do you want the same color scheme for all spirals?
if yes then prompt
global_start_color, global_end_color
else
Strand #1: start and end color
Strand #2: start and end color
..
Strand #Last: start and end colorWith some people having 76 strands, i was thinking of also asking
Do you want to create color groups for your strands?
if yes then
How many color groups? (Say they answer 3)
Group#1 start,end color
Group #2, start,end color
Group #3, Start,end color
Then i would do
Strand#1 uses Group#1 colors
Strand#2 uses Group#2 colors
Strand#3 uses Group#3 colors
Strand#4 uses tgroup#1 colors
Strand#5 uses Group#2 colors
.etc until all strands have been assigned.When I do amorphous blobs, i will be doing color gradients both vertically and horizontally and moving the color blobs around.
Cheers
Phil
Hi, this is so cool thanks for all the work.
Any chance of having a background colour. i.e. tree green & spirals in red (or what ever colours you chose).
Thanks.
good idea and simple to implement, should have it done today.
thanks
Doing something wrong with Error message attached
Warning: fopen(../targets/miw01/MT1.dat) [function.fopen]: failed to open stream: No such file or directory in /users/meighan.net/htdocs/nutcracker/effects/read_file.php on line 66
can't open file ../targets/miw01/MT1.dat
miw01 wrote:Doing something wrong with Error message attachedWarning: fopen(../targets/miw01/MT1.dat) [function.fopen]: failed to open stream: No such file or directory in /users/meighan.net/htdocs/nutcracker/effects/read_file.php on line 66
can't open file ../targets/miw01/MT1.dat
I logged in as you and trie your effect, it didnt work.
I created another effect, "sean test",
answered all questions, worked fine.
I will investigate what is wrong with yours, just go and enter some other names
here was my run using your target
_POST
username miw01
user_target MT1
effect_class spirals
effect_name sean test
number_spirals 3
number_rotations 2
spiral_thickness 1
window_degrees 360
start_color #FF1FAD
end_color #763BFF
frame_delay 22
direction ccw
sparkles 0
submit Submit Form to create your target model
The directory workspaces/miw01 does not exist, creating it
Creating Effect, spirals class: : Elapsed time = 0.01560 seconds
Finished Effect, spirals class: : Elapsed time = 0.02513 seconds
Starting Rotate image about Z axis : Elapsed time = 0.02520 seconds
Finished Rotate image about Z axis : Elapsed time = 0.32612 seconds
Making gnuplot command file: : Elapsed time = 0.32619 seconds
Finished gnuplot command file: : Elapsed time = 0.34179 seconds
Calling Gnuplot: : Elapsed time = 0.34200 seconds
Finished Gnuplot: : Elapsed time = 1.01530 seconds
Calling Imagick to make animated GIF: : Elapsed time = 1.01537 seconds
Finished Imagick to make animated GIF: : Elapsed time = 1.16021 seconds

thanks
Barnabybear wrote:Hi, this is so cool thanks for all the work.
Any chance of having a background colour. i.e. tree green & spirals in red (or what ever colours you chose).
Thanks.
New Release Option for spirals class: background_color
Per the above request, i have added a new option the effect class.
If you answer yes u want a background color, every pixel of your tree will be set to that color. Next i take whatever animation you have and put it on top of the background.
Here is an example
_POST
username f
user_target ZZ_ZZ
effect_class spirals
effect_name background test
number_spirals 3
number_rotations 2
spiral_thickness 2
window_degrees 180
start_color #0DFF05
end_color #1C14FF
frame_delay 22
direction ccw
sparkles 0
use_background Y
background_color #067306
submit Submit Form to create your target model
Creating Effect, spirals class: : Elapsed time = 0.05011 seconds
Finished Effect, spirals class: : Elapsed time = 0.09783 seconds
Starting Rotate image about Z axis : Elapsed time = 0.09790 seconds
Finished Rotate image about Z axis : Elapsed time = 3.95531 seconds
Making gnuplot command file: : Elapsed time = 3.95537 seconds
Finished gnuplot command file: : Elapsed time = 3.96694 seconds
Calling Gnuplot: : Elapsed time = 3.96712 seconds
Finished Gnuplot: : Elapsed time = 9.25005 seconds
Calling Imagick to make animated GIF: : Elapsed time = 9.25013 seconds
Finished Imagick to make animated GIF: : Elapsed time = 9.62273 seconds

MODEL: ZZ_ZZ.dat
target_name ZZ_ZZ
total_strings 16
pixel_count 80
pixel_length 240.00
unit_of_measure in
topography UP_DOWN_NEXT
Total Elapsed time for this effect: : Elapsed time = 9.77069 seconds
smeighan wrote:
Another solution is for people to download wamp onto their windows xp, 7 boxes. This is an Apache server, Mysql database, php 5 package.
No problem. XAMPP installs all that with a few clicks, and some of us have probably installed it already (perhaps several times on various machines).
The PHP code is presumably not that many megabytes. Are you using GD to create the gif?
Obviously, that option would only be for advanced users, and your hosted version would work for others.
Dumb question without reading the UG- why is "green" = 067306 and not 00FF00 (I'm assuming 256 levels of red, green, blue in that value 00 is none of that color, and FF is 100%).
Here's another suggestion, probably not as simple as the last. Enabling layers would be awesome. Imagine having a simple spiral or something, all white. Now enable a layer which is an .avi file or something. This mask could be a left to right rainbow wiping affect or whatever you choose. Now your plain white spiral will go through the color gradients from left to right. This idea comes from Madrix and looks pretty sweet. Great work so far. I'm really looking forward to applying this to a 32 string of 42 pixel tree. Thanks for you work.

