Post

Providing Information About Your World

Providing Information About Your World

Motivation

  • After you’ve created a great world, sign it!
  • You can provide a title and a description embedded within the file

Syntax: Metadata

A scene can also contain metadata information, which is a collection of key-value pairs. This information can be used to provide additional context about the scene, such as the author, version, or any other relevant details.

XML Encoding

1
2
3
4
5
6
7
8
9
<X3D profile='Interchange' version='4.1' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-4.1.xsd'>
  <head>
    <meta name='title' content='Our Masterpiece'/>
    <meta name='created' content='Thu, 15 Jun 2017 07:19:14 GMT'/>
    <meta name='creator' content='John Doe'/>
    <meta name='generator' content='Sunrize X3D Editor V1.7.1, https://create3000.github.io/sunrize/'/>
    <meta name='modified' content='Sat, 29 Jun 2024 11:35:21 GMT'/>
  </head>
</X3D>

Classic VRML Encoding

1
2
3
4
5
META "title" "Our Masterpiece"
META "created" "Thu, 15 Jun 2017 07:19:14 GMT"
META "creator" "John Doe"
META "generator" "Sunrize X3D Editor V1.7.1, https://create3000.github.io/sunrize/"
META "modified" "Sat, 29 Jun 2024 11:35:21 GMT"

Syntax: WorldInfo

A WorldInfo node provides title and description information for your world:

  • title - the name for your world
  • info - any additional information

XML Encoding

1
2
3
<WorldInfo
    title='Our Masterpiece'
    info='"License GPLv3, https://www.gnu.org/licenses/gpl-3.en.html"'/>

Classic VRML Encoding

1
2
3
4
WorldInfo {
  title "Our Masterpiece"
  info [ "License GPLv3, https://www.gnu.org/licenses/gpl-3.en.html" ]
}

Example

WorldInfo
This post is licensed under CC BY 4.0 by the author.