Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (85,239 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

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

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

    2. Site Suggestions

The Hero

rwd3d9 - D3D9 extension for RW

Recommended Posts

The Hero

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

Share this post


Link to post
Share on other sites
ThirteenAG

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

Share this post


Link to post
Share on other sites
Alpha Ice

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 ?

Share this post


Link to post
Share on other sites
The Hero

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.

Share this post


Link to post
Share on other sites
Marsi4eg

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

Share this post


Link to post
Share on other sites
The Hero

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

Share this post


Link to post
Share on other sites
The Hero

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.

Share this post


Link to post
Share on other sites
ThirteenAG

Yeah, check this out:

34igzZe.png vhDi209.png

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

Share this post


Link to post
Share on other sites
_CP_

VC on DX12? Wut?!

Share this post


Link to post
Share on other sites
ThirteenAG

VC on DX12? Wut?!

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

Share this post


Link to post
Share on other sites
George Costanza

No opengl tho

Share this post


Link to post
Share on other sites
Silent

 

VC on DX12? Wut?!

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

 

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

Share this post


Link to post
Share on other sites
Marsi4eg

seems like link to binary zip is broken

and also in sharptrails topic

Edited by Marsi4eg

Share this post


Link to post
Share on other sites
The Hero

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

Share this post


Link to post
Share on other sites
ThirteenAG

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

Share this post


Link to post
Share on other sites
George Costanza

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

Share this post


Link to post
Share on other sites
ThirteenAG

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

Share this post


Link to post
Share on other sites
George Costanza

167b6facb95619c3ccc3047b475f957d.jpg

Share this post


Link to post
Share on other sites
Inadequate

Looks gorgeous!

Share this post


Link to post
Share on other sites
FMMZ

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

Share this post


Link to post
Share on other sites
ThirteenAG

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

Share this post


Link to post
Share on other sites
Marsi4eg

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

Share this post


Link to post
Share on other sites
ThirteenAG

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.

Share this post


Link to post
Share on other sites
Inadequate

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

Share this post


Link to post
Share on other sites
ThirteenAG

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.

Share this post


Link to post
Share on other sites
ThirteenAG

Good, reuploading it now.

Share this post


Link to post
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

×

Important Information

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