Can anyone say why this basic PB crashes AE?
Hi,
I wrote a basic light wrap filter - it works in PB but crashes AE immidiately when I apply the filter to a layer.
<languageVersion : 1.0;>
kernel efx_lightwrap
< namespace : "efx LightWrap";
vendor : "EFX Filip Kaczorek";
version : 1;
description : "LightWrap";
displayname : "EFX LightWrap";
category : "EFX";
>
dependent float maxd;
dependent float fgam;
input image4 src;
output pixel4 dst;
parameter float thr
<
minValue: 0.0;
maxValue: 0.99;
defaultValue: 0.99;
aeDisplayName: "alpha threshold";
>;
parameter int rad
<
minValue: 0;
maxValue: 20;
defaultValue: 1;
aeDisplayName: "radius";
>;
parameter float gam
<
minValue: 0.0;
maxValue: 1.0;
defaultValue: 1.0;
aeDisplayName: "falloff shape";
>;
parameter float ammount
<
minValue: 0.0;
maxValue: 1.0;
defaultValue: 1.0;
aeDisplayName: "ammount";
>;
parameter pixel3 lightcol
<
minValue: pixel3(0.0,0.0,0.0);
maxValue: pixel3(1.0,1.0,1.0);
defaultValue: pixel3(0.0,0.0,1.0);
description: "Light color.";
parameterType: "colorRGB";
aeDisplayName: "Light color";
aeUIControl: "aeColor";
>;
void evaluateDependents()
maxd=distance( float2(0.0,0.0),float2(float(rad),float(rad)) );
fgam=8.0*gam-7.0;
pixel4 check(pixel4 this_p){
float dist=9999.0;
this_p.a=0.0;
pixel4 p=pixel4(0.0);
float td=0.0;
int i=0;
int j=0;
for(i = -rad; i <= rad; i++)
for(j = -rad; j <= rad; j++)
p=sampleNearest(src,outCoord() + float2(float(i),float(j)));
if(p.a<thr){
td=distance( float2(0.0,0.0),float2(float(i),float(j)) );
if(dist>td){dist=td;}
if(dist<9999.0){
this_p.a=1.0-(dist/maxd);
this_p.a=pow(this_p.a,(1.0-fgam));
this_p.rgb=lightcol;
return this_p;
void
evaluatePixel()
pixel4 s_pix=sampleNearest(src,outCoord());
pixel4 t_pix=s_pix;
pixel4 lw_pix=s_pix;
if(s_pix.a>thr){
lw_pix=check(lw_pix);
if(lw_pix.a>0.0){
t_pix.rgb=s_pix.rgb+(lw_pix.rgb*pixel3(lw_pix.a*ammount));
dst = t_pix;
After some experimenting I think it has something to do with sampling the input image inside the check() function.
If I replace the sampled values with constant ones - it doesn't crash.
If I move all the calculations up to the main evaluatePixel() function - it doesn't crash.
I'd call it a day with that conclusion if it wasn't for the fact that this is basically my template PB and I have many PB filters built exactly the same way that don't crash.
Including a Gaussian Filter that does way more sampling within its sub-function.
So any ideas?
In Pixel Bender it runs in both modes.
It crashes on 3 different machines, although all HP
Two different workstations and a laptop (so xeons and i7, FireGLv5600, Quadro 4800, GF230 mobile).
All Win7 x64 and AE CS5.
Like I said, it crashes AE even if I strip the code to only one line in the function: p=sampleNearest...
This seems to be the only thing that gives problems.
Weird thing, THIS IS almost my template filter - I start all my filters looking like that and that one is THE ONLY ONE crashing???
The solution i found was to move the code into the main body - not use a subfunction. Now it works great, though the esthetics of the code suffer
Similar Messages
-
Can anyone say why this HyperX has gone from
~$140 to ~$90 in the blink of an eye?
http://shop3.outpost.com/product/3645865
Thanks,
AhumadoI paid $120 last january...then the price shot up to $140 stayed there till now?
I doubt even at that price it's a good choice.
Been reading about PQI memory and it's less cost;y but gives more performance.
I think there is alot of competition now for a module of that type and Kingston had to get off there arse.
Ahumado -
I had to rebuild a computer. When I got iTunes installed and tried to sync my iPod it said that I had reached my limit of five computers. I logged into my iTunes account and went through the process for deauthorizing all computers. It comes up with a messaging asking if I am sure I want to deauthorize all computer and I select the "Deauthorize computers" button. It never comes back with a message one way or another whether it was successful. When I get out of that screen and come back in, it still shows that I have 5 authorized computers. I can't sync my iPod. The deauthorization is not working. Can anyone explain why this is happening?
i guess no one helped? I'm having the same problem.
When i press the button to deauthorize all computers, i get an error saying 'my account can't process this at this time. please try again later' -
My ipod 60gb classic is showing as fully charged until I connect it to my pc when it comes up with the error message, 'please wait very low battery' and the little wheel goes round and nothing happens, can anyone explain why this is and what i can do?
I have worked my way through the assistant and nothing works. I have tried connecting in disc mode but although the screen on the ipod is showing that the device is charged and that it is in disc mode as soon as I connect it to the computer it comes up with the error message 'please wait very low battery' and stays like that until I disconnect when it appears to be OK again. I have tried on both pc and mac.
BTW the ipod is an ipod video not classic if that makes any difference.
Thanks -
I recently installed Acrobat Pro X on my Mac. I initially accepted the terms of agreement, but then every few seconds the same prompted window for the terms of agreement keeps popping up. Can anyone explain why this is happening, and how to resolve?
Have you tried reinstalling the original drive? Same symptoms with it?
-
Can anyone explain why this keeps appearing whenever I start my computer?
Can anyone tell me what this means and how I can get rid of it? It's really annoying me! Appears on screen each time I start my computer up.
Cheers.You've probably got hard disk corruption or malware on your computer. Run a virus scan with a recently update antivirus. Next, reinstall iTunes as described here: http://support.apple.com/kb/HT1925.
Follow the instructions exactly, and do not skip any steps. -
Simple? can anyone tell why this simple btn doesn't work?
Trying to write my own simple disabling button class (with
some help from friend - thanks LuigiL)
So, why does my button not turn off when clicked? it runs the
deinitializeBehavior function but the removeEventListeners are not
actually being removed...
I don't know why but could this possibly be a graphics issue?
Thanks in advanceHAH! OK - I am starting to get this a little.
Thank you St. LuigiL. You are my Obie-wan: the force is
strong with you.
I made a Main.as document class and now the whole thing works
like a charm! I was wondering if it was necessary to do so - and it
was.
In my OCD I am constantly striving to keep my classes to a
bare minimum (if I could write everything on one page I would.)
I very much appreciate your incredible help and support.
BAM -
Can anyone explain why this site is so slow to load?
Strangely, it pops up fine in Safari but is excruciatingly slow to load in Firefox and IE (with graphics and some of the audio player icons not showing for literally multiple minutes, etc.):
http://ddjackson.net/D.D.JacksonDemos.html
Any help would be EXTREMELY appreciated!
- D.D.You may be better served by making a new page for each audio file.
The page loads slowly because each of the 8 MP3's must begin their download before the next page element can be downloaded. They don't have to completely download (just start) and the QuickTime browser plug-in will be used to play them.
Each time your page loads completely you're using over 50MB's of your bandwidth limits. This could become expensive if you have bandwidth pricing.
Consider using just a minute of each MP3 in the QuickTime .mov container with a link to the entire file (as you have now) in MP3 format. Saves bandwidth and speeds up the page load time. -
when i delete a app my screen goes black and i have to put in dfu mode and restore it didnt happen till i upgraded software any reason for this
When in DFU mode and connected to the computer iTunes does not say anything but iTunes will see the iPod and you can restore the iPod via iTunes. When in recovery mode and you connect, iTunes will say it found an iPod in recovery mode.
-
Can anyone say is this a camera problem or every ipod do this?
a green colour copy of light is showing.please answer someone is this a camera problem or its normal for ipod
It all depends upon the angle and the type of light getting to the lens.
It is different for different cameras and thus with different iOS devices. -
Lately my magic mouse has been losing its connection quite randomly. It usually reconnects soon after. I bought a cheap USB mouse to keep me going during these unexpected down-times. The batteries are fresh and the switch is on. I've uninstalled and re-installed the mouse in Bluetooth, but the problem recurs.
Try a PRAM reset. That usually helps bluetooth problems.
http://support.apple.com/kb/ht1379
There are some other causes relating to rechargable batteries, see this thread:
https://discussions.apple.com/thread/3058776?tstart=0
Regards,
Captfred -
Can anyone see why this won't run? I can't seem to figure out the mistake!
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Debugging7 extends JApplet
implements ItemListener
//Declare components and global variables here
JPanel mainPanel = new JPanel();
JPanel buttonPanel = new JPanel();
JLabel titleLabel = new JLabel("Debugging - Chapter 7", JLabel.CENTER);
JTextArea questionTextArea = new JTextArea(2, 35);
JRadioButton answerARadioButton = new JRadioButton();
JRadioButton answerBRadioButton = new JRadioButton();
JRadioButton answerCRadioButton = new JRadioButton();
JRadioButton answerDRadioButton = new JRadioButton();
ButtonGroup answerButtonGroup = new ButtonGroup();
JLabel answerLabel = new JLabel(" ", JLabel.CENTER);
Font titleFont = new Font("SansSerif", Font.BOLD, 18);
public void init()
//Set up the user interface (JPanels) here
titleLabel.setFont(titleFont);
mainPanel.setLayout(new GridLayout(0,1));
mainPanel.add(titleLabel);
questionTextArea.setText("To respond immediately to a change in the " +
"\nstate of a JRadioButton, you need to use: ");
mainPanel.add(questionTextArea);
questionTextArea.setEnabled(false);
answerButtonGroup.add(answerARadioButton);
answerButtonGroup.add(answerBRadioButton);
answerButtonGroup.add(answerCRadioButton);
answerButtonGroup.add(answerDRadioButton);
buttonPanel.setLayout(new GridLayout(0, 4));
answerARadioButton.setText("an ActionListener");
buttonPanel.add(answerARadioButton);
answerBRadioButton.setText("a compareTo method");
buttonPanel.add(answerBRadioButton);
answerCRadioButton.setText("an ItemListener");
buttonPanel.add(answerCRadioButton);
answerDRadioButton.setText("none of the above");
buttonPanel.add(answerDRadioButton);
mainPanel.add(buttonPanel);
mainPanel.add(answerLabel);
answerLabel.setForeground(Color.red);
answerLabel.setFont(titleFont);
setContentPane(mainPanel);
//Add listeners
answerARadioButton.addActionListener(this);
answerBRadioButton.addActionListener(this);
answerCRadioButton.addActionListener(this);
answerDRadioButton.addActionListener(this);
public void itemStatePerformed(ActionEvent event)
//Retrieve user input and respond with calculations, etc
Object eventSource = event.getSource();
if(event == answerARadioButton)
answerLabel.setText("an ActionListener is NOT correct");
else if(event == answerBRadioButton)
answerLabel.setText("a compareTo method is NOT correct");
else if(event == answerCRadioButton)
answerLabel.setText("an ItemListener IS CORRECT");
else if(event == answerDRadioButton)
answerLabel.setText("none of the above is NOT correct");
else
answerLabel.setText("answer the question, please!");
}Okay, here's some compiling code... Although I don't really want to bother to write up the html to test it so I'll leave that up to you...
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Debugging7 extends JApplet
implements ItemListener
//Declare components and global variables here
JPanel mainPanel = new JPanel();
JPanel buttonPanel = new JPanel();
JLabel titleLabel = new JLabel("Debugging - Chapterr 7", JLabel.CENTER);
JTextArea questionTextArea = new JTextArea(2, 35);
JRadioButton answerARadioButton = new JRadioButton();
JRadioButton answerBRadioButton = new JRadioButton();
JRadioButton answerCRadioButton = new JRadioButton();
JRadioButton answerDRadioButton = new JRadioButton();
ButtonGroup answerButtonGroup = new ButtonGroup();
JLabel answerLabel = new JLabel(" ", JLabel.CENTER);
Font titleFont = new Font("SansSerif", Font.BOLD, 18);
public void init()
//Set up the user interface (JPanels) here
titleLabel.setFont(titleFont);
mainPanel.setLayout(new GridLayout(0,1));
mainPanel.add(titleLabel);
questionTextArea.setText("To respond immediately to a change in the " +
"\nstate of a JRadioButton, you need to use: ");
mainPanel.add(questionTextArea);
questionTextArea.setEnabled(false);
answerButtonGroup.add(answerARadioButton);
answerButtonGroup.add(answerBRadioButton);
answerButtonGroup.add(answerCRadioButton);
answerButtonGroup.add(answerDRadioButton);
buttonPanel.setLayout(new GridLayout(0, 4));
answerARadioButton.setText("an ActionListener");
buttonPanel.add(answerARadioButton);
answerBRadioButton.setText("a compareTo method");
buttonPanel.add(answerBRadioButton);
answerCRadioButton.setText("an ItemListener");
buttonPanel.add(answerCRadioButton);
answerDRadioButton.setText("none of the above");
buttonPanel.add(answerDRadioButton);
mainPanel.add(buttonPanel);
mainPanel.add(answerLabel);
answerLabel.setForeground(Color.red);
answerLabel.setFont(titleFont);
setContentPane(mainPanel);
//Add listeners
answerARadioButton.addItemListener(this);
answerBRadioButton.addItemListener(this);
answerCRadioButton.addItemListener(this);
answerDRadioButton.addItemListener(this);
public void itemStateChanged(ItemEvent event)
//Retrieve user input and respond with calculations, etc
Object eventSource = event.getSource();
if(eventSource.equals(answerARadioButton))
answerLabel.setText("an ActionListener is NOT correct");
else if(eventSource.equals(answerBRadioButton))
answerLabel.setText("a compareTo method is NOT correct");
else if(eventSource.equals(answerCRadioButton))
answerLabel.setText("an ItemListener IS CORRECT");
else if(eventSource.equals(answerDRadioButton))
answerLabel.setText("none of the above is NOT correct");
else
answerLabel.setText("answer the question, please!");
}Message was edited by:
Dalzhim -
Can anyone see why this isnt working...?
for line in $(grep "^333#" payRec* | cut -d# -f2); do ((total+=line));
done
grep/cut pipeline is returning three integers, 38, 20, 20.
I want $total to keep a running total, adding them as it goes along. Instead it gets the value of some seemingly unrelated integer, like 480.I figured it out, by entering
typeset -i sum=0 num
then using those vars for the arithmetic. -
I purchased the Killers new album and for some reason now my computer says it can't find the files. So I tried to download the album again off my iTunes acount but the cloud button won't appear. Does anyone know why this is happening?
These are user-to-user forums, you are not talking to Apple here.
Audiobooks (and ringtones) are currently a one-time only download. I believe that they are all supplied to Apple by audible.com, so I assume that it's them who are requiring the one-time only download restriction. To get it onto your other devices you will need to sync it via a computer. Depending upon what country that you are in, Audible.com have their own app (Audiobooks from Audible) so you might be able to buy direct from them, though I don't know whether you can buy within their app or download audiobooks directly from them within the app e.g. whether they need to be copied via a computer. -
Can anyone answer, why in Logic Pro X I keep on getting a window popping up saying, Directory not found, result code = -120. Followed by another window saying, Fade update failed, (error -120)?
I am running the latest version 10.0.5 through a Macbook Pro that has just been upgraded to 16GB Ram and a 960GB SSD which has made it as fast as ****. I upgraded because I was experiencing problems before and it was suggested that I didn't have enough Ram?
I am using a Focusrite scarlett 2i4 and an Alesis Q61 midi controller. Weirdly, just trying to put a bass line down on a track using the Alesis, the bass sound goes out of tune with the track during recording only. This is very frustrating! I surely can't be the only one experiencing this?
Many thanks
Rob.Hi
Time lost could be a problem, but.....
Sadly, I don't think that there are any Apple docs relating to networked storgae issues with Logic. Other than a 'school' or 'business' setup, NAS/OD/AD setups are not usual circumstances for audio.
If the issue is one of data backup & security, it may be enough to automatically backup the students local work folders to the NAS.
If the issue is one of the Users being able to work from any Mac and pick up their files from the server, you are not likely to resolve this problem, without copying the files to the Local Mac.
CCT
Maybe you are looking for
-
I just purchased songs on itunes, I can play them on my windows 7, but when I try to sync the ipod, I get the error "This computer is no longer authorized to play purchased items on "Stephanie's ipod" Would you like to authorize this computer for pur
-
Sort videos by their name in an event ?
Hi ! I've imported several videos into a same event and I don't understand what data iMovie uses to sort the videos... It doesn't sort them according to their name, nor their duration or "most recent importation" or anything like that. It looks... ra
-
AX connection issues with two users online
I recently bought an airport express, hoping to live a blissfull wireless life... I have both a mac book pro and an acer laptop pc to connect, which works fine except that when my mac is online the web speed on the pc is reduced heavily (1/5 of the m
-
Duplicate Themes in theme chooser
I just installed Keynote 3.0 on my PB last night and noticed that when I open a new presentation, all the themes I have purchased from Jumsoft are displayed twice. Can someone help make this go away? Does Keynote 3.0 put themes in a different place/l
-
I was burning a CD to backup my desktop, and pressed Cancel in mid-burn. The Burn window froze up, and I can't close it, and can't use Burn. I managed to eject the CD, but the Burn window is still there. The red circle doesn't function. The orange ci