newLISP Fan Club

Forum => newLISP Graphics & Sound => Topic started by: newdep on September 04, 2007, 12:39:26 PM

Title: [Gag] illusions
Post by: newdep on September 04, 2007, 12:39:26 PM
(load "//http://www.nodep.nl/downloads/newlisp/illusion1.lsp")



This is a test illusion Gag,

(dont look at it too long)  though it generates once every X times an error ->





newLISP-GS v.1.01

 double buffering supported.

 listening on 47011

 accepted connection from 0.0.0.0

 connecting to 0.0.0.0:47012

 retrying to connect

server connected

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 3 >= 0

        at java.util.Vector.elementAt(Unknown Source)

        at CanvasWidget$MyCanvas.render(CanvasWidget.java:612)

        at CanvasWidget$MyCanvas.paint(CanvasWidget.java:577)

        at javax.swing.JComponent.paintToOffscreen(Unknown Source)

        at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)

        at javax.swing.RepaintManager.paint(Unknown Source)

        at javax.swing.JComponent._paintImmediately(Unknown Source)

        at javax.swing.JComponent.paintImmediately(Unknown Source)

        at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)

        at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)

        at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)

        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)

        at java.awt.event.InvocationEvent.dispatch(Unknown Source)

        at java.awt.EventQueue.dispatchEvent(Unknown Source)

        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

        at java.awt.EventDispatchThread.run(Unknown Source)











I cant realy find what it is because I think I do it all by the book? Or not? ;-)





Norman.
Title:
Post by: newdep on September 04, 2007, 01:13:40 PM
This is illusion 2, hypnothic ! dont look at at it long..



(load "//http://www.nodep.nl/downloads/newlisp/illusion2.lsp")



No errors, nothing special , just a nice big Screen fillup illusion...
Title:
Post by: Lutz on September 04, 2007, 01:38:15 PM
Very hypnotic ;-). Once in a while circles are deleted before drawing (in Illusuion1.lsp), which causes the out of bounds error messages.



Lutz
Title:
Post by: newdep on September 04, 2007, 01:46:10 PM
Oke thanks...







(load "//http://www.nodep.nl/downloads/newlisp/illusion3.lsp")



relaxed illusion 3 screen fillup...
Title:
Post by: newdep on September 04, 2007, 02:04:11 PM
oke oke last one...a little semi-rain



(load "//http://www.nodep.nl/downloads/newlisp/illusion4.lsp")
Title:
Post by: Lutz on September 04, 2007, 02:10:12 PM
I would put the drawing loops into a


(while (gs:check-event 10000)
....
)


loop If not, when killing your program, the gs:listen loop keeps on running and prevents the newLISP from exiting. See frameless-demo.lsp for an example.



Lutz
Title:
Post by: newdep on September 04, 2007, 02:42:55 PM
aaa thanks for the tip ;-)



Here an extra Fractal Illusion5.lsp ;-)



(load "//http://www.nodep.nl/downloads/newlisp/illusion5.lsp")



aaa updated thisone with some example settings inside the code...
Title:
Post by: cormullion on September 04, 2007, 02:57:10 PM
these are cool...!



I will take them along to my optician to explain my eye problems... :-)
Title:
Post by: newdep on September 05, 2007, 02:15:11 PM
Lutz,



Does illusion3.lsp work on the MAC? because on WinXP its not doing

any random ;-) Linux its ok..windows it stays on 2 coordinates.. odd..







PS:

Its even stranger !!



On my Laptop (XP pro) it does not do any random at all..



Om WinXP desktop its somehow refreching far to often...

But random is good...



very odd...must be a network or OS issue regarding CPU speed or NIC..

Mmmm never mind...



PS2:



Owww man... Windows is realy BAD in threading...hahahaha...

Those CPU cycles are moving anywhere except to the right process ..hahaha





Norman.
Title:
Post by: Lutz on September 05, 2007, 03:17:31 PM
QuoteDoes illusion3.lsp work on the MAC?


seems to work fine on Mac OS X



Lutz