Author Topic: [Remakes] Vroom Cracktro  (Read 13190 times)

0 Members and 1 Guest are viewing this topic.

Offline pjay274

  • ZX 81
  • *
  • Posts: 7
  • Karma: 21
    • View Profile
[Remakes] Vroom Cracktro
« on: September 29, 2008 »
Hi guys, i've been working on my first ever remake for the current compo and i'm wondering how you experts are emulating the old Amiga gradient text (copperbars).

At the moment i'm using OpenGL with a stencil buffer, drawing the text & then drawing a copperbar texture over it.  This was all fine and dandy until I tried running it on my other (old) PC & the stencil function didn't work in that you'd get the gradient boxes rather than the text.

Concerned now that'll only look how I wanted it to on my own machine....

Challenge Trophies Won:

Offline stormbringer

  • Time moves by fast, no second chance
  • Amiga 1200
  • ****
  • Posts: 453
  • Karma: 73
    • View Profile
    • www.retro-remakes.net
[Remakes] Vroom Cracktro
« Reply #1 on: September 29, 2008 »
@pjay274: excellent stuff!! except that the stencil buffer does not work on my laptop either!! don't worry about it as the solution to this problem would be simply to render your bob scroll into a RGBA 8bit buffer in memory and then update the texture of the scroll area and display (continuously).

There are really no stable ways to do this with the stencil buffer in OpenGL (you could do it with shaders, but you really do not need shaders here) .... except one way in this case.... that would be to draw your characters by horizontal slices and shade each of the slices by the color that is supposed to be in the gradient (rasters).

Once you have the characters stored as textures, drawing each character with multiple slices (quads with a width of the with of your characters and a height of 1, and of course scaled by a factor of 2 to match the 640x480 resolution).

I hope this helps.. if not let me know..
We once had a passion
It all seemed so right
So young and so eager
No end in sight
But now we are prisoners
In our own hearts
Nothing seems real
It's all torn apart

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
[Remakes] Vroom Cracktro
« Reply #2 on: September 30, 2008 »
Thats a really faithful conversion right there Pjay. If there was not a potential compatibility problem I think it would make the grade already, the only very slight inconsistency I can spot against the original is that the letters squashed a little more in the original and squashed slightly faster, but that's minor critique. It's a fine job that you can be proud of :)

Nice choice.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
[Remakes] Vroom Cracktro
« Reply #3 on: September 30, 2008 »
The screenshot looks cool Pjay, havent seen the orginal before. However I only see the copper colours as a block on my Desktop PC running Vista.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline stormbringer

  • Time moves by fast, no second chance
  • Amiga 1200
  • ****
  • Posts: 453
  • Karma: 73
    • View Profile
    • www.retro-remakes.net
[Remakes] Vroom Cracktro
« Reply #4 on: September 30, 2008 »
@Clyde: yop it's the problem mentioned before with the stencil buffer not being supported by all gfxcards. I hope pjay274 fixes this using the hints I gave him, because this intro is really cooland well known.It deserves a nice remake
We once had a passion
It all seemed so right
So young and so eager
No end in sight
But now we are prisoners
In our own hearts
Nothing seems real
It's all torn apart

Offline pjay274

  • ZX 81
  • *
  • Posts: 7
  • Karma: 21
    • View Profile
[Remakes] Vroom Cracktro
« Reply #5 on: September 30, 2008 »
Cheers for the advice, I think i've fixed an incompatability or two...... the text is visible on my old pc now & it grows & shrinks a little better (stopped it from scaling the top / bottom 2 pixels of the font).



Challenge Trophies Won:

Offline hellsangel

  • C= 64
  • **
  • Posts: 46
  • Karma: 10
    • View Profile
[Remakes] Vroom Cracktro
« Reply #6 on: September 30, 2008 »
that works now. great !
a new little bug on the top message box : the text is "underlined" now. see screenshot

like my last remake before I fix it, this one is cpu consumer (25%).

Offline stormbringer

  • Time moves by fast, no second chance
  • Amiga 1200
  • ****
  • Posts: 453
  • Karma: 73
    • View Profile
    • www.retro-remakes.net
[Remakes] Vroom Cracktro
« Reply #7 on: September 30, 2008 »
fantastic here! just missing a full screen mode, but besides that everything runs very fine

well done!
We once had a passion
It all seemed so right
So young and so eager
No end in sight
But now we are prisoners
In our own hearts
Nothing seems real
It's all torn apart

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
[Remakes] Vroom Cracktro
« Reply #8 on: October 01, 2008 »
Screeny looks good.

But have a look at attached screenshot - that's how it looks
on my laptop. The movement and music runs stable and smooth
though.
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline stormbringer

  • Time moves by fast, no second chance
  • Amiga 1200
  • ****
  • Posts: 453
  • Karma: 73
    • View Profile
    • www.retro-remakes.net
[Remakes] Vroom Cracktro
« Reply #9 on: October 01, 2008 »
oops...

@pjay274: I did not look into your code, but maybe you should make sure to not use any rectangular textures, only 1D and 2D would be supported by all the gfx cards. Also make sure you set the texture parameters after you bind the textures. I know that normally it should not be necessary, but on some gfx cards/drivers, you have to. So basically when you draw your stuff on screen, make sure that:

1) you properly enable the appropriate texture mode (1D/2D)
2) set the blending parameters
3) set the filtering parameters
4) turn off lighting & depth
etc..

OpenGL is a state machine, you normall if you turn off the lighting once, the should be kept all the way through the intro, until you change it. However, I observed that some drivers do not respect that and the OpenGL context is reset at every draw.. so just make sure you set these things properly before you draw, just in case.

Maybe it's also just an problem with benny!'s laptop... I'll test on more machines today and let you know..
We once had a passion
It all seemed so right
So young and so eager
No end in sight
But now we are prisoners
In our own hearts
Nothing seems real
It's all torn apart

Offline stormbringer

  • Time moves by fast, no second chance
  • Amiga 1200
  • ****
  • Posts: 453
  • Karma: 73
    • View Profile
    • www.retro-remakes.net
[Remakes] Vroom Cracktro
« Reply #10 on: October 01, 2008 »
@pjay274: maybe you should post your remake in an appropriate thread, not to hijack this one. Have a look at how Shockwave did it. It will help people to post comments for your remake and sillsimplify voting, etc.
We once had a passion
It all seemed so right
So young and so eager
No end in sight
But now we are prisoners
In our own hearts
Nothing seems real
It's all torn apart

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: [Remakes] Vroom Cracktro
« Reply #11 on: October 01, 2008 »
[Topic Split ~ SW]
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: [Remakes] Vroom Cracktro
« Reply #12 on: October 01, 2008 »
....

Maybe it's also just an problem with benny!'s laptop... I'll test on more machines today
and let you know..

As I posted in several other threads - my laptop is definately not good for viewing demos.

It is a Sony Vaio CR21S notebook with Mobile Intel Graphics Media Accelerator X3100
as a graphic card.

On the other hand - nearly all productions by Shockwave run perfectly smooth on it. Although
it crashes sometimes in fullscreen mode - whereas the windows version works nearly fine all the
time.

In general, it should be fine enough to show standard OpenGL/DirectX stuff which are not
using any shaders and stuff. E.g. my p1nKpong game works without any problems in
fullscreen mode.
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: [Remakes] Vroom Cracktro
« Reply #13 on: October 01, 2008 »
Just to let you know dude, that all I get on my machine ( see signature for system spec ) is the Vroom graphic and some blue bubble bobs, and the cractro coloured lines at the top an bottom. No scroller, and it runs very slow.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline pjay274

  • ZX 81
  • *
  • Posts: 7
  • Karma: 21
    • View Profile
Re: [Remakes] Vroom Cracktro
« Reply #14 on: October 01, 2008 »
Riiighht... third time lucky?  :-[

Re-scaled to 640x480, made textures a maximum of 256 pixels wide (which fixed the issues on a mates laptop), reduced cpu usage & added a full-screen mode.

These things aren't as easy to program as they first appear :) but i suppose once you've got a working one out of the way then you have a good framework to build on for future remakes.

Thanks for all the advice & bug reports guys.
« Last Edit: September 07, 2009 by Shockwave »
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: [Remakes] Vroom Cracktro
« Reply #15 on: October 01, 2008 »
Now that is stunning, awesome work there dude, and welldone. Runs very nice indeed.
For some reason on start up I get a completely white screen.

Cheers and all the best with the Judging & voting,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline stormbringer

  • Time moves by fast, no second chance
  • Amiga 1200
  • ****
  • Posts: 453
  • Karma: 73
    • View Profile
    • www.retro-remakes.net
Re: [Remakes] Vroom Cracktro
« Reply #16 on: October 01, 2008 »
now this is a serious candidate! excellent job!!!
We once had a passion
It all seemed so right
So young and so eager
No end in sight
But now we are prisoners
In our own hearts
Nothing seems real
It's all torn apart

Offline hellsangel

  • C= 64
  • **
  • Posts: 46
  • Karma: 10
    • View Profile
Re: [Remakes] Vroom Cracktro
« Reply #17 on: October 01, 2008 »
 :clap: wouaou
works fine. and cpu from 25% to 1% !  :xmas:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: [Remakes] Vroom Cracktro
« Reply #18 on: October 01, 2008 »
Awesome ... works very good and smooth and scroller is now correct.
Thanks for bugfixing. Great entry  :clap:
[ 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: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: [Remakes] Vroom Cracktro
« Reply #19 on: October 02, 2008 »
Works great now! :)

This can be added to Retro Remakes archive afaic.

Great job and good luck in the voting.
Shockwave ^ Codigos
Challenge Trophies Won: