scene_files
This is an old revision of the document!
Create a new named scene
scene “name”
Create a new named camera
camera “name” perspective fovyDegrees[float] zmin[float] zmax[float] eye[vec3] target[vec3] up[vec3]
Create a new point light
light point position[vec3] size[float] energy[float]
Or a new directional light
sun dirTo[vec3] energy[float]
Sphere
sphere position[vec3] radius[float] “material name”
Materials
newmtl “material name”
usemtl “material name”
Ka color[vec3]
ambient reflectivityKd color[vec3]
diffuse reflectivityKs color[vec3]
specular reflectivityTf color[vec3]
transmission filterillum model[int]
illumination model [0 to 10]d factor[float]
dissolve factorNs exponent[float]
specular exponent or shininessNi ior[float]
index of refractionmap_Ka filename[string]
map_Kd filename[string]
map_Ks filename[string]
map_Ns filename[string]
map_d filename[string]
disp filename[string]
not usedbump filename[string]
not useddecal filename[string]
not usednormal filename[string]
(V+(1,1,1))/2 encoded normal maprefl -type sphere filename[string]
refl -type cyl filename[string]
refl -type cube posx[string] negx[string] posy[string] negy[string] posz[string] negz[string]
refl -type cube_top pos_y[string]
refl -type cube_bottom neg_y[string]
refl -type cube_front pos_z[string]
refl -type cube_back neg_z[string]
refl -type cube_left neg_x[string]
refl -type cube_right pos_x[string]
PBior indexOfRefraction[float]
specular layer index of refractionPBk extinctionCoefficient[float]
specular layer extinction coefficient (for metals)PBKsm roughness[float]
specular layer roughnessPBKdm roughness[float]
diffuse layer roughnessPBillum model[int]
Physically Based Rendering illumination model- 0 Physically Based Rendering mode
- 1 Normals only (V+(1,1,1))/2
- 2 Ka only
- 3 Kd only
- 4 Ks only
- 5 ior only
- 6 k only
- 7 diffuse roughness only
- 8 specular roughness only
- 9 map_Ka only
- 10 map_Kd only
- 11 map_Ks only
scene_files.1477968500.txt.gz · Last modified: 2016/10/31 21:48 by 47.200.224.152