Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: ##UnknownPlayer## on July 27, 2002, 08:37:28 am

Title: Writing the D3D update
Post by: ##UnknownPlayer## on July 27, 2002, 08:37:28 am
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.
Title: Writing the D3D update
Post by: RandomTiger on July 27, 2002, 10:09:30 pm
What about getting rid of direct draw?
Title: Writing the D3D update
Post by: daveb on July 27, 2002, 10:23:17 pm
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.
Title: Writing the D3D update
Post by: RandomTiger on July 27, 2002, 10:50:48 pm
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.
Title: Writing the D3D update
Post by: Darkage on July 28, 2002, 01:15:47 pm
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.
Title: Writing the D3D update
Post by: RandomTiger on July 28, 2002, 04:38:01 pm
3!!!!!!!!!!!!!
Title: Writing the D3D update
Post by: Darkage on July 28, 2002, 04:51:29 pm
Quote
Originally posted by RandomTiger
3!!!!!!!!!!!!!


What 3?
Title: Writing the D3D update
Post by: RandomTiger on July 28, 2002, 07:25:56 pm
Does anyone know where the launcher leaves its info?
Title: Writing the D3D update
Post by: Bobboau on July 28, 2002, 07:52:21 pm
in the registry, I think Dnet had a list of all of it and were it all was and what it did
Title: Writing the D3D update
Post by: IceFire on July 28, 2002, 11:17:08 pm
Huzza!

http://www.descent-freespace.com/ddn/kb/registry/
Title: Writing the D3D update
Post by: ##UnknownPlayer## on July 29, 2002, 02:15:52 am
In the graphics initialization code there's a call that grabs the string from the registry containing the info.