I saw the new tweak mode today and wanted to play with it. But it doesn't work on both my Windows and Mac machine. I am using Processing 2.0.3 and have the latest Java Run Time on both platform.
When I ran a sketch in the tweak mode, the code in PDE will underline the hard coded value and I can drag the arrow left or right on the number and see the number change. But the sketch does not update.
I am new to Processing and I was playing with 3D rendering in processing. I have a ball move around following the mouse. The scene is lit by a point light. I have some text on the screen that shows the position of the ball in the space. But the texts are affected by the point light as well. I was wondering is there a way to exclude the texts from the lighting?
I am learning processing and am working on a RSS reader project. I am following Till Nagel's tutorial over here (
http://tillnagel.com/2009/09/processing-rss-feeds/). Everything works fine. When I try to use the same code on other RSS feed, the first problem I ran into is how to find the exact .xml file path of a RSS feed. For example, the processing website feed link takes me to this link -
http://feed.processing.org/. So are most of the RSS feeds of other websites. Can someone who is experienced in this area help?
I was wondering whether anyone else have run into this issue as I have recently. I am using Processing 2.0a4 with the latest version of Export as ProcessingJS tool.
I used a very simple sample code to test whether the tool works properly. The code is as below.
void setup() {
size(300, 300);
background(40);
}
I saved it and fired the Export as Processing.js tool. The text area in the PDE then spit out the following error message. I tried the tool with Processing 1.5.1 as well and got the same error message which made me think that the issue is caused by the processing.js file included in the tool. Is there anybody else who has run into the same issue can help?
org.mozilla.javascript.EcmaError: TypeError: Cannot set property head that has only a getter. (processing.js#31)
Exception in thread "AWT-EventQueue-0" org.mozilla.javascript.EcmaError: ReferenceError: "Processing" is not defined. (<inline de.bezier.tools.export.PJSConverterEnvironment>#1)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632)
at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3717)
at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1692)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3410)
at script(<inline de.bezier.tools.export.PJSConverterEnvironment>:1)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
at org.mozilla.javascript.Context.evaluateString(Context.java:1104)
at de.bezier.tools.export.ProcessingJSConverter.convert(Unknown Source)
at de.bezier.tools.export.ProcessingJS.exportApplet(Unknown Source)
at de.bezier.tools.export.ProcessingJS.run(Unknown Source)
at processing.app.contrib.ToolContribution.run(ToolContribution.java:227)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:638)
at java.awt.EventQueue$1.run(EventQueue.java:636)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
I looked at the demos which show how it works in 3D and I modified the code to 2d circle and it works too. When I changed the circle to a line it doesn't work any more. Any help is appreciated.