Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Tuners
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    2. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    3. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    4. Bugs*

    1. Grand Theft Auto Series

      1. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    6. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

      1. GTANet 20th Anniversary
    2. Support

    3. Suggestions

rwd3d9 - D3D9 extension for RW


The Hero
 Share

Recommended Posts

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

Edited by The Hero
Link to comment
Share on other sites

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.

Edited by ThirteenAG
  • Like 6
Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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.

  • Like 2
Link to comment
Share on other sites

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

Link to comment
Share on other sites

I have posted about some bad side-effects when using this wrapper (http://gtaforums.com/topic/819550-sharptrails/?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.
Link to comment
Share on other sites

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

Edited by Marsi4eg
Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 4 months later...

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.

Link to comment
Share on other sites

Yeah, check this out:

34igzZe.png vhDi209.png

Shader Model 6, DirectX 12, power of clouds, everything is possible with that thing.

Link to comment
Share on other sites

VC on DX12? Wut?!

Link to comment
Share on other sites

VC on DX12? Wut?!

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

Link to comment
Share on other sites

No opengl tho

Link to comment
Share on other sites

 

VC on DX12? Wut?!

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

 

lol, it'd be so much better on OpenMantulkanX.

  • Like 1
Link to comment
Share on other sites

seems like link to binary zip is broken

and also in sharptrails topic

Edited by Marsi4eg
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Transparent menu with blur: https://bitbucket.org/ThirteenAG/iii.vc.sa.transparentmenu/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

Edited by ThirteenAG
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

167b6facb95619c3ccc3047b475f957d.jpg

Link to comment
Share on other sites

  • 2 weeks later...

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.

Edited by ThirteenAG
  • Like 2
Link to comment
Share on other sites

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

Edited by Marsi4eg
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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

Edited by Inadequate
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Good, reuploading it now.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.