Quantcast

Jump to content

» «
Photo

rwd3d9 - D3D9 extension for RW

III Released VC Released
40 replies to this topic
The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Most Helpful Modding 2016 [Honorable mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#1

Posted 11 September 2015 - 10:34 AM Edited by The Hero, 30 November 2015 - 06:53 AM.

rwd3d9 is a library you can link your III and VC asi-mods against to get access to d3d9 features, namely vertex- and pixel-shaders.
You still need a d3d8 to 9 wrapper that supports QueryInterface to get the d3d9 device (d3d8to9 recommended),
so why should you use it?
Simple, RW keeps a cache of pixel- and vertex-shaders that has to be kept up to date.
When more than one mod wants to mess with the cache it will very likely become inconsistent and bad things will happen.
So the idea is to have only one mod (this one) handle the cache and have all others dynamically link against it.

Just include rwd3d9.h, link against rwd3d9.lib and put rwd3d9.dll into your game's main directory.
When the dll is loaded it will hook all necessary places by itself. You can use it with asis that are loaded early (e.g. by the ultimate asi loader) or late (e.g. by the built-in mss32 loader).
The library is very small currently because I just implemented what I needed for SkyGfx and sharptrails.
If you make changes, please make a pull request or something so we won't have many incompatible versions.

Currently supported GTA versions: 1.0, 1.1, steam III, 1.0, 1.1, steam VC
Credits: steam III, 1.0 and steam VC support by Sergeanur
 
repo:
http://tohjo.eu/aap/rwd3d9
 
binaries:
http://aap.papnet.eu/gta_/rwd3d9.zip
  • Jestic, Blackbird88, ThirteenAG and 19 others like this

ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#2

Posted 11 September 2015 - 10:50 AM Edited by ThirteenAG, 11 September 2015 - 10:52 AM.

Note that ASI Loader contains d3d8to9, in order to use it you need to download latest version here, rename the dll to d3d8.dll and in scripts\global.ini change UseD3D8to9=0 to UseD3D8to9=1.
  • Blackbird88, Shagg_E, spartaque12 and 1 other like this

Alpha Ice
  • Alpha Ice

    Don't f*ck with me.

  • Members
  • Joined: 03 Aug 2015
  • Ireland

#3

Posted 12 September 2015 - 03:04 PM

I am sorry but I don't really get what this dll does...

Is it capable of linking two dll's with the same name so that the game can read them both ?


The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Most Helpful Modding 2016 [Honorable mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#4

Posted 12 September 2015 - 04:21 PM

No, it's an extension of the RenderWare engine of III and VC so that you can use d3d9 pixel and vertex shaders. If you have any mods that use it you need rwd3d9.dll, if you write your own asi you have to link against rwd3d9.lib.

  • Blackbird88 and Alpha Ice like this

Marsi4eg
  • Marsi4eg

  • Members
  • Joined: 08 Dec 2005
  • Ukraine

#5

Posted 12 September 2015 - 07:47 PM

I have posted about some bad side-effects when using this wrapper (http://gtaforums.com...s/?p=1067966845)
Will it be fixed in future or left 'as is'?

The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Most Helpful Modding 2016 [Honorable mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#6

Posted 12 September 2015 - 07:52 PM

I don't know. I don't maintain d3d8to9, that would be crosire: https://github.com/crosire/d3d8to9


ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#7

Posted 12 September 2015 - 08:12 PM

I have posted about some bad side-effects when using this wrapper (http://gtaforums.com...s/?p=1067966845)
Will it be fixed in future or left 'as is'?

Gamepad works fine for me with wrapper, so maybe the problem is in something else.

Marsi4eg
  • Marsi4eg

  • Members
  • Joined: 08 Dec 2005
  • Ukraine

#8

Posted 12 September 2015 - 08:25 PM Edited by Marsi4eg, 15 September 2015 - 05:55 PM.

Gamepad works fine for me with wrapper, so maybe the problem is in something else.

I use Silent's Ginput and xbox360 controller (if this is useful info) and when I move thumbstick to run - actor just twitches (don't know if it's the right word ...eh). Looks like something blocks input.
(in original: "актор лишь дергается пытаясь идти, будто чтото блокирует ввод" sorry but I know TAG will understand)


But what about minimizing?

____

I have to add that input problem exists only in VC, all ok in III
but both games cannot minimize

_____
edited again, you can laugh at me because it was outdated ginput in my vc. shame shame shame. with current version of ginput all controls are ok

The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Most Helpful Modding 2016 [Honorable mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#9

Posted 19 September 2015 - 12:53 PM

New version got steam III, 1.1 and steam VC support by Sergeanur.

  • Blackbird88, Tomasak, Metalz and 1 other like this

The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Most Helpful Modding 2016 [Honorable mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#10

Posted 07 February 2016 - 08:47 PM

New version:

- added function RwD3D9SetIm2DPixelShader to override the Im2D pixel shader

It makes sense to put it here as sharptrails needs it, i have plans for SkyGFX as well (the code is actually already there, but the ini setting is undocumented :p), and ThirteenAG will use it for his widescreen fix too.

  • ThirteenAG, Tomasak, Claude_Lib and 3 others like this

ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#11

Posted 07 February 2016 - 09:43 PM

Yeah, check this out:
34igzZe.png vhDi209.png
Shader Model 6, DirectX 12, power of clouds, everything is possible with that thing.
  • The Hero, _CP_, Blackbird88 and 11 others like this

_CP_
  • _CP_

    Boss

  • Feroci
  • Joined: 27 Dec 2007
  • Poland
  • Most Helpful Modding 2016 [Runner-up]
    Best Vehicle 2016 [IVPack]
    Best Map 2013 "ViceCityStories PC Edition"

#12

Posted 07 February 2016 - 09:46 PM

VC on DX12? Wut?!

ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#13

Posted 07 February 2016 - 09:47 PM

VC on DX12? Wut?!

I meant DX13, sorry about the confusion. :orly:

  • Tomasak, Mega, Reyks and 1 other like this

Tomasak
  • Tomasak

  • The Yardies
  • Joined: 04 Jan 2009
  • None
  • Worst Sheep 2017
    Spam Commando 2017
    Best Conversion 2016 [GTA: Underground] [Contribution]

#14

Posted 07 February 2016 - 09:56 PM

No opengl tho

Silent
  • Silent

    Chief Vision™ Alterer

  • GTA Mods Staff
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [Modding] 2016
    Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#15

Posted 07 February 2016 - 09:59 PM

VC on DX12? Wut?!

I meant DX13, sorry about the confusion. :orly:


lol, it'd be so much better on OpenMantulkanX.
  • BlackScout likes this

Marsi4eg
  • Marsi4eg

  • Members
  • Joined: 08 Dec 2005
  • Ukraine

#16

Posted 08 February 2016 - 11:14 AM Edited by Marsi4eg, 08 February 2016 - 11:17 AM.

seems like link to binary zip is broken

and also in sharptrails topic


The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Most Helpful Modding 2016 [Honorable mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#17

Posted 08 February 2016 - 03:22 PM

Yep, sorry. My internet connection is f*cked up since this morning, it's hardly working and I hope it'll get better soon.


ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#18

Posted 12 February 2016 - 02:49 PM Edited by ThirteenAG, 12 February 2016 - 03:02 PM.

Transparent menu with blur: https://bitbucket.or...tmenu/downloads
Uses a lot of stuff from skygfx, shader from DK's V Hud. Soon I'll remove the option from widescreen fix, for now just disable it and use this instead.
Works only with 1.0 exe, as always.
QOhosNP.png
  • The Hero, Blackbird88, Tomasak and 8 others like this

Tomasak
  • Tomasak

  • The Yardies
  • Joined: 04 Jan 2009
  • None
  • Worst Sheep 2017
    Spam Commando 2017
    Best Conversion 2016 [GTA: Underground] [Contribution]

#19

Posted 12 February 2016 - 03:27 PM

Could you please center map and legend in your WS Fix? This pic is perfect example :D

ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#20

Posted 12 February 2016 - 09:28 PM

Could you please center map and legend in your WS Fix? This pic is perfect example :D

Fine, but that's gonna cost ya some extra.
xKvRvUw.png
  • Blackbird88, Tomasak, Shagg_E and 6 others like this

Tomasak
  • Tomasak

  • The Yardies
  • Joined: 04 Jan 2009
  • None
  • Worst Sheep 2017
    Spam Commando 2017
    Best Conversion 2016 [GTA: Underground] [Contribution]

#21

Posted 12 February 2016 - 09:48 PM

167b6facb95619c3ccc3047b475f957d.jpg

  • Mega likes this

Inadequate
  • Inadequate

    Midnight Emulator

  • Members
  • Joined: 11 Apr 2012
  • None

#22

Posted 12 February 2016 - 10:09 PM

Looks gorgeous!


FMMZ
  • FMMZ

    Hoodlum

  • Members
  • Joined: 23 Mar 2013
  • None

#23

Posted 13 February 2016 - 02:50 AM

Oye pero eso si esta beautiful, i love it, it's perfect <3

ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#24

Posted 21 February 2016 - 10:08 PM Edited by ThirteenAG, 22 February 2016 - 11:13 AM.

Reuploaded transparent menu, trails on/off crash in vc should be fixed as well as rendering issue that happened sometimes.
UPD. And another crash fix, redownload.
  • Blackbird88 and Shagg_E like this

Marsi4eg
  • Marsi4eg

  • Members
  • Joined: 08 Dec 2005
  • Ukraine

#25

Posted 27 February 2016 - 07:12 PM Edited by Marsi4eg, 27 February 2016 - 07:13 PM.

Reuploaded transparent menu, trails on/off crash in vc should be fixed as well as rendering issue that happened sometimes.
UPD. And another crash fix, redownload.

I'm already afraid of reporting something.. but it still crashes if I disable trails, unpause, then pause and enable trails.

It doesn't crash if I disable-enable trails without unpausing. I also use next plugins: sharptrails, silentpatch, widescreen fix, skygfx, ginput, moneymessages, airtrains(for wrecking them) and project 2dfx


ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#26

Posted 27 February 2016 - 07:54 PM

I'm already afraid of reporting something.. but it still crashes if I disable trails, unpause, then pause and enable trails.
It doesn't crash if I disable-enable trails without unpausing. I also use next plugins: sharptrails, silentpatch, widescreen fix, skygfx, ginput, moneymessages, airtrains(for wrecking them) and project 2dfx

I thought I fixed that :( Guess not. I'll take a look again.

Inadequate
  • Inadequate

    Midnight Emulator

  • Members
  • Joined: 11 Apr 2012
  • None

#27

Posted 27 February 2016 - 07:57 PM Edited by Inadequate, 27 February 2016 - 08:26 PM.

I have a similiar issue with transparent menu, I get an unhandled exception on both games (III and VC). On SA not even work. Maybe I'm doing something wrong or I need something special?. I have Ultimate ASI Loader, rwd3d9.dll and d3d8.dll (both by The_Hero).

 

EDIT:

I uninstalled d3d8.dll by The_Hero, I downloaded latest Ultimate ASI Loader, set used3d8to9=1 on global.ini and still crashing on Vice City:

OxxCGM8.jpg


ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#28

Posted 28 February 2016 - 10:07 AM

Try this version for trails on/off crash: https://www.sendspace.com/file/k8j0he

@Inadequate this address I can reproduce by deleting rwd3d9.dll. Does all your mods that require it placed in the same folder? Upload a crashdump, let's see what it says.

Marsi4eg
  • Marsi4eg

  • Members
  • Joined: 08 Dec 2005
  • Ukraine

#29

Posted 28 February 2016 - 10:33 AM

Try this version for trails on/off crash: https://www.sendspace.com/file/k8j0he

Fixed. Thank you!


ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#30

Posted 28 February 2016 - 10:45 AM

Good, reuploading it now.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users