• Welcome to Dark Bit Factory & Gravity.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - ttemper

#1
General chat / Re: Test
November 18, 2026
huzzah... nice to see this being updated/coming back. \o/
#2
Quote from: KrazyK on September 22, 2026
Thanks for the code ttemper.

np at all. :)

Quote from: KrazyK on September 22, 2026
For some reason the intro opens in the top left corner of the window at normal size (using pb 5.73) so I had to add these 2 lines to get it to the right size after HideWindow(#WINDOW,#False).
SetWindowState(#WINDOW,#PB_Window_Maximize)
SetWindowState(#WINDOW,#PB_Window_Normal)
I tried with DPI aware on and off.

y u do dis? use 6.2.0+ hehe. unsure why it would cause issue with the DPI aware enabled, -shrugs-. least you got it working as intended with the older pb version.

Quote from: KrazyK on September 22, 2026
I like the ConvertImageColorToTransparent() routine.  I may have to add that one to my snippet collection.   ;)  I'll do some comparisons with my old intros soon.

yah, it works nicely for those non 32bit images... and especially for those 1bit/8bit images. remove the background (or foreground) in one pass (or two if you have more colors to make transparent). it works well for what i need it to do. 8 bit -> 32 bit, convert color to transparent, done (save image too and use that instead, if you want to save setup at runtime that is).

Quote from: KrazyK on September 22, 2026
On another note.  I've made the Spiceboys intro a bit smaller after finding the sndh tunes on the Atari-Forum.  I had originally saved as wav then converted to ogg as I couldn't find the tunes.  It works fine on my PC and my crappy old laptop too.

nice... gotta love tweaking code, im forever learning this demo code stuffs. :P and yeh i grabbed the full .zip files for all the sndh tunes, and am using SndhArchivePlayer_x64 to go through/play them all.
#3
Projects / Re: DBF Header 2026
September 22, 2026
ok... so i have messed around with the code some more, changed things, added things, fixed things... and thinged the things. and decided to release this as a v1.0.1.

what did i change..?


  • i updated the scroller code calculations for smoother scrolling... the previous one is a lil glitchy.
  • i updated the screen handling. it now supports moving the window (with no screen freeze), full screen window mode (with disabled window move), center window hot key (F10), now with multi-monitor support.
  • i updated the stars. new calculations, new pixel blit in a star shape (rather than just a single pixel), new colors (F9 to cycle), tidied the code a lil.
  • i added in a fps counter (F1 to toggle)... just because.
  • i added in a credit/about screen (F12 to toggle)... because i could :P. it uses the same colors as the stars for the background (F9 to cycle).

i think that's it... hopefully. anyways... check it out. :)

#4
Nice work mate. Good to see another version of this. <- :) albeit the intro fade in/out i skipped over... as i just wanted to test/achieve the inverse blit so that the rasters show through on the text. more learning.

Could you post your code so I can check out the transparent blit method etc?  I'm always keen to add new routines to my library. <- sure, check the google drive, its on there. lmk if its missing anything (and if any other PB fanatics want to check out the code... lmk also). the gist of it is, create a new 32bit image to blit to, load/catch your image then blit it to the new 32bit image, then convert the background of it, eg RGB(0, 0, 0) to RGBA(0, 0, 0, 0). this then allows the drawing mode alpha channel to only blit the alpha values leaving the rest of the image untouched. the image must be 32bit (not 24bit) as it needs to use the alpha channel with the PB drawing modes. therefore... you draw the underneath (eg the moving color rasters) with drawing mode all channels (RGBA), then draw the scroller on top of it with alpha channel only (A)... aka 'cut out' effect. very similar how you do it with dx9 and your transparent blit proc.

I've moved from 5.73 x86 to 6.41 x64 as my new AtariAudio music library works with x64 so I doubt i'll use OSME now as it was 20+ years old C and would sometime crash out with memory <- ahh nice. im still using pb 6.2.0 32bit, since the audio (osme and others) work with it still... as for PB 64bit nope, and PB 6.4.0+ nope. :/ and i dont have the skillset to update/compile my own libraries for use. i did test out bass.dll, and it works, but i dont want an extra .dll floating around (or have it unpack in a temp dir at runtime)... i just want it all packed within the .exe as it has always been and then unpack to memory.

AtariAudio adds an additional 300k to the exe compared OSME but I can live with it! <- ah yeh... so be it i guess. an extra 300k, it is what it is... for the convenience.
#5
Projects / Re: DBF Header 2026
September 12, 2026
Quote from: KrazyK on September 03, 2026
I'll try this when I get back from my hols.   :)

^ nice. will be good to see an alternate version.

Quote from: Shockwave on September 10, 2026
This is such a nice tribute and it's great to read how you crossed over from pixel art to programming  :)

I hope Benny and Dicab both get to see your tribute and thanks for the greet  :cheers:

ahh. thx. :) im still learning democode (purebasic)... always wanted to make prods, just never had the skillset when i was younger to understand code/code structure. but small prods like this do help with learning set up, procedures and loop routines, etc.

thus far ive done a LERNSTUF intro (bookware group), BTCR 5th Birthday Intro (0day group), Working on a couple of others atm/still in my spare time, and im sure you have all seen my XMAS Intro from 2024.

and im sure they'll see it if they venture back here at some stage :P as here is the only place its posted.
#6
Projects / DBF Header 2026
August 31, 2026
a just-because-i-could demo/intro... nfi why i did, but i did... and here it is.

it's basically a replication of the 'DBF Header' on the main page... with a chiptune thrown in. just another learning experience on the ins-and-outs of demo coding and purebasic.

sometimes the more simplest of demos/intros are still nice to watch (and learn by).

zipped up, no pe packing, just compiled straight from pb.

-ttemper.
#7
Quote from: KrazyK on August 25, 2026
Thanks for testing it mate.
I used the MP3D opengl library and I had to modify it a bit as sometime it was scroller but no torus.
I'll take another look at it.  :cheers:

[Edit]
Version 2 here.  Changed a bit in the MP3D opengl library.
See how this one works for you.

no prob at all. :)

i can see the scroller now :) albeit it moves really slow across the screen. is this intentional?
#8
nice... checked it out, i see a logo and a torus but no scroller. music is there too. screen res looks to be 800x550.
#9
Big thanks KrazyK for the code to check out.

In my poking around, I noticed that you still use an old PB version 5.71 or such IIRC. ouch. and for many days I was pulling my hair as to why PB 6.2.0 wouldnt render things properly, until one day half asleep I peeped the idea that the older versions of PB use DirectX as the renderer, not OpenGL... so i put DirectX9 as the render and bingo, everything renders fine. \o/

On that note... I went down a rabbit hole, and by rabbit hole I mean it was more like an ant-farm.

I coded and recoded your Vectronix cractro using PB 6.2.0... removed a heap of code, added in new code and got it all working again. Your transparent blit proc only works on DX, so i fixed that by using a work-around method using 32bit images with dedicated alpha table (RGBA, not just RGB) and adjusting the draw commands to suit what was needed. Needless to say that the images now blit in reverse (cut out) to reveal the raster underneath keeping the background fully transparent, and with zero performance hit (unlike the previous method i used which was a cpu hammer).

What I changed...


  • updated constants.
    created enumeration.
    created new proc to convert a color to fully transparent and set the alpha channel to this (32bit image).
    removed (commented out) dx drawtransparentimage proc.
    updated the static text page proc(s) to use new drawing routines (works in dx9 and opengl with pb 6.*). display + wipes.
    updated the small scroller code to use any bitmap font chosen. swapped out the small bitmap font for 'chunky monkey' atari-st bitmap font (found it after a bit of a scavenger hunt... now i have about ~300 atari-st bitmap fonts to use).
    updated the big scroller code for the new drawing routines (works in dx9 and opengl with pb 6.*)
    swapped out the main logo/background image for a 'screenshot' from yt on the original capture of the cracktro (32px borders kept in).
    adjusted most of the blits to render to sprites, then draw those to screen... since when adjusting screen resolutions, it keeps the scaling proper (unlike drawing directly to screen).
    adjusted all draw sprites to smaller resolution to fit within the new background to give that 'border' effect like the atari-st has.
    numerous other tweaks and code changes (i have certainly learned more from poking around, updating/changing code... so thx).

Attached is my compiled version (PB 6.2.0) to check out.
#10
Quote from: KrazyK on August 19, 2026
After a lot of hard work and head scratching I've finally knocked OSME on the head and brought SNDH replay into the 21st century for Purebasic   ;D

ooooooooooooooooooooooooooooooooooooooooooh -takes a deep breath-

Quote from: KrazyK on August 19, 2026
@ttemper - yes it has finally happened !

f--k yeh!

ive been messing with PB code again of late (lots of learning)... and the OSME dll (latest build you supplied) does not work for PB 6.4.0, but it does for 6.2.0 so ive been coding using that version still.

im gonna have to peep this and check it out... another rabbit hole to venture down. many thanks KrazyK.
#11
very nice... will check it out when i get the chance. it's always nice to see how other coders do things.
#12
KrazyK still at it... nice :)

Nice remake.
#13
Purebasic / Re: OSME vis demo
February 12, 2026
very nice... certainly a lot of visualizations to be had with all the channel data. looks good.

did you code that visualizer also?
#14
Projects / Re: OSME library update
February 10, 2026
Quote from: KrazyK on February 07, 2026
I've dumped the 14 bytes of data from the YM registers in real-time so I can read frequencies, tone, pitch, mixer, envelope, volumes etc. Which makes visualisations a lot more interesting.

ahh right, pulling data for graphic visualizations.

Quote from: KrazyK on February 07, 2026
I'll release a little demo of it in action soon.

nice.
#15
nice.

worked here... albeit if i clicked outside the window the navigation was no longer active/accessible if i refocused the window (i had to restart the pe).
#16
nice... you have got your framework all done now i gather?

keep em coming :)
#17
Projects / Re: OSME library update
February 04, 2026
very nice... so the plan is to bring it into 2026 and hit the ground running?

i think i still use the old osme on some prods. what formats will be supported? all the same as usual, or more?
#18
groovy. :) im sure the kids enjoy it.
#19
Projects / Re: Power House - Nightfall
September 11, 2025
nice... i'll check it out when i get a chance. :)

[edit]

checked it out finally. very nice lil intro. i do like the toggle crt shader (F12), as well as the auto black padding in fullscreen mode.
#20
Keep em coming KrazyK. :)