Post Reply 
 
Thread Rating:
  • 43 Votes - 2.93 Average
  • 1
  • 2
  • 3
  • 4
  • 5
General idea
Author Message
mudlord Offline
not banned.
*****

Posts: 507
Joined: Feb 2009
Reputation: 5
Post: #1
General idea
The game plan, at the moment:

* Wrap DirectDraw 2,3,4 and 7 to Direct3D9. Games that use these renderers have the most issues under Windows 7 and Vista.

This will involve rendering to textures or surfaces. Ultimately, at this stage, I just want to compile a wrapper DLL that wraps *right* before we replace the rendering functionality using D3D9. Saves a lot of hassle, since there is a *HUGE* amount of DirectDraw functions that need to be replicated properly. Fortunately, we don't need to reinvent the wheel too much since Wine luckily has most of the research done.

From there, I can imagine a lot of nice things. Shaders in ZSNES, Kega Fusion, Regen & SNESGT are already some of my ideas.
10-24-2009 09:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,491
Joined: Mar 2008
Reputation: 16
Post: #2
RE: General idea
[Image: BRILLIANT.jpg]

10-24-2009 09:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Iconoclast Offline
Super Moderator
******

Posts: 97
Joined: Mar 2008
Reputation: 4
Post: #3
RE: General idea
who the fuck is that?

oops.
10-25-2009 02:29 PM
Find all posts by this user Quote this message in a reply
mudlord Offline
not banned.
*****

Posts: 507
Joined: Feb 2009
Reputation: 5
Post: #4
RE: General idea
hah, dunno Tongue.

But yeh, I came up with some more ideas.

Would be nice to wrap D3D8 to D3D9, in the same DLL. Entry points won't be a issue, due to the different functions for creating a DirectDraw/Direct3D context.

Least it will also allow shaders in Jabo's plugin, too.
10-26-2009 04:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
spacy51 Offline
VBA-M Developer
*******

Posts: 451
Joined: Mar 2008
Reputation: 3
Post: #5
RE: General idea
I have an idea:
You should look at the Wine source code. They probably already have some kind of DirectDraw code you could modify or backport to Windows.

http://www.winehq.org/
11-04-2009 11:02 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,491
Joined: Mar 2008
Reputation: 16
Post: #6
RE: General idea
**** wine.

we want a wrapper, not an emulator.

11-05-2009 10:04 AM
Visit this user's website Find all posts by this user Quote this message in a reply
I.S.T. Offline
Grimlock will eat you now.
*****

Posts: 151
Joined: Mar 2008
Reputation: 1
Post: #7
RE: General idea
It isn't an emulator.
11-05-2009 10:18 AM
Find all posts by this user Quote this message in a reply
mudlord Offline
not banned.
*****

Posts: 507
Joined: Feb 2009
Reputation: 5
Post: #8
RE: General idea
@Spacy: Already done so. Its a goldmine. Saves my skin, so I know exactly how much to wrap and the arguments some DirectDraw functions expect. And the API interface.

Which means only Ddraw 2/3/4/7 need to be wrapped. DirectDraw 7 only adds Clipper* functionality, everything else can be reused, including pallete usage.

Only issue is: how exactly to define DirectDrawCreate(). From there, I need to spawn the renderer and the different DirectDraw interfaces depending on the GUID used when creating the instance.
(11-05-2009 10:18 AM)I.S.T. Wrote:  It isn't an emulator.

But it emulates too much. It wraps DirectDraw -> Direct3D -> OpenGL.

That is pointless to port.
(This post was last modified: 11-05-2009 01:03 PM by mudlord.)
11-05-2009 01:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,491
Joined: Mar 2008
Reputation: 16
Post: #9
RE: General idea
WINE is an emulator, written by faggots who want to be sophisticated and claim it isn't.

Read the definition of emulation in the dictionary. IT IS an emulator.

11-05-2009 06:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
spacy51 Offline
VBA-M Developer
*******

Posts: 451
Joined: Mar 2008
Reputation: 3
Post: #10
RE: General idea
@Squall: I did not mean to use Wine 1:1 but to use it as a code base. It's open source, after all.
You should also restrict your offending use of language. It creates a bad athmosphere.
(This post was last modified: 11-06-2009 03:19 AM by spacy51.)
11-06-2009 03:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,491
Joined: Mar 2008
Reputation: 16
Post: #11
RE: General idea
I'm adopting the snes/zsnes mentality.

IE, i don't give a shit.

11-06-2009 06:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply
I.S.T. Offline
Grimlock will eat you now.
*****

Posts: 151
Joined: Mar 2008
Reputation: 1
Post: #12
RE: General idea
(11-05-2009 06:38 PM)Squall Leonhart Wrote:  faggots

Msn_rolleyes
11-07-2009 01:20 AM
Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,491
Joined: Mar 2008
Reputation: 16
Post: #13
RE: General idea
Go cry to the PC pussies.

11-07-2009 04:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
I.S.T. Offline
Grimlock will eat you now.
*****

Posts: 151
Joined: Mar 2008
Reputation: 1
Post: #14
RE: General idea
Not only is your taste in gaming poor(given your name and avatar), but apparently your deductive and language faculties are severely lacking as well. Why don't you wipe the Vegemite and Kangaroo shit off your eyes and try looking at this thread again. You'll clearly see that you shouldn't argue with your superiors.

Irony intended. Wink
11-07-2009 10:06 AM
Find all posts by this user Quote this message in a reply
mudlord Offline
not banned.
*****

Posts: 507
Joined: Feb 2009
Reputation: 5
Post: #15
RE: General idea
Squall, Spacy is right. Please don't wreck a nice thread.

Spacy is awesome suggesting the Wine code as a base, for adding shaders/2xSai/HQ2X/bloom to nuclear blasts to Starcraft as well as fixing some major game bugs with pallete usage. It saves a immense amount of work working out DDRAW.DLL.

And also, why reinvent the wheel?
11-07-2009 10:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,491
Joined: Mar 2008
Reputation: 16
Post: #16
RE: General idea
(11-07-2009 10:06 AM)I.S.T. Wrote:  Not only is your taste in gaming poor(given your name and avatar), but apparently your deductive and language faculties are severely lacking as well. Why don't you wipe the Vegemite and Kangaroo shit off your eyes and try looking at this thread again. You'll clearly see that you shouldn't argue with your superiors.

Irony intended. Wink

I R board creator, now bow down to me biatch Big Grin

anyhoo....

What did you learn by RE' starcraft mudlord?

(This post was last modified: 11-07-2009 07:06 PM by Squall Leonhart.)
11-07-2009 06:57 PM
Visit this user's website Find all posts by this user Quote this message in a reply
deniseweird Offline
Junior Member
**

Posts: 35
Joined: Mar 2008
Reputation: 0
Post: #17
RE: General idea
(10-24-2009 09:39 AM)mudlord Wrote:  The game plan, at the moment:

* Wrap DirectDraw 2,3,4 and 7 to Direct3D9. Games that use these renderers have the most issues under Windows 7 and Vista.

This will involve rendering to textures or surfaces. Ultimately, at this stage, I just want to compile a wrapper DLL that wraps *right* before we replace the rendering functionality using D3D9. Saves a lot of hassle, since there is a *HUGE* amount of DirectDraw functions that need to be replicated properly. Fortunately, we don't need to reinvent the wheel too much since Wine luckily has most of the research done.

From there, I can imagine a lot of nice things. Shaders in ZSNES, Kega Fusion, Regen & SNESGT are already some of my ideas.

Awesome idea! Though why settle on D3D9? It sounds a bit counterproductive to me when we have D3D11. I don't know too much about the technical differences between the versions however, so it may be better, but I would think D3D11 is more fitting since it's a newer version..
11-08-2009 03:44 AM
Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,491
Joined: Mar 2008
Reputation: 16
Post: #18
RE: General idea
Direct3D 11 without tessellation is pretty much D3D9/10 with additional multithreading.

Besides, D3D10 and 11 are just supersets, as in they make use of the functions of D3D9 and just add their own additional features...

so even if we used D3D11 on paper, in code it'd just be D3D9 features used. (atleast thats the basic gist of it)

11-08-2009 08:16 AM
Visit this user's website Find all posts by this user Quote this message in a reply
mudlord Offline
not banned.
*****

Posts: 507
Joined: Feb 2009
Reputation: 5
Post: #19
RE: General idea
[/quote]

I R board creator, now bow down to me biatch Big Grin

anyhoo....

What did you learn by RE' starcraft mudlord?
[/quote]


Blizzard abuses DirectDraw 2.x like crazy :S. Why can't they do things cleanly? It makes things much harder than they already are.
11-08-2009 12:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,491
Joined: Mar 2008
Reputation: 16
Post: #20
RE: General idea
sounds painful lol.

11-09-2009 01:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: