Author Topic: Dead or Alive  (Read 3009 times)

Aurel

  • Guest
Dead or Alive
« on: January 16, 2015, 07:31:21 AM »
Well...
Is this forum dead or is alive ?
 :o

Rick3137

  • Guest
Re: Dead or Alive
« Reply #1 on: January 16, 2015, 06:54:56 PM »
 Looks dead to me.

Cybermonkey

  • Administrator
  • *****
  • Posts: 0
Re: Dead or Alive
« Reply #2 on: January 17, 2015, 11:10:37 AM »
Unfortunately it seems to be dead since Mopz founded his own forum for Naalaa. I also had to stop registration because I got 150 spammer registrations a day.
I am still working on Pulsar2D but with my new job I have no time. Maybe one day ...

Tomaaz

  • Guest
Re: Dead or Alive
« Reply #3 on: January 22, 2015, 08:43:11 PM »
Unfortunately it seems to be dead since Mopz founded his own forum for Naalaa.

As far I know, Marcus quit, a new developer took over from him and started the new forum. I was wondering what was the reason for that. I can agree that BP.org has become unusable (no matter about what language or subject your question is, the topic will become a discussion about everything and mainly from developers' point of view), but this place was OK.

Cybermonkey, are you planning to keep this site online?

Cybermonkey

  • Administrator
  • *****
  • Posts: 0
Re: Dead or Alive
« Reply #4 on: January 23, 2015, 09:36:20 PM »
Yes, the site will stay online. And yes, you are right with Marcus, his friend John Master is now developing Naalaa and founded the new forum. Anyway, I hope I can find some time to publish Pulsar2D, especially for some better documentation as it was for EGSL ...  ::)

Tomaaz

  • Guest
Re: Dead or Alive
« Reply #5 on: January 24, 2015, 01:10:36 PM »
awww..
this place its dead my luck....

The place is "dead", because there is no activity here, but if you want to talk EGSL or do anything with it, there is absolutely no reason you shouldn't. EGSL is not obsolete. It works on Windows and every popular Linux distro and it's gonna stay like that for a while. So, please post what you want to post and who knows - this place may be alive once again. ;)

Cybermonkey

  • Administrator
  • *****
  • Posts: 0
Re: Dead or Alive
« Reply #6 on: January 25, 2015, 07:18:33 PM »
Pulsar2D won't be for Mac for a while since I have no access to MacOS X anymore. I made the source as compatible as I can but can't compile it for now.
Pulsar2D is pure Lua as EGSL and almost compatible to it. A few things changed, though, but it should be simple to port scripts from EGSL to P2D.
For example this is a mandelbrot script for EGSL:
Code: [Select]
--' Mandelbrotfraktale (c) Markus Hoffmann
--' Simple and direct drawing algorithm.
--' X11-Basic, adapted for EGSL


local bx,by,bw,bh
local sx,sy,sw,sh
local t0, t1
local gx,gy,zx,zy,nzx
local col,r,v,b

bx=0
by=0
bw=256*2
bh=256*2

sx=-2.2
sy=-1.7
sw=3.4
sh=3.4

openwindow(bw,bh,0,"Mandel simple - EGSL (adapted from X11-Basic) -")
clearscreen()

t0=timerticks()
for x=bx,bx+bw do
for y=by,by+bh do
gx=(x-bx)/bw*sw+sx
gy=(y-by)/bh*sh+sy
zx=gx
zy=gy
for c=0,255 do
col = c
nzx=zx*zx - zy*zy + gx
zy=2*zx*zy+gy
zx=nzx
if zx*zx + zy*zy > 4 then
col = c
break
end
end
r = col*256+col
v = col*256+col*32
b = col*256+col*64
colour(r,v,b)
dot(x,y)
end
redraw()
end
t1=timerticks()
temps = (t1-t0)/1000
color(255,255,0)
drawtext(1,1,temps.." seconds.")
redraw()

inkey()
closewindow()

And now the same code for Pulsar2D:
Code: [Select]
--' Mandelbrotfraktale (c) Markus Hoffmann
--' Simple and direct drawing algorithm.
--' X11-Basic, adapted for Pulsar2D


local bx,by,bw,bh
local sx,sy,sw,sh
local t0, t1
local gx,gy,zx,zy,nzx
local col,r,v,b

bx=0
by=0
bw=256*3
bh=256*3

sx=-2.2
sy=-1.7
sw=3.4
sh=3.4

win = openwindow("Mandel simple - Pulsar2D (adapted from X11-Basic) -",-1,-1,bw,bh)
setactivewindow (win)

cls()

t0=timerticks()
for x=bx,bx+bw do
for y=by,by+bh do
gx=(x-bx)/bw*sw+sx
gy=(y-by)/bh*sh+sy
zx=gx
zy=gy
for c=0,255 do
col = c
nzx=zx*zx - zy*zy + gx
zy=2*zx*zy+gy
zx=nzx
if zx*zx + zy*zy > 4 then
col = c
break
end
end
r = col*256+col
v = col*256+col*32
b = col*256+col*64
color(v,b,r,255)
dot(x,y)
end
redraw()
end

t1=timerticks()
temps = (t1-t0)/1000
color(255,255,0,255)
textsize (2)
drawtext("Time needed: "..temps.." seconds.",1,1)
redraw()

inkey()
closewindow(win)
closeapplication()

Roland Chastain

  • Guest
Re: Dead or Alive
« Reply #7 on: February 06, 2015, 10:49:02 AM »
Hello gentlemen!

@Cybermonkey

EGSL is a very nice realization. Good luck for Pulsar2D! We will wait for it.  ;)