|
@@ -0,0 +1,83 @@
|
|
|
|
+<!DOCTYPE html>
|
|
|
|
+<html lang="it">
|
|
|
|
+ <head>
|
|
|
|
+ <meta charset="utf-8" />
|
|
|
|
+ <base href="../../../" />
|
|
|
|
+ <script src="page.js"></script>
|
|
|
|
+ <link type="text/css" rel="stylesheet" href="page.css" />
|
|
|
|
+ </head>
|
|
|
|
+ <body>
|
|
|
|
+ [page:Object3D] →
|
|
|
|
+ <h1>[name]</h1>
|
|
|
|
+
|
|
|
|
+ <p class="desc">
|
|
|
|
+ Le scene ti consentono di impostare cosa e dove deve essere renderizzato da three.js.
|
|
|
|
+ Qui è dove posizioni gli oggetti, le luci e le telecamere.</p>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <h2>Crostruttore</h2>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <h3>[name]()</h3>
|
|
|
|
+ <p>
|
|
|
|
+ Crea un nuovo oggetto scena.
|
|
|
|
+ </p>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <h2>Proprietà</h2>
|
|
|
|
+
|
|
|
|
+ <h3>[property:Object background]</h3>
|
|
|
|
+ <p>
|
|
|
|
+ Definisce lo sfondo della scena. Il valore predefinito è `null`. Gli input validi sono:
|
|
|
|
+ <ul>
|
|
|
|
+ <li>Un [page:Color Colore] per definire un background uniformemente colorato.</li>
|
|
|
|
+ <li>Una [page:Texture] per definire un background con texture (piatto).</li>
|
|
|
|
+ <li>Cubi di texture ([page:CubeTexture]) o texture equirettangolari per la definizione di uno skybox.</li>
|
|
|
|
+ </ul>
|
|
|
|
+ Nota: Tutte le configurazioni relative alla telecamera come lo `zoom` o la `view` vengono ignorate.
|
|
|
|
+ </p>
|
|
|
|
+
|
|
|
|
+ <h3>[property:Float backgroundBlurriness]</h3>
|
|
|
|
+ <p>
|
|
|
|
+ Imposta la sfocatura dello sfondo. Influisce solo sulle mappe ambientali assegnate a [page:Scene.background].
|
|
|
|
+ L'imput valido è un float compreso tra *0* e *1*. Il valore predefinito è *0*.
|
|
|
|
+ </p>
|
|
|
|
+
|
|
|
|
+ <h3>[property:Texture environment]</h3>
|
|
|
|
+ <p>
|
|
|
|
+ Imposta la mappa ambientale per tutti i materiali fisici nella scena.
|
|
|
|
+ Tuttavia, non è possibile sovrascrivere una texture esistente assegnata a [page:MeshStandardMaterial.envMap].
|
|
|
|
+ Il valore predefinito è `null`.
|
|
|
|
+ </p>
|
|
|
|
+
|
|
|
|
+ <h3>[property:Fog fog]</h3>
|
|
|
|
+
|
|
|
|
+ <p>
|
|
|
|
+ Un'istanza della [page:Fog nebbia] che definisce il tipo di nebbia che influisce su qualsiasi cosa sia visualizzata nella scena.
|
|
|
|
+ Il valore predefinito è `null`.
|
|
|
|
+ </p>
|
|
|
|
+
|
|
|
|
+ <h3>[property:Boolean isScene]</h3>
|
|
|
|
+ <p>
|
|
|
|
+ Flag di sola lettura per verificare se l'oggetto dato è di tipo [name].
|
|
|
|
+ </p>
|
|
|
|
+
|
|
|
|
+ <h3>[property:Material overrideMaterial]</h3>
|
|
|
|
+
|
|
|
|
+ <p>Forza tutto quello che c'è nella scena ad essere renderizzato con il materiale definito. Il valore predefinito è `null`.</p>
|
|
|
|
+
|
|
|
|
+ <h2>Metodi</h2>
|
|
|
|
+
|
|
|
|
+ <h3>[method:Object toJSON]( [param:Object meta] )</h3>
|
|
|
|
+ <p>
|
|
|
|
+ meta -- oggetto contenente i metadati come le texture o le immagini per la scena.<br />
|
|
|
|
+ Converte la scena nel [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 formato JSON Oggetto/Scena] di three.js.
|
|
|
|
+ </p>
|
|
|
|
+
|
|
|
|
+ <h2>Source</h2>
|
|
|
|
+
|
|
|
|
+ <p>
|
|
|
|
+ [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
|
|
+ </p>
|
|
|
|
+ </body>
|
|
|
|
+</html>
|