Author Topic: What are you working on at the moment?  (Read 139147 times)

0 Members and 1 Guest are viewing this topic.

Offline Stonemonkey

  • Pentium
  • *****
  • Posts: 1306
  • Karma: 96
    • View Profile
Re: What are you working on at the moment?
« Reply #500 on: February 25, 2012 »
I'm trying to put some things together into one big library to see what I can do with it all, just got some fire going and applied it to a starfield.

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1289
  • Karma: 466
    • View Profile
    • my stuff
Re: What are you working on at the moment?
« Reply #501 on: February 25, 2012 »
Played a bit with Doob's GLSL sandbox.
« Last Edit: February 26, 2012 by hellfire »
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4380
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: What are you working on at the moment?
« Reply #502 on: February 26, 2012 »
Played a bit with Doob's GLSL sandbox.

Hmm .. just shows a gradient grey background ...
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1289
  • Karma: 466
    • View Profile
    • my stuff
Re: What are you working on at the moment?
« Reply #503 on: February 26, 2012 »
Hmm .. just shows a gradient grey background ...
To be honest I've got no idea what the system requirements for webgl are.
I just adapted one of my shaders to fit the sandbox layout.
Strangely, after it was running fine in Chrome, it refused to work in Firefox until I removed one of the loops...
Did it show "compiled succesfully"  ?
Challenge Trophies Won:

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1150
  • Karma: 174
    • View Profile
    • Raizor's Dev Blog
Re: What are you working on at the moment?
« Reply #504 on: February 26, 2012 »
It worked fine for me in Chrome when I looked at it. Very impressive, and runs nice and fast too.
raizor

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17376
  • Karma: 497
  • evil/good
    • View Profile
    • My Homepage
Re: What are you working on at the moment?
« Reply #505 on: February 26, 2012 »
I got the same as Benny, strangely though your other example in the gallery worked.  I probably need to update Chrome.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1289
  • Karma: 466
    • View Profile
    • my stuff
Re: What are you working on at the moment?
« Reply #506 on: February 26, 2012 »
strangely though your other example in the gallery worked.
That's just a version of my entry edited by someone else.
Funny :)
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4380
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: What are you working on at the moment?
« Reply #507 on: February 27, 2012 »
Strange, both are compiled successfully - but both versions show a grey gradient only. Seems like this the following line 155 is never true:

Code: [Select]
if (t < THRES)

Hmm ... did not understand this function anyway:

Code: [Select]
// find the nearest intersection point of the ray with the scene
float intersectScene(vec3 p, vec3 d)
{
   float t= THRES;
for (int i=0;i< BALLS; i++) {
t= intersectSphere(p, d, sphere[i], colors[i], t);
}     

   return t;
}

Seems like you return the intersectSphere value of the last ball anyway ... yawn... or maybe it is just too early for me ;-)
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1289
  • Karma: 466
    • View Profile
    • my stuff
Re: What are you working on at the moment?
« Reply #508 on: February 27, 2012 »
Hmm ... did not understand this function anyway:
Code: [Select]
// find the nearest intersection point of the ray with the scene
float intersectScene(vec3 p, vec3 d)
{
   float t= THRES;
for (int i=0;i< BALLS; i++) {
t= intersectSphere(p, d, sphere[i], colors[i], t);
}     

   return t;
}

Seems like you return the intersectSphere value of the last ball anyway ... yawn... or maybe it is just too early for me ;-)
6:23am is indeed very early :)
The ray parameter "t" (as in origin + t * direction) always contains the shortest distance to the yet intersected objects.
And it's fed back into the "intersectSphere" function to discard intersections that are further away.
So after the loop it contains the point on the ray which is closest to the camera (or "THRES" if nothing was hit).

As I had successfully tried this with different browsers, browser versions and OSes, it's probably just an ati vs nvidia thing again...

« Last Edit: February 27, 2012 by hellfire »
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4380
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: What are you working on at the moment?
« Reply #509 on: February 27, 2012 »
@Hellfire:
Thanks for explaining that... I just tested the code on my  PC @ work (NVIDIA) and it works like a charme.

Well done! Looks pretty cool ... is this the first step for you doing some javascript stuff, too ;-)
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Pixel_Outlaw

  • Pentium
  • *****
  • Posts: 1382
  • Karma: 83
    • View Profile
Re: What are you working on at the moment?
« Reply #510 on: February 27, 2012 »
Played a bit with Doob's image .



What a lovely set of balls. :xmas:
Challenge Trophies Won:

Offline ttemper

  • Atari ST
  • ***
  • Posts: 209
  • Karma: 7
    • View Profile
Re: What are you working on at the moment?
« Reply #511 on: February 27, 2012 »
Slowly learning with a heap of help from you guys on here... just thought I'd post what I've got going on so far (It's basic). I have many many ideas to put into action still. Slowly but surely.

Attachment is UPX Packed.

Offline copse

  • ZX 81
  • *
  • Posts: 9
  • Karma: 3
    • View Profile
Re: What are you working on at the moment?
« Reply #512 on: February 28, 2012 »
About a month ago I wrote some OpenGL code to make a retro-flat-shaded game engine.  Next step is to upgrade the OpenGL to be shader-based, rather than the old-style.  Then to extend the functionality.

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4380
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: What are you working on at the moment?
« Reply #513 on: February 28, 2012 »
Looking awesome, copse.

Reminds me a bit on the Amiga game called Virus/Zarch.

[youtube]http://www.youtube.com/watch?v=1S6GqqKgEIM[/youtube]
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline ferris

  • Pentium
  • *****
  • Posts: 841
  • Karma: 84
    • View Profile
    • Youth Uprising Home
Re: What are you working on at the moment?
« Reply #514 on: February 28, 2012 »


A current WIP for a certain party in Easter. Gonna be an invite so I'll actually have to finish it this time too :P

There will also be a huge-ass Displayhack article on it after it's done describing workflow/custom tools/effect implementations/why it's going to be open-source :)
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Offline Pixel_Outlaw

  • Pentium
  • *****
  • Posts: 1382
  • Karma: 83
    • View Profile
Re: What are you working on at the moment?
« Reply #515 on: February 28, 2012 »
Looking awesome, copse.

Reminds me a bit on the Amiga game called Virus/Zarch.


That seems almost impossible to play with any accuracy. Amazing graphics though!
Challenge Trophies Won:

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1199
  • Karma: 229
    • View Profile
    • Homepage
Re: What are you working on at the moment?
« Reply #516 on: February 28, 2012 »
Had the same thoughts, looks really trippy with the small field of view!

Excellent and inspiring stuff all!  :clap:
www.kirl.nl
Challenge Trophies Won:

Offline copse

  • ZX 81
  • *
  • Posts: 9
  • Karma: 3
    • View Profile
Re: What are you working on at the moment?
« Reply #517 on: February 28, 2012 »
Had the same thoughts, looks really trippy with the small field of view!
Yeah, the field of view is an interesting legacy from days of limited processing power I guess.  There's a nice remake of Virus available here with Basic source, which has the option to switch cameras to and from the small field of view to other options.  The controls for Virus were too hard for me..

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1199
  • Karma: 229
    • View Profile
    • Homepage
Re: What are you working on at the moment?
« Reply #518 on: February 28, 2012 »
Excellent, thanks for the link copse, the game really rocks!  :updance:
Played it for a few mins but will defenatly revisit it. The controlls work much better then I had expected them to actually.

Are you going for something like this?
www.kirl.nl
Challenge Trophies Won:

Offline copse

  • ZX 81
  • *
  • Posts: 9
  • Karma: 3
    • View Profile
Re: What are you working on at the moment?
« Reply #519 on: February 29, 2012 »
Are you going for something like this?
Only as inspiration in terms of the retro look.  Zeewolf is more of an inspiration to me than Virus/Zarch, even though I never played either.  Once I have it shader-based with shadows, I'll add some more game-like elements and then start experimenting with variations on the look.