Return-Path: Received: from mail-la0-f54.google.com ([209.85.215.54] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5373147 for AE-List@media-motion.tv; Tue, 11 Feb 2014 12:56:08 +0100 Received: by mail-la0-f54.google.com with SMTP id y1so5852136lam.13 for ; Tue, 11 Feb 2014 04:00:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=OHnfPYUClkOK2aiTkdW41yU9Bk+WTt/QnMFmXbK11dg=; b=R8QRv6cvpRrrRUQ+IO6nUU4z5ZSfBWXoD0wWrEcGrIU3FS/WLzKKPnNw6eE4YONThl UJAthd0m5NfKZdhpPesgy80HhPApv9EjDIF/9KTCnD5Z9L6DDWg0z6frBpw7dXn7k1ev xCeayaA2OF8hgUyfNnHtupUhyWY313sEctTKH1LqcZz+IpbLcja2Es6g4kD/s81R/xQI 6ELw6ZkammsaK7+Hrlhi7zxj96Y8h/HTUSJAr10eH6A0UEadfUWiF6Wk2jTwlKndfrBM 2cJwn/xkWnBOZWCDqnwfIRSguluVKQ7t3HHUnWQEaV9Y3ErKtUTz602pa91h/jjBeT3p WXPQ== X-Gm-Message-State: ALoCoQn0Cx3RHO+fFaxAZx00k498qBEkf1IXBZeS+8z5uf1YXjquDdMXwhPDBZroboYh/BjyKebz MIME-Version: 1.0 X-Received: by 10.152.1.168 with SMTP id 8mr132804lan.74.1392120050791; Tue, 11 Feb 2014 04:00:50 -0800 (PST) Received: by 10.114.99.4 with HTTP; Tue, 11 Feb 2014 04:00:50 -0800 (PST) In-Reply-To: References: Date: Tue, 11 Feb 2014 12:00:50 +0000 Message-ID: Subject: Re: [AE] Optical Flares light intensity expression bug? From: Phil Bearman To: After Effects Mail List Content-Type: multipart/alternative; boundary=089e013c6b4c1cc6c304f2203585 --089e013c6b4c1cc6c304f2203585 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for the reply Mylenium. I grabbed that expression from Dan Ebberts Swinging Light example ( http://www.motionscript.com/expressions-lab-ae65/swinging-light.html ) and modified it to work for my requirements but never put much thought into what it was actually doing "under the hood". That's a good incentive to write my own expression that doesn't need to evaluate the whole comp and see if that solves the problem :-) I only figured it was OF-related because I wasn't experiencing the same slow-down if I took OF out of the scene and just had a 3D solid for the lights to illuminate, but I've just done another text using Trapcode Lux instead of OF, and the same problem occurs. Thanks for your help. Phil --=20 *Phil Bearman* *Phil Bearman Creative Media Solutions* Motion Graphics Design *NEW! Video DJ Toolkit Volume 2 - Occasions: http://philbearman.co.uk/shop/vdj-toolkit-2/ * www.PhilBearman.co.uk : Nightclub & Bar ~ Production, Corporate & Events ~ DVD Products 0161 236 2581 - 9am-5pm, Monday-Friday This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this E-Mail. Please notify the sender immediately by E-Mail if you have received this E-Mail by mistake and delete the E-Mail from your system. E-Mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message or attached documents or for any damage suffered by your computer system caused by any errors or viruses contained in the E-Mail message or any attached documents. On 11 February 2014 11:34, mylenium@mylenium.de wrote= : > Unlikely it's OF. You are using a while() loop to test for a specific > condition and this means your comp is evaluated over and over again from > beginning to end with each new frame. The further in you are in time, the > longer it will take to run through all previous values. There is also > redundant code like the second seedRandom() that serves no discernable > purpose. The expression is simply not particularly well thought through. > Using a for() loop would be much more efficient but even that seems > unnecessary, since you probably could just as well drive the random by a > noise 3D or even a simple combination of modulated wiggles or manually > knitted sinus functions to make it periodic... > > Mylenium > > [Pour Myl=E8ne, ange sur terre] > ----------------------------------------- > www.mylenium.de > > > Phil Bearman hat am 11. Februar 2014 um 11:57 > geschrieben: > > Hi all, > > I've been encountering what appears to be a bug in VC Optical Flares, an= d > was wondering if anyone else could replicate it to confirm whether it's > specific to my setup, as Video Copilot haven't heard of this problem > before. > > If I set up a comp with Optical Flares on a layer, set it to track 3D > lights, and create a light with the following expression applied to > Intensity (to achieve a random strobing effect), AE becomes very > unresponsive, with me having to wait 20-30 seconds for it to stabilise, a= nd > "(Not Responding)" appearing in the title bar. > > Other expressions don't cause a problem with Optical Flares (eg. Wiggle)= , > so there must be something specific to this expression that OF doesn't > like. > > Can anybody else replicate the problem? If so, could you report AE > version and graphics card model to see if we have something in common? (I= 'm > using AE CS6 on Win 7 with GTX 670) > > Any help much to pin down the problem much appreciated. > > Phil > > *EXPRESSION:* > > minSeg =3D 0.5; //minimum interval (must be > 0) > maxSeg =3D 2.5; //maximum interval (must be > minSeg) > minFlicker =3D 0.04; //must be less than minSeg > maxFlicker =3D 0.04; // must be less than minSeg > > segStartTime =3D 0; //initial conditions > segEndTime =3D 0; > i =3D 1; > > while (time >=3D segEndTime){ > i +=3D 1; > seedRandom(i,true); > segStartTime =3D segEndTime; > segEndTime =3D segEndTime + random(minSeg,maxSeg); > } > > flickerDur =3D random(minFlicker,maxFlicker); > seedRandom(1,false); > if (time > segEndTime - flickerDur) 100 else 0 > > *EXPRESSION ENDS* > -- > > *Phil Bearman* > > *Phil Bearman Creative Media Solutions* > Motion Graphics Design > > *NEW! Video DJ Toolkit Volume 2 - > Occasions: http://philbearman.co.uk/shop/vdj-toolkit-2/ > * > > www.PhilBearman.co.uk : Nightclub & Bar ~= Production, > Corporate & Events ~ DVD Products > > 0161 236 2581 - 9am-5pm, Monday-Friday > > This message contains confidential information and is intended only for > the individual named. If you are not the named addressee you should not > disseminate, distribute or copy this E-Mail. Please notify the sender > immediately by E-Mail if you have received this E-Mail by mistake and > delete the E-Mail from your system. E-Mail transmission cannot be > guaranteed to be secure or error-free as information could be intercepted= , > corrupted, lost, destroyed, arrive late or incomplete, or contain viruses= . > The sender therefore does not accept liability for any errors or omission= s > in the contents of this message or attached documents or for any damage > suffered by your computer system caused by any errors or viruses containe= d > in the E-Mail message or any attached documents. > > > > --089e013c6b4c1cc6c304f2203585 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks for the reply Mylenium.

I grabbe= d that expression from Dan Ebberts Swinging Light example ( http://ww= w.motionscript.com/expressions-lab-ae65/swinging-light.html ) and modif= ied it to work for my requirements but never put much thought into what it = was actually doing "under the hood".

That's a good incentive to write my own expression that doesn&= #39;t need to evaluate the whole comp and see if that solves the problem :-= )

I only figured it was OF-related because I w= asn't experiencing the same slow-down if I took OF out of the scene and= just had a 3D solid for the lights to illuminate, but I've just done a= nother text using Trapcode Lux instead of OF, and the same problem occurs.= =A0

Thanks for your help.

Phil=A0<= /div>

--

Ph= il Bearman

Phi= l Bearman Creative Media Solutions=20
Motion Graphics Design

NEW! = =A0Video DJ Toolkit Volume 2 - Occasions:=A0http://philbearman.co.uk/shop/v= dj-toolkit-2/

www.PhilBearman.co.uk = : Nightclub=20 & Bar ~ Production, Corporate=20 & Events ~ DVD Products=20

0161 236 2581 - 9am-5pm, Monday-Friday

This message=20 contains confidential information and is intended only for the individual= named.=20 If you are not the named addressee you should not disseminate, distribute= or=20 copy this E-Mail. Please notify the sender immediately by E-Mail if you h= ave=20 received this E-Mail by mistake and delete the E-Mail from your system. E= -Mail=20 transmission cannot be guaranteed to be secure or error-free as informati= on=20 could be intercepted, corrupted, lost, destroyed, arrive late or incomple= te,=20 or contain viruses. The sender therefore does not accept liability for an= y errors=20 or omissions in the contents of this message or attached documents or for= any=20 damage suffered by your computer system caused by any errors or viruses c= ontained=20 in the E-Mail message or any attached documents.



On 11 February 2014 11:34, mylenium@mylenium.de <<= a href=3D"mailto:mylenium@mylenium.de" target=3D"_blank">mylenium@mylenium.= de> wrote:
=20 =20 =20 =20
=20
Unlikely it's OF. You are using a while() loop to test for a specifi= c condition and this means your comp is evaluated over and over again from = beginning to end with each new frame. The further in you are in time, the l= onger it will take to run through all previous values. There is also redund= ant code like the second seedRandom() that serves no discernable purpose. T= he expression is simply not particularly well thought through. Using a for(= ) loop would be much more efficient but even that seems unnecessary, since = you probably could just as well drive the random by a noise 3D or even a si= mple combination of modulated wiggles or manually knitted sinus functions t= o make it periodic...
=20
=A0
=20
Mylenium
=20
=A0
=20
[Pour Myl=E8ne, ange sur terre]
-----------------------------------------
www.mylenium.de=
=20
=A0
=20
Phil Bearman <phil@philbearman.co.uk> hat am 11. Februar 2014 um 11:57 geschr= ieben:

=20
Hi all,=A0=20
=A0
=20
I've been encountering what appears to be a bug in VC Optical Flar= es, and was wondering if anyone else could replicate it to confirm whether = it's specific to my setup, as Video Copilot haven't heard of this p= roblem before.
=20
=A0
=20
If I set up a comp with Optical Flares on a layer, set it to track 3D = lights, and create a light with the following expression applied to Intensi= ty (to achieve a random strobing effect), AE becomes very unresponsive, wit= h me having to wait 20-30 seconds for it to stabilise, and "(Not Respo= nding)" appearing in the title bar.
=20
=A0
=20
Other expressions don't cause a problem with Optical Flares (eg. W= iggle), so there must be something specific to this expression that OF does= n't like. =A0
=20
=A0
=20
Can anybody else replicate the problem? If so, could you report AE ver= sion and graphics card model to see if we have something in common? (I'= m using AE CS6 on Win 7 with GTX 670)
=20
=A0
=20
Any help much to pin down the problem much appreciated.
=20
=A0
=20
Phil
=20
=A0
=20
EXPRESSION:
=20
=A0
=20
=20
minSeg =3D 0.5; //minimum interval (must be > 0)=A0
=20
maxSeg =3D 2.5; //maximum interval (must be > minSeg)=A0
=20
minFlicker =3D 0.04; //must be less than minSeg=A0
=20
maxFlicker =3D 0.04; // must be less than minSeg=A0
=20
=A0
=20
segStartTime =3D 0; //initial conditions=A0
=20
segEndTime =3D 0;=A0
=20
i =3D 1;=A0
=20
=A0
=20
while (time >=3D segEndTime){=A0
=20
i +=3D 1;=A0
=20
seedRandom(i,true);=A0
=20
segStartTime =3D segEndTime;=A0
=20
segEndTime =3D segEndTime + random(minSeg,maxSeg);=A0
=20
}=A0
=20
=A0
=20
flickerDur =3D random(minFlicker,maxFlicker);
=20
seedRandom(1,false);=A0
=20
if (time > segEndTime - flickerDur) 100 else 0
=20
=20
=A0
=20
EXPRESSION ENDS
=20
=20
=20
--=20
=20

Phil Bearman

Phil Bearman Creative M= edia Solutions
Motion Graphics Design

=20

NEW! =A0Video DJ Toolkit Volume 2 - Occasions:=A0http://philbea= rman.co.uk/shop/vdj-toolkit-2/

=20

www.PhilBear= man.co.uk : Nightclub & Bar ~ Production, Corporate & Events ~ DVD Products

0161 236 2581 - 9am-5pm, Monday-Friday<= /span>

=20

This message contains confidential information and is intended only for= the individual named. If you are not the named addressee you should not di= sseminate, distribute or copy this E-Mail. Please notify the sender immedia= tely by E-Mail if you have received this E-Mail by mistake and delete the E= -Mail from your system. E-Mail transmission cannot be guaranteed to be secu= re or error-free as information could be intercepted, corrupted, lost, dest= royed, arrive late or incomplete, or contain viruses. The sender therefore = does not accept liability for any errors or omissions in the contents of th= is message or attached documents or for any damage suffered by your compute= r system caused by any errors or viruses contained in the E-Mail message or= any attached documents.

=20
=20
=20
=20
=20
=20

=A0
=20

--089e013c6b4c1cc6c304f2203585--