Replace environment map.

This commit is contained in:
kovacsv 2021-10-31 09:30:37 +01:00
parent 303d832a70
commit 1b936f21b2
20 changed files with 196 additions and 16 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

After

Width:  |  Height:  |  Size: 177 KiB

View File

@ -96,12 +96,12 @@
<div class="online_3d_viewer"
style="width: 360px; height: 240px;"
model="../../test/testfiles/gltf/Box/glTF-Binary/Box.glb"
environmentmap="../website/assets/envmaps/forest/posx.jpg,../website/assets/envmaps/forest/negx.jpg,../website/assets/envmaps/forest/posy.jpg,../website/assets/envmaps/forest/negy.jpg,../website/assets/envmaps/forest/posz.jpg,../website/assets/envmaps/forest/negz.jpg">
environmentmap="../website/assets/envmaps/grayclouds/posx.jpg,../website/assets/envmaps/grayclouds/negx.jpg,../website/assets/envmaps/grayclouds/posy.jpg,../website/assets/envmaps/grayclouds/negy.jpg,../website/assets/envmaps/grayclouds/posz.jpg,../website/assets/envmaps/grayclouds/negz.jpg">
</div>
<div class="online_3d_viewer"
style="width: 360px; height: 240px;"
model="../../test/testfiles/gltf/Box/glTF-Draco/Box.gltf,../../test/testfiles/gltf/Box/glTF-Draco/Box.bin"
environmentmap="../website/assets/envmaps/forest/posx.jpg,../website/assets/envmaps/forest/negx.jpg,../website/assets/envmaps/forest/posy.jpg,../website/assets/envmaps/forest/negy.jpg,../website/assets/envmaps/forest/posz.jpg,../website/assets/envmaps/forest/negz.jpg">
environmentmap="../website/assets/envmaps/grayclouds/posx.jpg,../website/assets/envmaps/grayclouds/negx.jpg,../website/assets/envmaps/grayclouds/posy.jpg,../website/assets/envmaps/grayclouds/negy.jpg,../website/assets/envmaps/grayclouds/posz.jpg,../website/assets/envmaps/grayclouds/negz.jpg">
</div>
<div class="online_3d_viewer"
style="width: 360px; height: 240px;"
@ -110,7 +110,7 @@
<div class="online_3d_viewer"
style="width: 360px; height: 240px;"
model="../../test/testfiles/gltf/DamagedHelmet/glTF-Binary/DamagedHelmet.glb"
environmentmap="../website/assets/envmaps/forest/posx.jpg,../website/assets/envmaps/forest/negx.jpg,../website/assets/envmaps/forest/posy.jpg,../website/assets/envmaps/forest/negy.jpg,../website/assets/envmaps/forest/posz.jpg,../website/assets/envmaps/forest/negz.jpg">
environmentmap="../website/assets/envmaps/grayclouds/posx.jpg,../website/assets/envmaps/grayclouds/negx.jpg,../website/assets/envmaps/grayclouds/posy.jpg,../website/assets/envmaps/grayclouds/negy.jpg,../website/assets/envmaps/grayclouds/posz.jpg,../website/assets/envmaps/grayclouds/negz.jpg">
</div>
<div class="online_3d_viewer"
style="width: 360px; height: 240px;"

View File

@ -211,7 +211,7 @@ OV.ShadingModel = class
this.scene.environment = null;
} else if (this.type === OV.ShadingModelType.Physical) {
this.ambientLight.color.set (0x000000);
this.directionalLight.color.set (0x666666);
this.directionalLight.color.set (0x555555);
this.scene.environment = this.environment;
}
}

46
tools/classhierarchy.py Normal file
View File

@ -0,0 +1,46 @@
import os
import re
import sys
import json
from lib import tools_lib as Tools
def PrintInfo (message):
print ('INFO: ' + message)
def PrintError (message):
print ('ERROR: ' + message)
def Main (argv):
toolsDir = os.path.dirname (os.path.abspath (__file__))
rootDir = os.path.dirname (toolsDir)
os.chdir (rootDir)
configFilePath = os.path.join (rootDir, 'tools', 'config.json')
config = None
with open (configFilePath) as configJson:
config = json.load (configJson)
files = []
for filePath in config['engine_files']:
files.append (filePath)
for filePath in config['website_files_js']:
files.append (filePath)
pumlContent = ''
classNames = []
classInheritances = []
for filePath in files:
content = Tools.GetFileContent (os.path.join (rootDir, filePath))
for match in re.finditer ('(.*) = class', content):
classNames.append (match.group (1))
pumlContent += 'class ' + match.group (1) + '\n'
for match in re.finditer ('(.*) = class extends (.*)', content):
classInheritances.append ((match.group (1), match.group (2)))
pumlContent += match.group (2) + ' <|-- ' + match.group (1) + '\n'
Tools.WriteContentToFile ('a.puml', pumlContent)
Tools.RunCommand ('npx', ['puml', 'generate', 'a.puml', '-o', 'a.png'])
return 0
sys.exit (Main (sys.argv))

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,67 @@
====================================
Cloudy skyboxes
---------------
Last updated August 10, 2012
====================================
4 color variations of a cloudy afternoon skybox with mixed types of clouds.
I originally just made the blue version, but I figured having some premade variations might be useful.
Blue: high key and somewhat cooled down.
Gray: more contrast and whitebalanced, more sombre.
Brown: somewhat of a sickly brown tinted version, a bit reminiscent of aged romantic paintings.
Yellow: funky bright orange/yellow tinted.
====================================
Technical Tidbits
====================================
Max quality baseline JPG compression.
For HDR enabled engines, overbrightening the high-end with a threshold of 0.7 and multiplier of 1.5 seems to look natural.
There are pure white highlights present inside some of the textures.
The sides are named and oriented in the Quake tradition, you might need to re-orient them for engines that use a different cubemap/skybox layout.
====================================
License Information:
====================================
CC-BY 3.0
You are free:
* to Share — to copy, distribute and transmit the work
* to Remix — to adapt the work
* to make commercial use of the work
Under the following conditions:
* Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
With the understanding that:
* Waiver — Any of the above conditions can be waived if you get permission from the copyright holder.
* Public Domain — Where the work or any of its elements is in the public domain under applicable law, that status is in no way affected by the license.
* Other Rights — In no way are any of the following rights affected by the license:
Your fair dealing or fair use rights, or other applicable copyright exceptions and limitations;
The author's moral rights;
Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights.
Notice — For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this webpage*.
( * source: http://creativecommons.org/licenses/by/3.0/ )
====================================
Author
====================================
Pieter Spiney Verhoeven
web: http://www.spiney.me/
email: ptr dot vrhvn at gmail dot com
Please do not disclose my email without my permission, I don't like getting spam emails.
Have fun :]

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,67 @@
====================================
Cloudy skyboxes
---------------
Last updated August 10, 2012
====================================
4 color variations of a cloudy afternoon skybox with mixed types of clouds.
I originally just made the blue version, but I figured having some premade variations might be useful.
Blue: high key and somewhat cooled down.
Gray: more contrast and whitebalanced, more sombre.
Brown: somewhat of a sickly brown tinted version, a bit reminiscent of aged romantic paintings.
Yellow: funky bright orange/yellow tinted.
====================================
Technical Tidbits
====================================
Max quality baseline JPG compression.
For HDR enabled engines, overbrightening the high-end with a threshold of 0.7 and multiplier of 1.5 seems to look natural.
There are pure white highlights present inside some of the textures.
The sides are named and oriented in the Quake tradition, you might need to re-orient them for engines that use a different cubemap/skybox layout.
====================================
License Information:
====================================
CC-BY 3.0
You are free:
* to Share — to copy, distribute and transmit the work
* to Remix — to adapt the work
* to make commercial use of the work
Under the following conditions:
* Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
With the understanding that:
* Waiver — Any of the above conditions can be waived if you get permission from the copyright holder.
* Public Domain — Where the work or any of its elements is in the public domain under applicable law, that status is in no way affected by the license.
* Other Rights — In no way are any of the following rights affected by the license:
Your fair dealing or fair use rights, or other applicable copyright exceptions and limitations;
The author's moral rights;
Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights.
Notice — For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this webpage*.
( * source: http://creativecommons.org/licenses/by/3.0/ )
====================================
Author
====================================
Pieter Spiney Verhoeven
web: http://www.spiney.me/
email: ptr dot vrhvn at gmail dot com
Please do not disclose my email without my permission, I don't like getting spam emails.
Have fun :]

View File

@ -67,12 +67,12 @@ OV.Embed = class
{
this.viewer.Init (canvas.get (0));
this.viewer.SetEnvironmentMap ([
'assets/envmaps/forest/posx.jpg',
'assets/envmaps/forest/negx.jpg',
'assets/envmaps/forest/posy.jpg',
'assets/envmaps/forest/negy.jpg',
'assets/envmaps/forest/posz.jpg',
'assets/envmaps/forest/negz.jpg'
'assets/envmaps/grayclouds/posx.jpg',
'assets/envmaps/grayclouds/negx.jpg',
'assets/envmaps/grayclouds/posy.jpg',
'assets/envmaps/grayclouds/negy.jpg',
'assets/envmaps/grayclouds/posz.jpg',
'assets/envmaps/grayclouds/negz.jpg'
]);
}

View File

@ -344,12 +344,12 @@ OV.Website = class
this.viewer.Init (canvas.get (0));
this.viewer.SetBackgroundColor (this.settings.backgroundColor);
this.viewer.SetEnvironmentMap ([
'assets/envmaps/forest/posx.jpg',
'assets/envmaps/forest/negx.jpg',
'assets/envmaps/forest/posy.jpg',
'assets/envmaps/forest/negy.jpg',
'assets/envmaps/forest/posz.jpg',
'assets/envmaps/forest/negz.jpg'
'assets/envmaps/grayclouds/posx.jpg',
'assets/envmaps/grayclouds/negx.jpg',
'assets/envmaps/grayclouds/posy.jpg',
'assets/envmaps/grayclouds/negy.jpg',
'assets/envmaps/grayclouds/posz.jpg',
'assets/envmaps/grayclouds/negz.jpg'
]);
this.SetUIState (OV.WebsiteUIState.Intro);
}