Forums   Articles   Events
SEARCH:
LOGIN:
Register Register Register Contact Us
Go Back   Game Artist Forums > Game Art > Support and Tech Discussion
Register FAQForum Rules Members List Calendar Mark Forums Read
Reply
 
LinkBack Thread Tools Display Modes
Old 08-05-2008, 04:18 AM   #1 (permalink)
Industry Artist
doylle's Avatar
Winner of Speed Texturing 2nd Place 
doylle's User Activity: 10/10
3,375 - 4,400
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, 465 views)
File Type: rar MaxViewportShader_1.1.rar (3.3 KB, 643 views)
File Type: rar MaxViewportShader_1.1_Max2009.rar (3.3 KB, 392 views)
File Type: zip MaxViewportShader_1.2XOLIUL.zip (4.4 KB, 434 views)
File Type: zip MaxViewportShader_1.1_Max2009fixed.zip (3.4 KB, 712 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
Old 08-05-2008, 04:26 AM   #2 (permalink)
Industry Artist
Talon's Avatar
Golden Star Winner of Speed Texturing 
Talon's User Activity: 10/10
3,798 - 1,396
Cool, man, I'll give it a go when I get home

Thanks for sharing.
__________________
> My Portfolio
> Supporter of good crits.
Talon is offline   Reply With Quote
The Following User Says Thank You to Talon For This Useful Post:
Old 10-05-2008, 01:50 PM   #3 (permalink)
Freelancer
Tiros's Avatar
Winner of Speed Texturing Winner of Speed Texturing Winner of Speed Texturing 1st Place 1st Place Winner of Speed Modeling Silver Star 
Tiros's User Activity: 10/10
2,472 - 819
That's a pretty neat shader you got there Doylle. As for the diffuse/specular I didn't really notice much of a change from the default one other than that yours had a bit more saturation to it.. though it really worked well with the normals

Havn't tried out any other maps yet tho.

Well, if one may request something.. then I guess it'd be being able to use DX display. But perhaps one can already? I've never actually used these shader thingies before

Cheers
Tiros is offline   Reply With Quote
The Following User Says Thank You to Tiros For This Useful Post:
Old 20-05-2008, 04:33 PM   #4 (permalink)
Freelancer
chris89's Avatar
Winner of Speed Modeling Winner of Speed Modeling 3rd Place 
chris89's User Activity: 0/10
1,034 - 111
does it support 32bit textures? or 24bit? iono why but some .tgas make the whole model go black
__________________
Quote:
Originally Posted by Armanguy View Post
ben, is it wierd that i want to make love to your model?
chris89 is offline   Reply With Quote
Old 20-05-2008, 11:47 PM   #5 (permalink)
Industry Artist
doylle's Avatar
Winner of Speed Texturing 2nd Place 
doylle's User Activity: 10/10
3,375 - 4,400
It does support alpha's, but only in the diffuse. There shouldn't be any harm in putting alpha's in other textures, although they will not do anything... Could you post a screenshot of the mesh and the current shader settings? That might help out a bit.

thanks for the heads up
__________________
Environment artist - EA dice
JeroenMaton.net
Sketchbook

doylle is offline   Reply With Quote
The Following User Says Thank You to doylle For This Useful Post:
Old 21-05-2008, 02:39 PM   #6 (permalink)
Freelancer
chris89's Avatar
Winner of Speed Modeling Winner of Speed Modeling 3rd Place 
chris89's User Activity: 0/10
1,034 - 111
It only happens with the diffuse, if i turn the checkerbox off everything shows correctly (without diffuse map ofcourse).
It seems to only have this issue with .TGA textures. jpg and dds works fine.

http://img519.imageshack.us/img519/8...board03oa3.jpg
__________________
Quote:
Originally Posted by Armanguy View Post
ben, is it wierd that i want to make love to your model?
chris89 is offline   Reply With Quote
Old 15-07-2008, 10:43 AM   #7 (permalink)
Senior Member
[hP]'s Avatar
Winner of Speed Texturing Winner of Speed Texturing 
[hP]'s User Activity: 1/10
549 - 480
Thank you very much for sharing this with us, this is definitely going to prove useful.
__________________
Hélder Pinto ~ Level Artist
[hP] is offline   Reply With Quote
Old 15-07-2008, 11:43 AM   #8 (permalink)
Industry Artist
doylle's Avatar
Winner of Speed Texturing 2nd Place 
doylle's User Activity: 10/10
3,375 - 4,400
cheers guys...

@ chris89: Is it possible that your tga is not a power of two? Appearently those don't work either, I found out by accident, and my mesh turned black too. So I think there's a chance that you have the same problem...
__________________
Environment artist - EA dice
JeroenMaton.net
Sketchbook

doylle is offline   Reply With Quote
Old 15-07-2008, 09:08 PM   #9 (permalink)
Senior Member
swag's Avatar
Winner of Speed Modeling 
swag's User Activity: 10/10
702 - 248
Hmmm, I am running max 9, but the shader gives me an error (i don't get any parameters). Anyone else have this problem?
swag is offline   Reply With Quote
Old 16-07-2008, 02:00 AM   #10 (permalink)
Industry Artist
doylle's Avatar
Winner of Speed Texturing 2nd Place 
doylle's User Activity: 10/10
3,375 - 4,400
Quote:
Originally Posted by swag View Post
Hmmm, I am running max 9, but the shader gives me an error (i don't get any parameters). Anyone else have this problem?
Does your graphics card support Vertex and pixelshader 3.0. If it doesn't then this is most likely going to give problems...
__________________
Environment artist - EA dice
JeroenMaton.net
Sketchbook

doylle is offline   Reply With Quote
The Following User Says Thank You to doylle For This Useful Post:
Reply

Bookmarks
Digg del.icio.us StumbleUpon Google
Thread Tools
Display Modes




All times are GMT -5. The time now is 11:58 AM.


Powered by vBulletin® Version 3.7.0 Beta 4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
Copyright © 2006-2008 Game-Artist.Net