download f.e. guitar's normal map shader, copy those fles to your project directory, include those files and write in enitity function: my.material = mat_nm;
Last edited by tompo; 06/17/0710:35.
Never say never.
Re: normal map shader
[Re: tompo]
#136789 06/17/0709:2406/17/0709:24
Quote: in entity function: my.material = some_material;
then in material effect = "some.fx";
download f.e. guitar's normal map shader, copy those fles to your project directory, include those files and write in enitity function: my.material = mat_nm;
I have downloaded guitar's normal map shader and copied these to the project directory. Since i am new to programming, i don't know where to add the above-mentioned scripts. Please provide some step-by-step instructions on adding the quoted scripts. I have imported the 3ds model into MED and assigned the skins. skin1 for diffuse texture and skin2 for normal map.
at the top of your main script add: include <NM.wdl>; (be sure that all files from guitar's zip you have in your working folder, or subfolder if you have created path to it)
then in entity's action write: my.material = mat_nm;
end of story BTW play with emissive in texture's setup if model will be to dark Good Luck
Never say never.
Re: normal map shader
[Re: tompo]
#136796 06/23/0707:1606/23/0707:16
Quote: at the top of your main script add: include <NM.wdl>; (be sure that all files from guitar's zip you have in your working folder, or subfolder if you have created path to it)
then in entity's action write: my.material = mat_nm;
I included <NM.wdl> in the main script, copied guitar's files to the working folder. You mentioned about entity's action. Is this the model which i have applied normal map to? If so, where should i add the script my.material = mat.nm; ? Excuse me for my poor scripting knowledge.