Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by Grant. 02/24/26 22:21
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 5,706 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how do i... #140994
07/13/07 19:54
07/13/07 19:54
Joined: Sep 2005
Posts: 508
Texas
not_me Offline OP
User
not_me  Offline OP
User

Joined: Sep 2005
Posts: 508
Texas
how do i add a material to a block? i see that theres an area to do it but for things like normal maps isnt an actual normal map(skin2) required for it to work properly.


-Initiate Games
-Level designer

http://www.sckratchmagazine.com
Re: how do i... [Re: not_me] #140995
07/13/07 20:26
07/13/07 20:26
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
It's quite normal that you need a normal map which you extract from your original texture map . In your shader you need a second sampler like you mentioned which should have the same name as the normal map you extracted.
For adding a material to a block or sort like, you can use this simple code:
Code:

string NorMapShader = <your_effect.fx>;

material NM
{
flags = tangent; // important when dealing with normalmapping
effect = NorMapShader; // The effect file containing the vertex shader, pixel shader and technique.
}
action shader
{
...
my.material = NM;
...
}



It's as easy as that ^^

Cheers

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB
Re: how do i... [Re: frazzle] #140996
07/16/07 06:04
07/16/07 06:04
Joined: Sep 2005
Posts: 508
Texas
not_me Offline OP
User
not_me  Offline OP
User

Joined: Sep 2005
Posts: 508
Texas
thanks


-Initiate Games
-Level designer

http://www.sckratchmagazine.com

Moderated by  Blink, Hummel, Superku 

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