Author Topic: [Halloween]: Creeps by taj  (Read 20285 times)

0 Members and 1 Guest are viewing this topic.

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: [Halloween]: Creeps by taj
« Reply #20 on: October 24, 2007 »
Thanks Jim.

Apologies that I didnt include it in the archive but its quite large. Most gamers/sceners will already have it so I took the decision not to include it as I used a DLL from 12 months ago. Sorry for the inconvenience CK.

Chris
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: [Halloween]: Creeps by taj
« Reply #21 on: October 24, 2007 »
It looks like I'm a victim of circumcise - I mean, circumstance, as my computer at home lacks an internet connection (and so, access to updates), and my manager chooses which updates to apply to the network over here, and he hasn't done this one yet.

I'll go over his head, just for this workstation...

The installation worked, but now I just get a black screen - looks like my graphics hardware isn't up to it :(

I'll try a different work station.
You are our 9001st visitor.
Challenge Trophies Won:

Offline Paul

  • Pentium
  • *****
  • Posts: 1490
  • Karma: 47
    • View Profile
Re: [Halloween]: Creeps by taj
« Reply #22 on: October 24, 2007 »
That's a shame - the stuff in your screengrab just displays black on Vista, the first FX is the cube with the spider texture :(

Yeah, the rest is great though, Ill have a go on teh other machine when its turned on :)

Edit:
Ran it on a xp machine and it looks awsome, really awsome no lag o anything, just great
« Last Edit: October 24, 2007 by Paul »
I will bite you - http://s5.bitefight.se/c.php?uid=31059
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: [Halloween]: Creeps by taj
« Reply #23 on: October 25, 2007 »
Got it on the work XP machine and the desktop stuff looks really cool - wonder what bit of the code makes Vista barf?

Jim
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: [Halloween]: Creeps by taj
« Reply #24 on: October 25, 2007 »
Got it on the work XP machine and the desktop stuff looks really cool - wonder what bit of the code makes Vista barf?

Jim

V.good question. However you've seen my windows programming...so you know,  could be anything. However, I am using a clearly dirty trick which _may_ work differently under vista due to its extra abstraction layer for compositing. Essentially I open a window, fullscreen, and immediately read the front buffer of the window. Now under XP this gets the pixels from the screen. This is odd really but must be something to do with the OS identifying one area of memory as the screen and enabling writes directly to it for speed. Under vista I'm guessing that the "front buffer" is actually another logical area of memory for each application which is then composited at some performance cost. Hence the reason you get black.

To be honest I was amazed it worked at all nuder any OS but I tried and it did (like much of my size coding). Do you know any safe way to grab the "desktop" Jim?

Alternatively my pfd/dmsettings happen to work for XP but arent "legal" enough for Vista. I'm happy to give you code Jim and for you to tinker - I'm no windows programmer as you know.

Chris



 
Challenge Trophies Won:

Offline Paul

  • Pentium
  • *****
  • Posts: 1490
  • Karma: 47
    • View Profile
Re: [Halloween]: Creeps by taj
« Reply #25 on: October 25, 2007 »
The getdesktop on the blitzbasic site works on win 2k and xp i think, but on vista i get quite alot of black.
http://www.blitzbasic.com/codearcs/codearcs.php?code=654

I will bite you - http://s5.bitefight.se/c.php?uid=31059
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: [Halloween]: Creeps by taj
« Reply #26 on: October 25, 2007 »
Yeah, use GetDC(NULL) to get the desktop DC, and then create a compatible DC and BITMAP from that, then BitBlt the desktop DC into your own DC and finally use GetDIBits to get the pixels.

Jim
Challenge Trophies Won:

Offline Tetra

  • DBF Aficionado
  • ******
  • Posts: 2532
  • Karma: 83
  • Pirate Monkey!
    • View Profile
Re: [Halloween]: Creeps by taj
« Reply #27 on: October 28, 2007 »
Nice work chris, really like it. Nice idea indeed and I loved the face coming out of the desktop!

 :kewl:
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: [Halloween]: Creeps by taj
« Reply #28 on: October 28, 2007 »
Thanks tetra,

I think it might be worth exploring this a bit more adding lighting and shadows to make it really feel like something coming out of the desktop. After thats cracked (and vista fixed), it would be possible to run an entire demo, capture to texture and display in this way each frame.

Chris
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: [Halloween]: Creeps by taj
« Reply #29 on: October 29, 2007 »
I've posted some sample code to grab the desktop reliably under XP and Vista
http://dbfinteractive.com/index.php?topic=2565.msg36293#msg36293

Jim
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: [Halloween]: Creeps by taj
« Reply #30 on: October 29, 2007 »
I'll update my code after the voting is done (to be fair to everyone). Thanks Jim. Already "karma++ed" you. Very useful snip of code that.

Chris
Challenge Trophies Won:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: [Halloween]: Creeps by taj
« Reply #31 on: November 06, 2007 »
hey chris did you ever get round to fixing this up mate,

no presure though id really like to view it in its entirity
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: [Halloween]: Creeps by taj
« Reply #32 on: November 06, 2007 »
hey chris did you ever get round to fixing this up mate,

no presure though id really like to view it in its entirity

Sorry not yet, but I will nino...got absorbed by the raytracer for a while.
Challenge Trophies Won:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: [Halloween]: Creeps by taj
« Reply #33 on: November 07, 2007 »
take your time mate i look forward to it in anticipation!
Challenge Trophies Won: