[Alpha|Test] SA Gfx
Posted 06 October 2007 - 04:52 PM
Read the included readme.
If your computer nags at you about missing "d3dx9_31", be sure you are using the latest version of DirectX. If it still nags, use this;
shader model 2a version (use if your card supports shader model 2a, or above)
shader model 2.0 version (Only use if your card does not support shader models higher than 2.0)
Source (Only for 2a version):
sagfx01_sdk.rar - shader 2a
Source requires renderware graphics sdk to re-compile. Was built against rw 22.214.171.124 (It also works if you compile against the 3.7 sdk thats floating around, since only the headers are used).
More details are in this post
Legacy (outdated) stuff;
sa_vehgfx oct 2007 (pre-shaders)
DDS and Cubemap Stuff
DDS Convertor 2.1
Nvidia DDS Photoshop Plugins
Cubemap Explanation here and here
Paul Debevec Light Probe Gallery (contains cube images in cross format which need to be converted to work properly)
Cubemap gallery (I used the "Arch" cubemap on this page for the first version(s) of this gfx mod)
Ati CubeMapGen (Clean up, Convert, Blur cubemaps, etc)
Creating a cubemap in 3dsMax - my own tutorial!
Brief normal map info;
Here's an explanation of how a normal map is used, and tips for making an effective one:
Old stuff from here down.
This post is NOT for VC, it is for SA. It does NOT concern realtime reflections.
Due to a misunderstanding, i'm releasing this a bit sooner than i had planned, but it's a significantly improved graphics hack-thingy for SA.
READ the readme. I only tested this on a cracked, american 1.0 exe.
You may not redistribute, or re-release the file(s) in any way. Infact, if your ideas involve more than linking to this post, i don't approve it.
There are 2 textures you need to concern yourself with;
Cubemap2.dds, will be used in every vehicle material that uses those goddamn uv2-reflections, with the "xvehicleenv128" image.
Cubemap.dds, will replace any other image that is used as a reflection map on the vehicles, most notably "vehicleenvmap128"
For consistency sake, both images are identical.
Feel free to replace these textures at will, infact i encourage it (please share your results!). These images were used mainly as a test for me, and while they are ok, i know much better results can be achieved.
Save your cubemaps as DXT1 compressed cubemaps, no alpha channel (or 1-bit if that's your only option), and no mipmaps.
Screenshots, showing both cubemap reflections and improved spec lighting:
It replaces the textures vehicles use for reflections, with cubemaps. This could be done via a txd edit, but there is some work that needs to be done in memory to get the images to display correctly. and there isn't a txd tool out at the moment, that can import cubemaps, so this will have to do (REspawn's does import .dds files, but it is not importing cubemaps correctly at the moment).
The lighting asi file works the same way as its VC counterpart, where all the lights in the scene cast accurate spec, and not just the sunlight. The effect is mainly noticeable (obviously) at night, but i have noticed some occasional weirdness where only certain parts of a vehicle will get spec; say the bonnet and the boot, but NOT the doors, despite using the same material. i have no clue why this happens (besides the complete f*ckhole that is the SA rendering pipeline), and it isn't consistent. If you don't like the lighting, or it seems glitchy, simply delete the lighting asi file.
Posted 06 October 2007 - 06:56 PM
EU 1.0 .exe here.
Posted 06 October 2007 - 08:44 PM
got v1.0 us exe with various patches
does not affect framerate, but it has a problem running in wine on Fedora Core
Posted 06 October 2007 - 11:16 PM Edited by ParoXum, 06 October 2007 - 11:19 PM.
For the moment, here's a picture so unaware people can see how it looks on a default SA car :
Posted 06 October 2007 - 11:57 PM
this download makes this?
Posted 07 October 2007 - 12:38 AM
I told you in the other topic, the mirror system in SA cannot be used on cars. yes those reflections are real time, but there is no way to transfer it to vehicles. the game simply doesn't work that way. we would have done it already if it was possible.
As of right now, there is no way to get real reflections on cars, in SA.
@ parox - thanks for the feedback. lemme know when you get one of those hdri images converted, i'm curious to see how that would look..
Posted 07 October 2007 - 01:25 AM
I've an ATI Radeon 9200 SE, you think it'll not work correctly?
Posted 07 October 2007 - 01:30 AM
Posted 07 October 2007 - 07:36 AM Edited by Cursed, 07 October 2007 - 07:43 AM.
Posted 07 October 2007 - 08:38 AM
And for the GFX card problems, unlike VC, (method dexx just re-explained that was *realtime), is not present. Here the thing i like is it's nearly the same process for rendering as my 3dsmax refmaps i see. So, as i said, great, great addition to the game.
Remember i have an ATi x1800
Posted 07 October 2007 - 08:40 AM
Posted 07 October 2007 - 10:14 AM Edited by ParoXum, 07 October 2007 - 10:17 AM.
Here is the fair refmap :
Always hard to speak about someting realtime with pics.
Here are the dds files :
I might do more if i find maps that looks better ingame..
@DexX i tried them at full res (2052*768pixel dds map) but it was hardly playable. So i just followed your example doing 128*128. Although the game is really slowed down when you have more than 5 cars on screen. Is there any optimisation possible on the code ?
Posted 07 October 2007 - 10:30 AM
Posted 07 October 2007 - 10:59 AM
Posted 07 October 2007 - 11:05 AM
Posted 07 October 2007 - 02:06 PM
Now to just work out the offsets for us euros
ParoXum's "Fair" Cubemap.
I'll see what I can dig up .
Posted 07 October 2007 - 02:35 PM Edited by Cursed, 07 October 2007 - 02:45 PM.
Posted 07 October 2007 - 05:45 PM
Posted 07 October 2007 - 08:01 PM
|QUOTE (ParoXum @ Oct 7 2007, 03:38)|
|Here the thing i like is it's nearly the same process for rendering as my 3dsmax refmaps i see.|
hmm, i'm curious, do you use refmaps on any of your buildings ? i can put cubemaps on static objects too.
The cubemaps you uploaded aren't actually in cubemap format, they're just 2d images with a 6:1 image width/height ratio. I re-saved them in photoshop so you can note the differences;
I like the forest one the best.
About the slowness, try the game without the speclighting asi file. I don't get any noticeable slowdown at all, with just the cubemap on, but i do get some with the spec lighting. Kind of a shame really, the lighting took far more effort to get working right >_<
@ Everyone: According to the rules of this site, we cannot give out links to exe's, as that would be considered warez. Plus what SteaVor said.
Oh and yes, i will try to support more exe's in the next release.
Posted 07 October 2007 - 08:54 PM
|QUOTE (DexX @ Oct 7 2007, 22:01)|
| The cubemaps you uploaded aren't actually in cubemap format, they're just 2d images with a 6:1 image width/height ratio. I re-saved them in photoshop so you can note the differences;|
I like the forest one the best.
Oh, sorry didn't knew i had to enable cubemap since it was 2D when i opened them. Does it change anything rendering wise ?
| hmm, i'm curious, do you use refmaps on any of your buildings ? i can put cubemaps on static objects too.|
I used to, but not using vehicle128thingy. So, i have no idea wether it could work or not, sure thing it would rox if it was working on building, letting us do skyscrapper huge reflective glasses.
Posted 07 October 2007 - 09:26 PM
|Does it change anything rendering wise ?|
Yes, it changes how Rw handles the image. If correctly saved as a cubemap, the image will be wrapped around the vehicle, as if it were actually in the environment where the image was generated.
Rw only does some of the work though, the texture handling. my cubemap asi handles the transforms so the image is projected correctly.
original forest cubemap:
correctly-saved forest cubemap:
Posted 08 October 2007 - 10:56 PM
the game would leave most real.
if to obtain to make this order link to me for download please!
Posted 09 October 2007 - 10:17 PM
Dexx: Do you know if there is any way to sync the cubemap with zone.dat or one of those zones file in order to load a specific cubemap in a specific zone? like loading forest cubemap when you're in forest, or a city-ish when in city, etc.
Posted 11 October 2007 - 01:24 AM Edited by JP3, 11 October 2007 - 01:27 AM.
I wait to obtain.
I discovered some things!
Posted 11 October 2007 - 03:18 AM
Posted 11 October 2007 - 07:43 PM
|QUOTE (Jost_Vice @ Oct 9 2007, 17:17)|
|Dexx: Do you know if there is any way to sync the cubemap with zone.dat or one of those zones file in order to load a specific cubemap in a specific zone?|
i'm pretty sure that's possible, although i hadn't thought of doing it that way. if there's another issue with compatibility like in the VC version i might revisit that idea.
| I am working in the effect mirror for cars.|
I wait to obtain.
I discovered some things!
and what did you discover ?
|Looking very nice, now all thats left is to implement bump mapping|
harder than it sounds. reflection mods don't take as much effort, since the code for them already exists. me and a friend got bump mapping (NOT normal mapping!) to work on vehicles in VC, but it just used the same texture for every vehicle. it was a hack and didn't look that good. i don't think i could implement proper bump mapping before gta4 is out.
Posted 11 October 2007 - 09:26 PM Edited by _6mik_, 11 October 2007 - 09:29 PM.
here is the screens of somebody
and here is MY screens
So i have a problem with reflections, do you where the problem might come from please ?
i have your last fixed cubemap with fair reflection...
Posted 12 October 2007 - 02:22 PM
Posted 13 October 2007 - 11:59 PM
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users