Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 5,207 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
2 simple shaders #323214
05/12/10 12:14
05/12/10 12:14
Joined: Mar 2006
Posts: 2,252
Hummel Offline OP
Expert
Hummel  Offline OP
Expert

Joined: Mar 2006
Posts: 2,252
William allowed me to contribute this shaders I´ve developed for him to the community.

First one blends 2 tiled textures (color entSkin1+2, normalmap+spec in alpha mtlSkin3+4) based on a grayscale map(mtlSkin1).
There is also a non-tiled colormap(mtlSkin2) wich influences the result dependend on the the blendmode you choose.
Take a look at the head of the fx file, there are several #define states wich can be changed.
A shadowmap(entSkin3) using a second uv-set is also supported.
and sunlight, local lights, fog



Download

The second one mainly shows the colormap of the model instead of 2 blended tilemaps.
It´s using a grayscale map as tiled color-detailmap and a tiled normal-detailmap(again with specmap in Alpha).

DOWNLOAD

Move camera with the mouse, zoom with mouse wheele, fix the camera position by pressing shift_r.
You can also reload the shader with L
after changing something.

For both shaders: you have to comment out #define USE_SHADOWMAP if you dont use one. Otherwise the sunlight will apear almost black!

Please take a look into the code files to find out what can be changed.
There are some comments.

regards


PS: don´t forget to thank William, he payed for this stuff wink

Re: 2 simple shaders [Re: Hummel] #323317
05/13/10 02:30
05/13/10 02:30
Joined: May 2010
Posts: 34
S
Scifi Offline
Newbie
Scifi  Offline
Newbie
S

Joined: May 2010
Posts: 34
(Sorry for my bad English)
Great, Thanks !
Is this shader run on Pixel Shader 2.0 Graphic Card ?

Re: 2 simple shaders [Re: Hummel] #323321
05/13/10 04:11
05/13/10 04:11
Joined: Jul 2007
Posts: 620
Turkey, Izmir
Emre Offline
User
Emre  Offline
User

Joined: Jul 2007
Posts: 620
Turkey, Izmir
Thanks for great contribution Hummel!
few questions;
-Free for commercial or noncommercial or credits or...?
-Which program do you use for normalmap?(crayzBump?Photoshop?)
-did you mean #defineUSE_GLOBALLIGHT, saying #define USE_SHADOWMAP ?
-how is fps with large terrain? (TextureBlending)
-and who is william? (also thanks to him)

and i wish to see more contribution from you. wink
Thanks again!

Re: 2 simple shaders [Re: Emre] #323343
05/13/10 11:57
05/13/10 11:57
Joined: Mar 2006
Posts: 2,252
Hummel Offline OP
Expert
Hummel  Offline OP
Expert

Joined: Mar 2006
Posts: 2,252
@Scifi:
if you comment out "#define USE_SHADERVERSION3" yes

@Emre:
-you can use it commercial, credits are not required but would be nice
-gimp
-meant USE_LIGHTMAP
-fps mainly depends on what you use and how much of the screen is covered by the model/terrain
-search in the User List for him (there is also an interview in the last AUM)

Re: 2 simple shaders [Re: Hummel] #323634
05/16/10 09:06
05/16/10 09:06
Joined: May 2010
Posts: 34
S
Scifi Offline
Newbie
Scifi  Offline
Newbie
S

Joined: May 2010
Posts: 34
Thanks Hummel, I'll use this. My GPU only Support SM2.0.


Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1