Author Topic: Putrid 4K Scroller  (Read 9589 times)

0 Members and 1 Guest are viewing this topic.

Offline da_fatstuff

  • C= 64
  • **
  • Posts: 38
  • Karma: 16
  • Stupid is forever, ignorance can be fixed
    • View Profile
Putrid 4K Scroller
« on: August 27, 2007 »
Hi,

Just in case it's of any use/interest to anyone I thought I'd post the source to a putrid 4k scroller I've done largely based on stuff I've found here at DBF...it's just something I've used for tinkering with OpenGL in my spare time, so it's not great/clean as I'm new to it, but it might be useful/interesting to someone else also learning.

It started with a port of a Freebasic 2D Shockwave scroller, then Slippy cleaned it for me (forum link :http://dbfinteractive.com/index.php?topic=2267.0) and put into the RBraz's 4K framework...I then found/used Jim's copper-bars routines and changed them and added some boxes and more colour to make as much of a headache in <4k (when linked with Crinkler http://www.crinkler.net/)as I could...I had a few bytes left but couldn't think what to add as it's already cluttered  ;)

Runs well on my desktop/laptop machines here, but they're pretty good so you might see it in slow-motion if yours aren't...anyway, hope you can run it, and hope you like it.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17394
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Putrid 4K Scroller
« Reply #1 on: August 27, 2007 »
I am temporarilly gutted :P

I ran the exe and to me the colours looked just like the sort of colours I love. Unfortunately for me though it ran really really fast, too fast to see what was going on in fact so I disabled hardware acceleration on my gfx card and then everything ran really too slow.

What I am asking is could you possibly make a version that synchs to 60 hz or something similar? :)

I'd really like to see this as it looks really promising.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Putrid 4K Scroller
« Reply #2 on: August 27, 2007 »
Psychedelic man!

Jim
Challenge Trophies Won:

Offline da_fatstuff

  • C= 64
  • **
  • Posts: 38
  • Karma: 16
  • Stupid is forever, ignorance can be fixed
    • View Profile
Re: Putrid 4K Scroller
« Reply #3 on: August 27, 2007 »
Yes, it looks a wee bit Jeff Minter inspired   ;)

Re timing: when Slippy kindly optimised it I think the version he downloaded didn't have the timer in, but for me it seemed to work quite well across my PCs so I assumed there was some alternative magic under the covers working that I didn't know about...

...I've quickly attached the code & exe to run at 70Hz (a little bit manic, but I liked this best) - I hope it runs ok on yours, adjusting the FPS var near the top of Main.cpp will set it to whatever FPS you like (if you have VC++2005 to rebuild it...and it should build fine in debug mode if you don't have Crinkler).

[Edit] Jim found bug in native.h's ftol/ftol2 methods - corrected version now here instead, just in case
« Last Edit: November 06, 2007 by da_fatstuff »

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Putrid 4K Scroller
« Reply #4 on: August 27, 2007 »
Looks like the KillTimer has cleaned up the exit :)
Jim
Challenge Trophies Won:

Offline madsravn

  • ZX 81
  • *
  • Posts: 13
  • Karma: 0
    • View Profile
Re: Putrid 4K Scroller
« Reply #5 on: August 27, 2007 »
It's awesome...

Thanks a lot for the source as well, think I can learn a lot from it. I like the effects, and I hope I some day can be just as creative by myself :)

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Putrid 4K Scroller
« Reply #6 on: August 27, 2007 »
Im sure this is really cool, but I cant get the exe to run under Vista.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Putrid 4K Scroller
« Reply #7 on: August 27, 2007 »
What happens for you Clyde? It works for me OK on Vista.

Jim
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Putrid 4K Scroller
« Reply #8 on: August 27, 2007 »
It takes ages to launch and freezes up. I need to run Task Manager to end the process.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline da_fatstuff

  • C= 64
  • **
  • Posts: 38
  • Karma: 16
  • Stupid is forever, ignorance can be fixed
    • View Profile
Re: Putrid 4K Scroller
« Reply #9 on: August 27, 2007 »
Quote
I cant get the exe to run under Vista.
Possibly irrelevant, but I have a PCTools firewall which will BSOD with any Crinkler application - I assume whatever it takes exception to, something else can and Vista is (probably) better built to prevent such crashes but may hang the app instead...so just in case it is relevant I've attached the debug (non-crinkled) version here.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Putrid 4K Scroller
« Reply #10 on: August 27, 2007 »
Dude, that is diamond works a charm.
And further - Very impressive indeed, welldone all that in 4K! :)

Cheers,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Putrid 4K Scroller
« Reply #11 on: August 27, 2007 »
I don't get problems with crinkler, UPX, or kkrunchy, but all the 'dropper' ones fail on Vista and I had a problem with a UPACK exe the other day.  I use Windows Firewall and AVG.  Perhaps some virus checkers get very upset with crinkler exes too?

Jim
Challenge Trophies Won:

Offline mind

  • Texture-San
  • DBF Aficionado
  • ******
  • Posts: 2324
  • Karma: 85
    • View Profile
    • boredom is a beatiful thing.
Re: Putrid 4K Scroller
« Reply #12 on: August 28, 2007 »
first one did nothing besides allocating around 500mb's of ram before i terminated it with the taskmanager. the uncrinkled one worked though :) not really my cup of tea with the colors and such but the scroller itself was pretty cool :)
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: Putrid 4K Scroller
« Reply #13 on: August 28, 2007 »
I don't get problems with crinkler, UPX, or kkrunchy, but all the 'dropper' ones fail on Vista and I had a problem with a UPACK exe the other day.  I use Windows Firewall and AVG.  Perhaps some virus checkers get very upset with crinkler exes too?

Jim,

Probably the problem with droppers is that they use C: by default which is blocked under Vista. Dropper itself allows you to specify the current directory but its a few more bytes so most 1k/4k .coms dont have it.

Crinkler 1.0 had problems with Vista but 1.0a fixes them so sometimes a crinkler compressed exe can blow up under Vista. There is a /fix flag in 1.0a to fix such exes if anyone encounters them.

Most virus checkers somehow patterm match the PE header to see if it conforms to a standard form but crinkler and maybe the other exe packers use the 0 bytes in the PE header for data which of course then shows up as a virus.

Chris
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17394
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Putrid 4K Scroller
« Reply #14 on: August 28, 2007 »
Runs well for me!

Call me old fashioned, but I love coder colours and this really appeals to me.
Also I appreciate the way that you included the whole project for people to learn from your code, as you said in the same spirit that you learned. :)

That's worth some good Karma, thanks for posting it.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline da_fatstuff

  • C= 64
  • **
  • Posts: 38
  • Karma: 16
  • Stupid is forever, ignorance can be fixed
    • View Profile
Re: Putrid 4K Scroller
« Reply #15 on: August 28, 2007 »
Cheers for all feedback, I'll try something more tasteful next time...not sure I'm capable though  ;)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17394
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Putrid 4K Scroller
« Reply #16 on: August 28, 2007 »
I'm sure that you are :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Putrid 4K Scroller
« Reply #17 on: August 28, 2007 »
However, tasteless seems to be in right now :D

Jim
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2751
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Putrid 4K Scroller
« Reply #18 on: August 28, 2007 »
Nice stuff, keep it up dude!
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: Putrid 4K Scroller
« Reply #19 on: August 29, 2007 »
Yup. Nice one. Like the scrolly. Keep it up!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won: