Author Topic: New project, early source..  (Read 4505 times)

0 Members and 1 Guest are viewing this topic.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
New project, early source..
« on: January 30, 2007 »
I've been asked by someone to make an intro for a group which I will not be able to post on this forum, had an idea to make a better version of my boxtunnel  and have glenze vectors or something like that flying out of the tunnel.

Just as a gift, I've attahed a rar including the source code for the tunnel part of it. It will look completely different when it's done but the source may be useful to some so here it is..
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: New project, early source..
« Reply #1 on: January 31, 2007 »
That's a nice tunnel, run smoothly here  :goodpost:
Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1495
  • Karma: 140
  • Yes, it is me.
    • View Profile
    • Clark Productions
Re: New project, early source..
« Reply #2 on: January 31, 2007 »
Thanks for sharing man. Cool stuff.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: New project, early source..
« Reply #3 on: January 31, 2007 »
My pleasure :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: New project, early source..
« Reply #4 on: January 31, 2007 »
Totally awesome. Thanks for sharing and adding code.
Code: [Select]
inc karma
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: New project, early source..
« Reply #5 on: January 31, 2007 »
Thanks Benny :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline .:] Druid [:.

  • freebasic n00b
  • Pentium
  • *****
  • Posts: 563
  • Karma: 47
    • View Profile
    • Intro-Inferno
Re: New project, early source..
« Reply #6 on: February 01, 2007 »
thanks a lot for your help shockie! 
[sheep]: im sure he wants to goto prison.. they didnt get him last time.. he was promised a big cock up his arse.. and no doubt looking forward to it.. lets hope he gets his wish this year.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: New project, early source..
« Reply #7 on: February 03, 2007 »
YW...

This is how it looks at the moment..
Shockwave ^ Codigos
Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1495
  • Karma: 140
  • Yes, it is me.
    • View Profile
    • Clark Productions
Re: New project, early source..
« Reply #8 on: February 03, 2007 »
 :clap:

Offline .:] Druid [:.

  • freebasic n00b
  • Pentium
  • *****
  • Posts: 563
  • Karma: 47
    • View Profile
    • Intro-Inferno
Re: New project, early source..
« Reply #9 on: February 08, 2007 »
looks great
[sheep]: im sure he wants to goto prison.. they didnt get him last time.. he was promised a big cock up his arse.. and no doubt looking forward to it.. lets hope he gets his wish this year.

Offline DrewPee

  • I Toast Therefore I am
  • Pentium
  • *****
  • Posts: 563
  • Karma: 25
  • Eat Cheese - It's good for you!
    • View Profile
    • Retro Computer Museum
Re: New project, early source..
« Reply #10 on: February 11, 2007 »
Shockwave
that sure is some fast code . . . it draws so fast on my machine! I don't understand exactly how the routine works but I will check it out and have a looksee!!
Drew

ps Karma up+ for the code!
DrewPee
aka Falcon of The Lost Boyz (Amiga)
Ex-Amiga Coder and Graphic Designer
Administrator of > www.retrocomputermuseum.co.uk

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: New project, early source..
« Reply #11 on: February 11, 2007 »
The tunnel is using an interesting dodge to keep the speed up and eliminate the need for any sorting or z buffer. essentially all I have done is to create a series of diminishing squares, these are treated as 3D points, but in fact it's no more involved than writing a 3D starfield. You see, the tunnel never actually moves, I just add a variable to it, the variable moves forward and when it's advanced by one square it is re-set. This means that the tunnel is always drawn from back to front. Then it is a matter of adding some sine and cos to each layer of the tunnel to make it bend, in the full version it rotates, but a simple rotation around one axis is not hard.

Code: [Select]
        X = COS(theta) * XX - SIN(theta) * YY
        Y = COS(theta) * YY + SIN(theta) * XX

Theta is just a posh way of saying rotation angle.
Shockwave ^ Codigos
Challenge Trophies Won: