西昌.何雨锋
[specular 镜子] [Ambient 周围] [Diffuse 散播] [Emissive 放射性的] [Opacity 透明度] [Reduced 减少简化]
[Refraction 折射] [Scatter 分散] [Absorption 吸收]
问题:
PRT代表什么材质或技术?
int CreateMaterial(const char* matname = NULL);
//建立一种材质
int CreateLightMaterial(float red, float green, float blue, float alpha, float fAmbientLevel = 0.4f, float fSpecularLevel = 0.3f, char* name = NULL);
//建立灯光材质
int CreateMaterialQuick(float r, float g, float b, float a, const char* matname);
//建立快速材质
void SetSpecular(int iMaterialIndex, float r, float g, float b, float a);
//设置表面光滑度
void SetAmbient(int iMaterialIndex, float r, float g, float b, float a);
//设置周围度
void SetDiffuse(int iMaterialIndex, float r, float g, float b, float a);
//设置散播度
void SetEmissive(int iMaterialIndex, float r, float g, float b, float a);
//设置放射性
void SetPower(int iMaterialIndex, float power);
//设置威力
cTV_COLOR GetSpecular(int iMaterialIndex);
cTV_COLOR GetAmbient(int iMaterialIndex);
cTV_COLOR GetDiffuse(int iMaterialIndex);
cTV_COLOR GetEmissive(int iMaterialIndex);
float GetPower(int iMaterialIndex);
void DeleteAllMaterials();
void DeleteMaterial(int iMaterialIndex);
int GetMaterialByName(const char* matName);
int GetCount();
int GetActiveCount();
bool IsMaterialActive(int iMaterialIndex);
char* GetMaterialName(int iMaterialIndex);
void SetOpacity(int iMaterial, float fAlpha);
//设置材质的透明度
float GetOpacity(int iMaterial);
//得到材质透明度
// prt methods
void EnablePRTSubSurface(int iMaterial, bool bEnablePRTSubS);
//
void SetPRTSubSurfAbsorption(int iMaterial, float fRed, float fGreen, float fBlue);
//设置RTS吸收
void SetPRTSubSurfReducedScattering(int iMaterial, float fRed, float fGreen, float fBlue );
//设置PRT的减少与简化
void SetPRTSubSurfRefractionIndexRatio(int iMaterial, float fRatio);
//设置折射
int Duplicate(int iMaterial, char* sNewMaterialName = NULL);
//复制为一种新材质
void SetMaterialName(int iMaterialIndex, const char* sMaterialName);
//设置名称
};
本文介绍了PRT技术在材质渲染中的应用,包括如何通过不同的参数设置来调整材质的表现效果,如光滑度、周围度等,并详细解释了PRT技术的具体方法,如吸收、减少与简化散射及折射指数比等。
1660

被折叠的 条评论
为什么被折叠?



