Remember Me
nav_l nav_r
3ds Max Viewport Shader
for San Andreas vehicles
Information Files
Author: DexX
Works with: GTA San Andreas 
Release/Version: 0.1
Status: Complete
Started on: 22 Dec 2009
Last Updated: 31 Dec 2009
Views: 17416
Type: Created from scratch
Rating: 3.7 (10 votes)
Please log in to rate this mod
From the readme:
Directx 9 Effect file, for real time previewing of San Andreas vehicle materials in the 3ds Max viewport. The purpose is to emulate San Andreas style material "blending" - reflection and specular levels, etc - Not carcols or other game data. The shader is for previewing purposes only - the data in this material cannot be exported separately.

This effect was developed and tested with Nvidia's FX Composer 1.8, and 3ds Max 2008 and 7 (using the Direct3d 9 drivers).
Works perfectly (for me) in max 2008. In max 7, the object the material is applied to is transparent, and "bool" variables will not have controls in the rollout.

Installation Instructions:
Extract the "GTADXMaterial" Folder somewhere on your system (preferably in your 3dsMax install, under "Maps").
Start 3dsMax and create a "DirectX Shader" material; - Discard old material.
Click on the button with the file path of the Default effect file, and navigate to the folder where you extracted the "GTADXMaterial".
Select the "sa_vehiclemat.fx" file and accept it.

Material properties:
Main Light (Directional): Light that this material will be rendered with. Must be a directional light.
Material Color: Diffuse Color of the material.
Material Ambient Amount (RwAmbient): Multiplier for the ambient effect of this material. Keep it low.
Material Diffuse Amount (RwDiffuse): Multiplier for the diffuse effect of this material. Keep it at one.
Material Alpha Amount (RwAlpha): Multiplier for the opacity of the material (1.0 is opaque, zero is transparent).
Enable Alpha: Enables Alpha Blending on diffuse texture and Material Alpha Amount (see above).
Specular Power (R*): Specular Intensity and "Power" (Glosslevel) for materials. Rockstar used one number for both! The specular intensity is equivalent to (Glosslevel / 100.0) in a standard material.
Enable Spec: Turns specular lighting on/off.
Reflection Color (R*): Color of reflections for Non-UV2 reflection maps. Best to keep it white.
Reflection Amount: Multiplier for overall intensity of reflections. Affects standard and UV2 reflections.
Diffuse Texture: Diffuse texture.
Diffuse Texture Map Channel: Map channel that the diffuse texture will use. Should always be channel 1.
Reflection Texture: Reflection texture. Needs to be 2d - not a cubemap.
Reflection Texture Map Channel: Map channel that UV2 reflections will use. Should always be channel 2.

Untextured: Material with no textures applied.
Untextured_Ref: Material with only a Non-UV2 reflection map.
Untextured_UV2Ref: Material with only a UV2 reflection map.
Textured: Material with only a Diffuse texture applied.
Textured_Reflective: Material with a Diffuse texture and a Non-UV2 reflection map.
Textured_Reflective_UV2: Material with a Diffuse texture and a UV2 reflection map.
The material will automatically use and blend the alpha of the Diffuse texture if "Enable Alpha" is checked.

As the name implies "UV2" reflections use the uv coordinates on map channel 2 (which YOU need to apply!). The "standard" non-uv2 reflections use projected uv coordinates (they're calculated interally) that cannot be tweaked. They also "tile" based on your viewing angle. This is intentional, as the game does the same thing. They're supposed to look broken because they are. Fixing this in my material will not fix how they look ingame.

Technical Info:
There is no actual "shader" present, only a collection of States that were extracted from the exe, and while running the game through PIX.


01 (current):
Fixed ambient amount from main light.
Tweaked some default values, removed extraneous comments from file

Initial release.

11:21 AM 12/23/2009
IncrediBoy2000 commented over 7 years ago:
why did you remove my mod. i did not steal it from anybody.
mystery-house commented over 7 years ago:
how to cretate create a "DirectX Shader" material ? there is no such thing in the menu .. + i'm a newbie starter with 3dmax.. yes i never used it in my entier life.. so how do i use do it? what do i need to do after i extracted and turned 3dmax on?
DexX commented over 8 years ago:
No. It requires use of the DirectX Shader material which gmax doesn't have as far as I know.
niko_crock commented over 8 years ago:
and for GMAX? :/
View All Comments | Add Comment

Discuss this mod at GTAForums
0 users viewing this mod (0 guests)
brick bit ?E?E bit bit
bit bit   bit bit