Skip to content

Commit 1e64834

Browse files
More tweaks and language updates around lighting
1 parent c072646 commit 1e64834

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

source/presentation/4.0/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2035,7 +2035,7 @@ A [`PointSelector`][prezi-40-model-PointSelector] can be used to modify the poin
20352035

20362036
Like Timelines or Canvases, Scenes can be painted into Scenes. As with other resources, it may be appropriate to modify the initial scale, rotation, or translation of a content resource Scene prior to painting it within another Scene. Scenes associated with SpecificResources may be manipulated through [Transforms](#transforms).
20372037

2038-
When a Scene is nested into another Scene, the [`backgroundColor`][prezi-40-model-backgroundColor] of the Scene to be nested should be ignored as it would have no meaningful effect. All Annotations painted into the Scene to be nested will be painted into the Scene into which content is being nested, including Light or Camera resources. If the Scene to be nested has one or more Camera Annotations while the Scene into which content is being nested does not, the first Camera Annotation from the nested Scene will become the default Camera for the overall Scene.
2038+
When a Scene is nested into another Scene, the [`backgroundColor`][prezi-40-model-backgroundColor] of the Scene to be nested should be ignored as it iwould have no meaningful effect. Similarly, if both Scenes have ImageBasedLight Annotations, the ImageBasedLight Annotation of the Scene into which the Scene will be nested takes precedence. All other Annotations painted into the Scene to be nested will be painted into the Scene into which content is being nested, including Light or Camera resources. If the Scene to be nested has one or more Camera Annotations while the Scene into which content is being nested does not, the first Camera Annotation from the nested Scene will become the default Camera for the overall Scene.
20392039

20402040
```jsonc
20412041
{

source/presentation/4.0/model.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ Containers _MAY_ be treated as content resources for the purposes of annotating
546546

547547
A Canvas painted into a Scene has special requirements. The top-left corner of the Canvas _MUST_ be aligned with either the Scene coordinate origin by default or with a specific 3D point in the Scene if a [Point Selector](#point-selector) is used. The Canvas _MUST_ be scaled to the Scene such that Canvas coordinate dimensions after any [Transforms](#transforms) are applied correspond to Scene coordinate dimensions with 1:1 scaling. A Canvas painted into a Scene as an Annotation has forward and backward faces, and by default the forward face is toward the positive z axis of the Scene, though this may be modified by Transforms. The content of the Canvas _SHOULD_ be displayed on the forward face, and the backward face _SHOULD_ display either any `backgroundColor` of the Canvas or a reverse view of the content.
548548

549-
A Scene painted into a Scene has one special requirement, that any `backgroundColor` of the Scene to be painted _SHOULD_ be ignored.
549+
A Scene painted into a Scene has two special processing rules. The first is that any `backgroundColor` of the Scene to be painted _SHOULD_ be ignored. The second is that when both Scenes have ImageBasedLight Annotations, clients _MAY_ ignore any ImageBasedLight Annotation of the Scene to be painted.
550550

551551
__Properties__<br/>
552552
A Content Resource _MUST_ have the following properties: [id](#id) and [type](#type).<br/><br/>
@@ -835,7 +835,7 @@ All Lights _MAY_ have the following properties: [id](#id) and [label](#label).
835835
{: #AmbientLight}
836836
> `"type": "AmbientLight"`
837837
838-
Ambient Light evenly illuminates all objects in the Scene, and does not have a direction or position. It does not have any new properties. The Light itself _MUST_ be added into the Scene at a specific position, however this is only such that editing interfaces can render the object to the user.
838+
Ambient Light evenly illuminates all objects in the Scene, and does not have a direction or position. It does not have any new properties.
839839

840840
__Properties__<br/>
841841
An Ambient Light _SHOULD_ have the following additional properties: [color](#color).<br/><br/>
@@ -854,7 +854,7 @@ An Ambient Light _SHOULD_ have the following additional properties: [color](#col
854854
{: #DirectionalLight}
855855
> `"type": "DirectionalLight"`
856856
857-
Directional Lights emit their light in a specific direction as if infinitely far away, and as such the light does not come from a specific position. The rays produced are all parallel. The Light itself _MUST_ be added into the Scene at a specific position, however this is only such that editing interfaces can render the object to the user.
857+
Directional Lights emit their light in a specific direction as if infinitely far away, and as such the light does not come from a specific position. The rays produced are all parallel.
858858

859859
The light is emitted in the negative Y direction by default, thus straight down, but the orientation of the light can be altered with `lookAt` or with a `RotateTransform`.
860860

@@ -877,7 +877,7 @@ A Directional Light _MAY_ have the following additional properties: [lookAt](#lo
877877
{: #ImageBasedLight}
878878
> `"type": "ImageBasedLight"`
879879
880-
Image-Based Lights illuminate objects in a Scene using lighting information derived from an image, typically a panoramic environment map. They simulate complex, realistic lighting without a specific direction or position.
880+
Image-Based Lights illuminate objects in a Scene using lighting information derived from an image, typically a panoramic environment map. They simulate complex, realistic lighting without a specific position. Light cast is omnidirectional, but the orientation of the light can be altered with a `RotateTransform`.
881881

882882
__Properties__<br/>
883883
An Image-Based Light _MUST_ have the following properties: [environmentMap](#environmentMap).<br/><br/>
@@ -971,7 +971,7 @@ All Audio Emitters _MAY_ have the following properties: [id](#id) and [label](#l
971971
{: #AmbientAudio}
972972
> `"type": "AmbientAudio"`
973973
974-
Ambient Audio emits equally throughout the Scene, and does not have a position or direction. The Emitter _MUST_ be annotated somewhere within the Scene so that it can be rendered by editing interfaces, and exists within the Scene's hierarchy.
974+
Ambient Audio emits equally throughout the Scene, and does not have a position or direction.
975975

976976
{% include api/code_header.html %}
977977
```json
@@ -1437,7 +1437,13 @@ This property sets the color of a Light.
14371437

14381438
The value _MUST_ be a string, which defines an RGB color. It _SHOULD_ be a hex value starting with "#" and is treated in a case-insensitive fashion. If this property is not specified, then the default value is "#FFFFFF".
14391439

1440-
* A Light _SHOULD_ have the `color` property<br/>
1440+
* An AmbientLight _SHOULD_ have the `color` property<br/>
1441+
Clients _SHOULD_ render `color` on any resource type.
1442+
* A DirectionalLight _SHOULD_ have the `color` property<br/>
1443+
Clients _SHOULD_ render `color` on any resource type.
1444+
* A PointLight _SHOULD_ have the `color` property<br/>
1445+
Clients _SHOULD_ render `color` on any resource type.
1446+
* A SpotLight _SHOULD_ have the `color` property<br/>
14411447
Clients _SHOULD_ render `color` on any resource type.
14421448
* Other resources _MUST NOT_ have the `color` property.
14431449

@@ -1905,8 +1911,8 @@ The value _MUST_ be a JSON object, conforming to either a reference to an Annota
19051911

19061912
* A Camera _MAY_ have the `lookAt` property.<br/>
19071913
Clients _SHOULD_ process the `lookAt` property on Cameras.
1908-
* A SpotLight or a DirectionalLight _SHOULD_ have the `lookAt` property.<br/>
1909-
* A SpotAudio _SHOULD_ have the `lookAt` property.
1914+
* A SpotLight or a DirectionalLight _MAY_ have the `lookAt` property.<br/>
1915+
* A SpotAudio _MAY_ have the `lookAt` property.
19101916

19111917
{% include api/code_header.html %}
19121918
```json

0 commit comments

Comments
 (0)