View Single Post
Old 08-05-2008, 04:18 AM   #1 (permalink)
doylle
Industry Artist
doylle's Avatar
Winner of Speed Texturing 2nd Place 
doylle's User Activity: 10/10
3,366 - 529
3dsMax Viewport Shader


This is a viewport shader i've been working on in the last few weeks. Some people asked me if they could have it, so I made this version with the most common maps. There are a number of known issues i have yet to fix, like the number of lights, the specular/glos settings.

How to use:

Open your material library, and instead of choosing a Standard material, choose a DirectX Shader. Keep old material as submaterial. Now browse to your fx file and apply the material to your model. Make sure that you have two omnilights in your scene, and that you set both of the in the shader, if not rendering will not be correct.







Current Features
- Ambient Lighting
- Diffuse, Transparency, Specular, Gloss, 2 times Normal map, Self illumination and shadowmap.
- Sharpen option for diffuse texture
- Detail normal with adjustable strength
- Rim light effect
- Up to 3 point lights

To Do list:
- Add Cubemap Reflections
- Light distance attenuation
- ...

Suggestions and requests are very welcome,



Updates
July 15th, 2008 - added a newer version that supports up to 3 lights. The rest of the code has not been changed.

August 17, 2008 - Cleaned the pixelshader somewhat, added a few new features (Ambient light, Detail normal map, SI map mulitplier, sharpen feature for the diffuse map.

October 21, 2008 - Nathan "NFollmer" Folmer send me a tweaked version of V1.1 that works with max 2009, which is now added to the list.

November 26, 2008 - Xoliul edited my shader and made it perfect for cars and shiny objects. (it has cubemap reflections, and realtime shadows (for max2009))

December 11, 2008 - nfollmer fixed a small bug in version 1.1 for max 2009, It has been added to the list...


Samples
Attached Files
File Type: rar MaxViewportShader_1.0_3Lights.rar (3.0 KB, 448 views)
File Type: rar MaxViewportShader_1.1.rar (3.3 KB, 625 views)
File Type: rar MaxViewportShader_1.1_Max2009.rar (3.3 KB, 379 views)
File Type: zip MaxViewportShader_1.2XOLIUL.zip (4.4 KB, 412 views)
File Type: zip MaxViewportShader_1.1_Max2009fixed.zip (3.4 KB, 666 views)
__________________
Environment artist - EA dice
JeroenMaton.net
Sketchbook


Last edited by doylle; 10-12-2008 at 11:22 PM.
doylle is offline   Reply With Quote
The Following 48 Users Say Thank You to doylle For This Useful Post: