User Tools

Site Tools


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 reflectivity
  • Kd color[vec3] diffuse reflectivity
  • Ks color[vec3] specular reflectivity
  • Tf color[vec3] transmission filter
  • illum model[int] illumination model [0 to 10]
  • d factor[float] dissolve factor
  • Ns exponent[float] specular exponent or shininess
  • Ni ior[float] index of refraction
  • map_Ka filename[string]
  • map_Kd filename[string]
  • map_Ks filename[string]
  • map_Ns filename[string]
  • map_d filename[string]
  • disp filename[string] not used
  • bump filename[string] not used
  • decal filename[string] not used
  • normal filename[string] (V+(1,1,1))/2 encoded normal map
  • refl -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 refraction
  • PBk extinctionCoefficient[float] specular layer extinction coefficient (for metals)
  • PBKsm roughness[float] specular layer roughness
  • PBKdm roughness[float] diffuse layer roughness
  • PBillum 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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki