-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #231 from Saverio976/166-faire-des-scènes
166 faire des scènes
- Loading branch information
Showing
34 changed files
with
4,438 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Configuration of the camera | ||
cameras: | ||
{ | ||
Camera: ( | ||
{ | ||
size = {x: 500; y = 500;}; | ||
transform = { | ||
position = {x = 0.0; y = 0.0; z = 0.0;}; | ||
scale = {x = 0.0; y = 0.0; z = 0.0;}; | ||
rotation = {x = 0.0; y = 0.0; z = 0.0;}; | ||
}; | ||
focal = 200.0; | ||
maxThreads = -1; | ||
filters: { | ||
}; | ||
} | ||
); | ||
}; | ||
|
||
# Primitives in the scene | ||
primitives : | ||
{ | ||
Cone = ( | ||
{ | ||
angle = 0.5; | ||
transform = { | ||
position = {x = 0.0; y = 100.0; z = 0.0;}; | ||
scale = {x = 1.0; y = 1.0; z = 1.0;}; | ||
rotation = {x = 0.0; y = 0.0; z = 1.5;}; | ||
}; | ||
material = { | ||
type = "PlainMaterial"; | ||
shininess = 0.2; | ||
color = {r = 68.0; g = 171.0; b = 128.0; a = 255.0;}; | ||
}; | ||
} | ||
); | ||
}; | ||
|
||
# Light configuration | ||
lights : | ||
{ | ||
# List of ambient lights | ||
AmbientLight = ( | ||
{ | ||
transform = { | ||
position = {x = 60.0; y = 20.0; z = 50.0;}; | ||
scale = {x = 5.0; y = 0.0; z = 0.0;}; | ||
rotation = {x = 60.0; y = 20.0; z = -10.0;}; | ||
}; | ||
color = {r = 50.0; g = 50.0; b = 50.0; a = 255.0;}; | ||
power = 1.0; | ||
} | ||
); | ||
PointLight = ( | ||
{ | ||
transform = { | ||
position = {x = 100.0; y = 0.0; z = 100.0;}; | ||
scale = {x = 1.0; y = 1.0; z = 0.0;}; | ||
rotation = {x = 60.0; y = 20.0; z = -10.0;}; | ||
}; | ||
color = {r = 255.0; g = 100.0; b = 0.0; a = 255.0;}; | ||
power = 1.0; | ||
radius = 500.0; | ||
} | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
# Configuration des cameras | ||
cameras: | ||
{ | ||
# Camera par defaut (la plus simple d'utilisation) | ||
Camera: ( | ||
{ | ||
# Taille de l'image (de l'écran) (en pixels) | ||
size = {x: 500; y = 500;}; | ||
transform = { | ||
# Position de l'écran | ||
position = {x = 0.0; y = 0.0; z = 0.0;}; | ||
# L'Echelle n'est pas suportée | ||
scale = {x = 0.0; y = 0.0; z = 0.0;}; | ||
# La rotation n'est pas suportée | ||
rotation = {x = 0.0; y = 0.0; z = 0.0;}; | ||
}; | ||
# Distance de la caméra par rapport à l'écran | ||
focal = 200.0; | ||
# Nombre de pixel d'éxécution en parallelle (-1 laisse la caméra sélectionner le maximum possible) | ||
maxThreads = -1; | ||
# Filtres (étape après la génération de l'image) | ||
filters = {}; | ||
} | ||
); | ||
}; | ||
|
||
# Primitives in the scene | ||
primitives : | ||
{ | ||
# List of spheres | ||
Sphere = ( | ||
{ | ||
radius = 100.0; | ||
transform = { | ||
position = {x = -150.0; y = 150.0; z = 50.0;}; | ||
scale = {x = 1.0; y = 0.0; z = 0.0;}; | ||
rotation = {x = 0.0; y = 0.0; z = 0.0;}; | ||
} | ||
material = { | ||
color = {r = 68.0; g = 171.0; b = 128.0; a = 255.0;}; | ||
# Taux de reflet de la lumière | ||
shininess = 1.0; | ||
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est ambiante) | ||
ambient = {x = 1.0; y = 1.0; z = 1.0}; | ||
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe) | ||
diffuse = {x = 1.0; y = 1.0; z = 1.0}; | ||
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe) | ||
specular = {x = 1.0; y = 1.0; z = 1.0}; | ||
type = "PlainMaterial"; | ||
}; | ||
}, | ||
{ | ||
radius = 50.0; | ||
transform = { | ||
position = {x = 15.0; y = 100.0; z = 50.0;}; | ||
scale = {x = 1.0; y = 0.0; z = 0.0;}; | ||
rotation = {x = 0.0; y = 0.0; z = 0.0;}; | ||
} | ||
material = { | ||
color = {r = 68.0; g = 171.0; b = 128.0; a = 255.0;}; | ||
# Taux de reflet de la lumière | ||
shininess = 1.0; | ||
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est ambiante) | ||
ambient = {x = 1.0; y = 1.0; z = 1.0}; | ||
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe) | ||
diffuse = {x = 1.0; y = 1.0; z = 1.0}; | ||
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe) | ||
specular = {x = 1.0; y = 1.0; z = 1.0}; | ||
type = "PlainMaterial"; | ||
}; | ||
} | ||
); | ||
Plane = ( | ||
{ | ||
transform = { | ||
position = {x = 0.0; y = 150.0; z = 0.0;}; | ||
scale = {x = 0.0; y = 0.0; z = 0.0;}; | ||
rotation = {x = 0.0; y = 1.0; z = 0.0;}; | ||
}; | ||
size = {x = 50.0; y = 50.0; z = 0.0;}; | ||
material = { | ||
color = {r = 255.0; g = 255.0; b = 0.0; a = 255.0;}; | ||
# Taux de reflet de la lumière | ||
shininess = 1.0; | ||
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est ambiante) | ||
ambient = {x = 1.0; y = 1.0; z = 1.0}; | ||
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe) | ||
diffuse = {x = 1.0; y = 1.0; z = 1.0}; | ||
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe) | ||
specular = {x = 1.0; y = 1.0; z = 1.0}; | ||
type = "PlainMaterial"; | ||
}; | ||
}, | ||
{ | ||
transform = { | ||
position = {x = 0.0; y = 10.0; z = -100.0;}; | ||
scale = {x = 0.0; y = 0.0; z = 0.0;}; | ||
rotation = {x = 0.0; y = 0.0; z = 1.0;}; | ||
}; | ||
size = {x = 1000.0; y = 500.0; z = 500.0;}; | ||
material = { | ||
color = {r = 0.0; g = 255.0; b = 255.0; a = 255.0;}; | ||
# Taux de reflet de la lumière | ||
shininess = 1.0; | ||
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est ambiante) | ||
ambient = {x = 1.0; y = 1.0; z = 1.0}; | ||
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe) | ||
diffuse = {x = 1.0; y = 1.0; z = 1.0}; | ||
# Utilisé pour modifier le taux de reflet/couleur de la sphere (quand la lumière est une lampe) | ||
specular = {x = 1.0; y = 1.0; z = 1.0}; | ||
type = "PlainMaterial"; | ||
}; | ||
} | ||
); | ||
}; | ||
|
||
# Configuration de la lumière | ||
lights: { | ||
AmbientLight = ( | ||
# Première lampe de type AmbientLight | ||
{ | ||
transform = { | ||
# Position de la lampe | ||
position = {x = 150.0; y = 0.0; z = 100.0;}; | ||
# X: agrandis/diminus la puissance de la lampe | ||
# Y/Z: mettre 0.0 | ||
scale = {x = 1.0; y = 0.0; z = 0.0;}; | ||
# X/Y/Z: mettre 0.0 (à quoi ça sert de changer la rotation d'une lampe qui écair partout?) | ||
rotation = {x = 0.0; y = 0.0; z = 0.0;}; | ||
}; | ||
# Couleur de la lampe | ||
color = {r = 50.0; g = 50.0; b = 50.0; a = 255.0;}; | ||
# Puissance de la lampe (plus il est grand, plus il comptera par rapport aux autres lumières) | ||
power = 1.0; | ||
} | ||
); | ||
# Point de lumière (une lampe par example) | ||
# ####### Atention | ||
# ###### Pour une question de test, la point light à un rayon de 1 (donc elle éclaire rien) | ||
# ###### La scene devient noir si il n'y a qu'une source de lumière | ||
PointLight = ( | ||
# Première lampe de type PointLight | ||
{ | ||
transform = { | ||
# Position de la lampe | ||
position = {x = 150.0; y = 0.0; z = 100.0;}; | ||
# X: agrandis/diminus le rayon de la lampe | ||
# Y: agrandis/diminus la puissance de la lampe | ||
# Z: mettre 0.0 | ||
scale = {x = 1.0; y = 1.0; z = 0.0;}; | ||
# X/Y/Z: mettre 0.0 (à quoi ça sert de changer la rotation d'une lampe qui écair de tous les cotés?) | ||
rotation = {x = 0.0; y = 0.0; z = 0.0;}; | ||
}; | ||
# Couleur de la lampe | ||
color = {r = 255.0; g = 126.0; b = 300.0; a = 255.0;}; | ||
# Puissance de la lampe (plus il est grand, plus il comptera par rapport aux autres lumières) | ||
power = 1.0; | ||
# Rayon du chants d'actions de la lumière (au-delà la lumière n'éclair pas) | ||
radius = 1.0; | ||
} | ||
); | ||
} |
Oops, something went wrong.