-
Notifications
You must be signed in to change notification settings - Fork 37
Scene Format
Volkan Ilbeyli edited this page Jul 7, 2018
·
2 revisions
VQEngine currently uses a custom scene file in an effort to data drive the scene initialization.
Formatting Rules
- all lowercase
-
//
starts a commetn
// Object initializations
// ---------------------------------------------------------------------------------------------------------------
// Transform : pos(3), rot(3:euler), scale(1:uniform|3:xyz)
// Camera : near far vfov pos(3:xyz) yaw pitch
// Light : [p]oint/[s]pot, color, shadowing? brightness, range/angle, pos(vec3), rot(X>Y>Z)
// BRDF :
// Phong :
// Object : transform, brdf/phong, mesh
// example:
object begin
transform 85 5 -30 30 120 0 20
mesh triangle
brdf begin
textures "" openart/190_norm.JPG
diffuse 0.24 0.74 0.74
roughness 0.4
metalness 0.9
brdf end
object end
// ---------------------------------------------------------------------------------------------------------------
// Scene Render Settings initializations
// ---------------------------------------------------------------------------------------------------------------
// ao : enabled?, ambient multiplier, ssao range, ssao intensity
// bloom : enabled?, brighness threshold
// skylight : enabled?
// directional : color preset, castsShadows?, brightness, direction(vec3), range
// ---------------------------------------------------------------------------------------------------------------