Author Topic: J2K Dance of Light  (Read 6042 times)

0 Members and 1 Guest are viewing this topic.

Offline TinDragon

  • Pentium
  • *****
  • Posts: 644
  • Karma: 24
    • View Profile
    • J2K's blog
J2K Dance of Light
« on: August 13, 2009 »
Here's one of the only demo/intro things I ever did with blitz3d that used 3d commands from the language rather than pixelpushing. It's the same sort of effect as the 2d alphastars but using a 3d bobs so we get nice blending. I always like the way things glow when you do this sort of thing :)
This was a slight rework back when clyde was running cool creations, I basicly upped the sprite count and changed the logo from 2d to 3d and added some controls so people could mess with the effects abit. Should work on any DX7 upwards cards :)

Here it is, enjoy.
« Last Edit: September 07, 2009 by TinDragon »

Offline spitfire

  • Amiga 1200
  • ****
  • Posts: 275
  • Karma: 9
    • View Profile
Re: J2K Dance of Light
« Reply #1 on: August 13, 2009 »
cool. Who did the music?

Offline TinDragon

  • Pentium
  • *****
  • Posts: 644
  • Karma: 24
    • View Profile
    • J2K's blog
Re: J2K Dance of Light
« Reply #2 on: August 13, 2009 »
I dont know, there is no name that i know of in the mod and I couldnt find it on modarchive, at the time it came from a disc I had with loads of old amiga .mod music on among other things.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: J2K Dance of Light
« Reply #3 on: August 13, 2009 »
Will try this out when I restart into XP, as Vista wont let me extract to the XP drve partition.
And I'll see if I can find out the musician; usually the name is in the samples / instruments list. mod plug is pretty cool.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: J2K Dance of Light
« Reply #4 on: August 13, 2009 »
This is a very atmospheric and cool production. Like it a lot!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline TinDragon

  • Pentium
  • *****
  • Posts: 644
  • Karma: 24
    • View Profile
    • J2K's blog
Re: J2K Dance of Light
« Reply #5 on: August 13, 2009 »
It runs on Vista clyde so no need to run it in xp ? I looked thru the samples but there didnt appaer to be a name in them.

Glad you like it Benny :)


Offline va!n

  • Pentium
  • *****
  • Posts: 1432
  • Karma: 109
    • View Profile
    • http://www.secretly.de
Re: J2K Dance of Light
« Reply #6 on: August 14, 2009 »
@TinDragon:
Very very nice intro! Would like to know how to code this morphing stuff and try to code such stuff myself... like it since amiga days! Very impressive!
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: J2K Dance of Light
« Reply #7 on: August 14, 2009 »
Would like to know how to code this morphing stuff and try to code such stuff myself...

It's vectorbobs using additive blended sprites to make the glow mate.
I like the way the shapes glow here, it makes me want to make my own version actually.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline TinDragon

  • Pentium
  • *****
  • Posts: 644
  • Karma: 24
    • View Profile
    • J2K's blog
Re: J2K Dance of Light
« Reply #8 on: August 14, 2009 »
Shockwave is correct its a vectorbob type routine but rendered in 3d using addative blending. This was coded in blitz3d and is prettymuch using the same code to morph shapes as the alphastars intro in my demo archive post only in that one i did it with pixels in 2d which is why there only small starts in that one :)

There's also a morphing vectorbob section in my cubis demo and in TTD02 from zawrans demos site it features another morphing vectorbob section casting shadows on the checkboard floor which I also coded :)


Offline va!n

  • Pentium
  • *****
  • Posts: 1432
  • Karma: 109
    • View Profile
    • http://www.secretly.de
Re: J2K Dance of Light
« Reply #9 on: August 20, 2009 »
Would like to know how to code this morphing stuff and try to code such stuff myself...

It's vectorbobs using additive blended sprites to make the glow mate.
I like the way the shapes glow here, it makes me want to make my own version actually.


Yes i know, that its made by using Vectorbobs and add blending... the thing i would like to know is, how to make the morphing and moving (i am really fascinated in)
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Offline TinDragon

  • Pentium
  • *****
  • Posts: 644
  • Karma: 24
    • View Profile
    • J2K's blog
Re: J2K Dance of Light
« Reply #10 on: August 20, 2009 »
Well the way I did it was to track 2 seperate locations for the bobs, you have the current position which you draw to the screen and you have the target position which is were you move to. Then when you change from one shape to another you set the new shape into the target positions, if the current bob is in a different place to the target one you move it a small amount towards the target position say each loop, do it slow and smooth enough and it appears as if the shapes morph between each other.

Code example would be something like this were pointsx()pointsy()pointsz() are were the bob currently is and tpointx(),tpointy(),tpointz() are were it need to move to.
Code: [Select]
For t=0 To Number_Of_Points <--- this is the number of bobs the object has basicly
If tpointx(t) > pointsx((t) Then pointsx((t) = pointsx((t) + 1
If tpointx(t) < pointsx((t) Then pointsx((t) = pointsx((t) - 1
If tpointy(t) > pointsy(t) Then pointsy(t) = pointsy(t) + 1
If tpointy(t) < pointsy(t) Then pointsy(t) = pointsy(t) - 1
If tpointz(t) > pointsz(t) Then pointsz(t) = pointsz(t) + 1
If tpointz(t) < pointsz(t) Then pointsz(t) = pointsz(t) - 1
Next

Ofc you would have setup the storage arrays before hand, I have them seperate but you ofc can use multi arrays it just makes the example easier to follow.

hope that helps :)
« Last Edit: August 20, 2009 by TinDragon »

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: J2K Dance of Light
« Reply #11 on: August 20, 2009 »
Very cool and clever indeed JC1800 ;)

I like how you generate the shapes with an algo, i remember using Zarwans bob editor to do mine in a few gfx demos I did. As my skills of sin and cos are ok, but not the greatest.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline TinDragon

  • Pentium
  • *****
  • Posts: 644
  • Karma: 24
    • View Profile
    • J2K's blog
Re: J2K Dance of Light
« Reply #12 on: August 20, 2009 »
most of it comes from experimentation with different parameters till you find ones that look nice :)