PDA

View Full Version : Nutcracker: Spiral fix and enhancement



smeighan
11-05-2012, 03:12 PM
I completely rewrote the spiral effect,

1) It is more than 2x faster to generate effect
2) The glitch in each generation of the spiral is fixed. This was the *MAIN* error, it also turned out that this glitch would effect all effects generated by Nutcracker. Fixed.
3) Corrected the number of spiral wraps so it works from zero to 100. Before only worked from 0 to 2.0.
4) Fixed a bug (no one had brought up), that if you created a 360 target, created a spiral. Now go back and make target 180 degrees and make a spiral. Original 360 effect would be appended into the 180 degree spiral.
5) Delete gnuplot dat files after creating effects. This will save a huge amount of my disk space.
6) Left and Right Handiness (direction of spiral as it goes form top to bottom), has now been fixed.
7) New effect, in the handiness (spiral wrap direction). Before you had L(eft), R(ight). As you start at the top of the tree, which way to wrap the spiral. New option is B(oth) directions. This removes the need to generate a Left and a Right spiral and then use layers to join them together.

<b>BOTH spiral</b>
spirals Effect Settings
username f
user_target A
effect_class spirals
effect_name SEAN3_BOTH
handiness B
number_spirals 2
number_rotations 0.5
spiral_thickness 2
window_degrees 180
frame_delay 50
sparkles 15
sparkles_count 10
direction cw
rainbow_hue Y
color1 #FF033D
color2 #0831FF
color3 #FFFFFF
color4 #FFFFFF
color5 #FFFFFF
color6 #FFFFFF
fade_3d N
show_frame n
seq_duration 9
fade_in 0
fade_out 0
speed .5
submit Submit Form to create your effect
$use_background N
background_color #FFFFFF
batch 0
OBJECT_NAME spirals


http://meighan.net/nutcracker/effects/workspaces/2/A~SEAN3_BOTH.gif


spirals Effect Settings
username f
user_target A
effect_class spirals
effect_name SEAN3_BOTH2
handiness b
number_spirals 6
number_rotations 2
spiral_thickness 4
window_degrees 180
frame_delay 50
sparkles 0
sparkles_count 0
direction cw
rainbow_hue n
color1 #FF033D
color2 #B50000
color3 #18FF08
color4 #058F00
color5 #006FFF
color6 #003A91
fade_3d y
show_frame n
seq_duration 9
fade_in 0
fade_out 0
speed .5
submit Submit Form to create your effect
$use_background N
background_color #FFFFFF
batch 0
OBJECT_NAME spirals
http://meighan.net/nutcracker/effects/workspaces/2/A~SEAN3_BOTH2.gif



I have two bugs left to work on

If you make a spiral with rainbow colors, fade_3D='Y' and export to lms, lms gives an error about the xml file. This is a new bug , probably introduced by the large changes i made. ill work it. All other combinations itried with LOR all worked fine.
Pixel #1 on the first string for LOR is wrong. This is pretty minor, 1 pixel out of your entire tree. I will fix it also as I get time to look into it.

thanks
sean

n_gifford
11-05-2012, 03:21 PM
Hey Sean, a suggestion as time allows: A spiral using the 'Both' command, but able to spin them in opposite directions to create 2 separate opposing spirals. Does that make sense?

tfischer
11-05-2012, 03:31 PM
As usual -- YOU ROCK!

Thanks! Will hopefully get a chance to play with this tonight, but if not, then tomorrow...

tfischer
11-06-2012, 01:56 AM
Spirals appear to be working great! And blazingly fast too! Thanks!

If any of those speed enhancements could translate to other effects (like meteors) that would be really cool. But at least they work for now...

Now I have no excuse to put off sequencing any longer. Thanks a lot! :)

Aurbo99
11-06-2012, 09:53 AM
Sean

I tried to install Nutcracker locally, here is the result"

Nutcracker Update



( ! ) SCREAM: Error suppression ignored for


( ! ) Notice: Use of undefined constant QUERY_STRING - assumed 'QUERY_STRING' in C:\wamp\www\install.php on line 59


Call Stack


#
Time
Memory
Function
Location


1
0.0011
180864
{main}( )
..\install.php:0





( ! ) SCREAM: Error suppression ignored for


( ! ) Notice: Use of undefined constant QUERY_STRING - assumed 'QUERY_STRING' in C:\wamp\www\install.php on line 60


Call Stack


#
Time
Memory
Function
Location


1
0.0011
180864
{main}( )
..\install.php:0


Getting a copy of the current manifest from meighan.net


( ! ) SCREAM: Error suppression ignored for


( ! ) Warning: ftp_get(): nutcracker/manifest: No such file or directory in C:\wamp\www\install.php on line 71



Call Stack


#
Time
Memory
Function
Location


1
0.0011
180864
{main}( )
..\install.php:0


2
0.7656
191616
ftp_get (http://www.php.net/ftp_get) ( )
..\install.php:71


There was a problem with ftp_get(conn_id, manifest, nutcracker/manifest, FTP_BINARY)



( ! ) SCREAM: Error suppression ignored for


( ! ) Warning: fopen(manifest): failed to open stream: No such file or directory in C:\wamp\www\install.php on line 79


Call Stack


#
Time
Memory
Function
Location


1
0.0011
180864
{main}( )
..\install.php:0


2
1.1457
191688
fopen (http://www.php.net/fopen) ( )
..\install.php:79


Unable to open manifest




???

smeighan
11-06-2012, 11:11 AM
Spirals appear to be working great! And blazingly fast too! Thanks!

If any of those speed enhancements could translate to other effects (like meteors) that would be really cool. But at least they work for now...

Now I have no excuse to put off sequencing any longer. Thanks a lot! :)

You have a VERY old install.php. We no longer use ftp or the manifest (that was like last july).

Please follow steps 1-7 in this link http://doityourselfchristmas.com/forums/showthread.php?21784-Nutcracker-Local-Install-of-Nutcracker

in step 5 you will get a new zip file that replaces the install.php with the new process.

I would first delete the contents of your c:\wamp\www\nutcracker directory so you get all new code.

thanks

tfischer
11-06-2012, 01:40 PM
The above comments were intended for "Aurbo99", not me, I believe :) I haven't tried a local install of the latest fixes yet but it was working great before that...

Aurbo99
11-06-2012, 02:14 PM
I'll give the install another go this evening after work.

I found the outdated install instructions at the bottom of this link HERE (http://meighan.net/nutcracker)
Sean can you contact the owner and give him/her a kick in the pants and get them to update the instructions please :devilred:

jrock64
11-10-2012, 12:40 AM
Still having an issue with number_rotations = 0
I want a straight vertical bar like a classic string.

This effect is a good start, but when I go below rotations = .5 it starts to skip and does nothing by 0.



spirals Effect Settings


username
jrock64


user_target
GEMATRIX


effect_class
spirals


submit
Submit Form to create your effect


effect_name
RGBXBARBERPOLE


handiness
l


number_spirals
3


number_rotations
0.5


spiral_thickness
8


window_degrees
180


frame_delay
50


sparkles
0


sparkles_count
10


direction
cw


rainbow_hue
n


color1
#FF0000


color2
#00FF00


color3
#0000FF


color4
#FF0000


color5
#00FF00


color6
#0000FF


fade_3d
n


show_frame
N


seq_duration
10


fade_in
0


fade_out
0


speed
1


$use_background
N


background_color
#FFFFFF


batch
0


OBJECT_NAME
spirals



Joel

tfischer
11-10-2012, 02:06 AM
Sean can answer best but I don't think this effect was ever intended to do straight string effects. I've been sequencing those right within LOR. I have each strand set up as a "group" and anything I sequence to the collapsed group goes on all the pixels within it. You could do the same thing with copy/paste (not sure if Vixen or LSP offers a 'paste multiple' but that would be the easiest way to do it)

smeighan
11-10-2012, 11:18 AM
I'll give the install another go this evening after work.

I found the outdated install instructions at the bottom of this link HERE (http://meighan.net/nutcracker)
Sean can you contact the owner and give him/her a kick in the pants and get them to update the instructions please :devilred:

be sure to do shift-reload so that the newer instructions will come up. When i went to the bottom of my page, i still saw the old instructions from a month ago. I corrected instructions for install on Oct 6th. I then did a shift-reload and got the new ones.


thanks