[Gag] illusions

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

[Gag] illusions

Post by newdep »

(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.
Last edited by newdep on Tue Sep 04, 2007 9:43 pm, edited 2 times in total.
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

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...
-- (define? (Cornflakes))

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Very hypnotic ;-). Once in a while circles are deleted before drawing (in Illusuion1.lsp), which causes the out of bounds error messages.

Lutz

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

Oke thanks...



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

relaxed illusion 3 screen fillup...
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

oke oke last one...a little semi-rain

(load "http://www.nodep.nl/downloads/newlisp/illusion4.lsp")
-- (define? (Cornflakes))

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

I would put the drawing loops into a

Code: Select all

(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

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

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...
Last edited by newdep on Tue Sep 04, 2007 9:57 pm, edited 1 time in total.
-- (define? (Cornflakes))

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

these are cool...!

I will take them along to my optician to explain my eye problems... :-)

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

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.
-- (define? (Cornflakes))

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Does illusion3.lsp work on the MAC?
seems to work fine on Mac OS X

Lutz

Locked