little help with carpaint
Posted: Mon Dec 22, 2008 10:18 pm
hi, i am working on carpaint material and i feel discomfort with one texture i used, it is just the noise for blending, would someone of you, who can write shader language, help me? i need something like attached noise texture to be generated with some given size..
here is the material:
thanks
c.
here is the material:
Code: Select all
<material>
<name>carpaint_phong_lowexp</name>
<phong>
<exponent>100</exponent>
<diffuse_albedo_spectrum>
<rgb>
<rgb>0.05 0.05 0.05</rgb>
<gamma>2.2</gamma>
</rgb>
</diffuse_albedo_spectrum>
<ior>1.9</ior>
</phong>
</material>
<material>
<name>carpaint_phong_hiexp</name>
<phong>
<exponent>100000</exponent>
<diffuse_albedo_spectrum>
<rgb>
<rgb>0.05 0.05 0.05</rgb>
<gamma>2.2</gamma>
</rgb>
</diffuse_albedo_spectrum>
<ior>2.4</ior>
</phong>
</material>
<material>
<name>carpaint_mix1</name>
<blend>
<a_name>carpaint_phong_lowexp</a_name>
<b_name>carpaint_phong_hiexp</b_name>
<blend_factor>0.5</blend_factor>
</blend>
</material>
<material>
<name>carpaint_phong_midexp</name>
<phong>
<exponent>2500</exponent>
<diffuse_albedo_spectrum>
<rgb>
<rgb>0.05 0.05 0.05</rgb>
<gamma>2.2</gamma>
</rgb>
</diffuse_albedo_spectrum>
<ior>1.4</ior>
</phong>
</material>
<material>
<name>carpaint_mix2</name>
<blend>
<a_name>carpaint_mix1</a_name>
<b_name>carpaint_phong_midexp</b_name>
<blend_factor>0.5</blend_factor>
</blend>
</material>
<material>
<name>carpaint_metalic_lowexp</name>
<phong>
<exponent>50</exponent>
<nk_data>nkdata\fesi2el2.nk</nk_data>
</phong>
</material>
<material>
<name>carpaint_mix3</name>
<blend>
<a_name>carpaint_mix2</a_name>
<b_name>carpaint_metalic_lowexp</b_name>
<blend_factor>0.07</blend_factor>
</blend>
</material>
<material>
<name>carpaint_metalic_hiexp</name>
<phong>
<exponent>300</exponent>
<nk_data>nkdata\Cu.nk</nk_data>
</phong>
</material>
<material>
<!--name>carpaint</name-->
<name>previewmaterial</name>
<blend>
<a_name>carpaint_mix3</a_name>
<b_name>carpaint_metalic_hiexp</b_name>
<blend_factor>0.07</blend_factor>
</blend>
<blend>
<texture>
<uv_set>default</uv_set>
<path>tex/carpaint_noise_blend-preview.jpg</path>
<exponent>2.2</exponent>
</texture>
</blend>
</material>c.