Author Topic: Writing the D3D update  (Read 3333 times)

0 Members and 1 Guest are viewing this topic.

Writing the D3D update
From my research into the code, I've determined that (please kill me this line is turning into such a cliche) the D3D engine upgrade translates fairly well into fully collaborative programming.

We only have to change the initialization functions and the drawing functions and the game should (in theory) adapt fine providing we keep the inputs and outputs more or less the same.

To this end, I've created the first few files of needed to do a conversion. My idea basically is that we copy the function names and work our way inward from the basic functionality expressed in the initializer functions.

If this doesn't work out then it should be easy to remove since I've isolated everything (I hope) into USE_D3D81 defines. It's not posted to the CVS until I've done a bit of work on it, but hopefully this can serve as the stepping stone we need.

 

Offline RandomTiger

  • Senior Member
  • 211
What about getting rid of direct draw?

 

Offline daveb

  • WHEE!!
  • 25
The only real hassle I can forsee moving to DX8 is the texture caching code. The d3d code makes some assumptions which were valid at the time about how D3D handles texture uploading that are no longer really valid. Chances are you could _probably_ toss most of the d3d texture cache code and let the automatic texture management in DX8 handle it for you, but I'm sure there will be stickiness.

 

Offline RandomTiger

  • Senior Member
  • 211
How do you get it to say WHEE! in that bit on the left?
Is FS2 done in directX5?
Its so different to 8 I havent managed to get a handle on it yet.

 

Offline Darkage

  • CRAZY RENDER RABBIT
  • 211
Quote
Originally posted by RandomTiger
How do you get it to say WHEE! in that bit on the left?
Is FS2 done in directX5?
Its so different to 8 I havent managed to get a handle on it yet.



Only admins can put WHEE ! there.
And that also counts for avatars.

continue topic.
[email protected]
Returned from the dead.

 

Offline RandomTiger

  • Senior Member
  • 211
3!!!!!!!!!!!!!

 

Offline Darkage

  • CRAZY RENDER RABBIT
  • 211
Quote
Originally posted by RandomTiger
3!!!!!!!!!!!!!


What 3?
[email protected]
Returned from the dead.

 

Offline RandomTiger

  • Senior Member
  • 211
Does anyone know where the launcher leaves its info?

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
in the registry, I think Dnet had a list of all of it and were it all was and what it did
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline IceFire

  • GTVI Section 3
  • 212
    • http://www.3dap.com/hlp/hosted/ce
- IceFire
BlackWater Ops, Cold Element
"Burn the land, boil the sea, you can't take the sky from me..."

 
In the graphics initialization code there's a call that grabs the string from the registry containing the info.