-from logging import info
+from logging import info, debug
from sys import platform, exit
from os import environ, system
from webbrowser import open_new_tab
def on_aa(self, arg):
self._pipeline.msaa_samples = 4 if arg else 1
- info(f'msaa: {self._pipeline.msaa_samples}')
+ debug(f'msaa: {self._pipeline.msaa_samples}')
self._opt_file['settings']['antialiasing'] = int(arg)
self._opt_file.store()
def on_shadows(self, arg):
self._pipeline.enable_shadows = int(arg)
- info(f'shadows: {self._pipeline.enable_shadows}')
+ debug(f'shadows: {self._pipeline.enable_shadows}')
self._opt_file['settings']['shadows'] = int(arg)
self._opt_file.store()
import simplepbr
import gltf
from sys import platform, argv
-from logging import info
+from logging import info, debug
from os.path import exists
from os import makedirs
from panda3d.core import Filename, load_prc_file_data, AntialiasAttrib, \
props = WindowProperties()
props.set_size(res)
props.set_fullscreen(self._options['settings']['fullscreen'])
+ props.set_icon_filename('assets/icon/pmachines.ico')
base.win.request_properties(props)
gltf.patch_loader(base.loader)
if self._options['development']['simplepbr']:
use_occlusion_maps=True,
msaa_samples=4 if self._options['settings']['antialiasing'] else 1,
enable_shadows=int(self._options['settings']['shadows']))
- info(f'msaa: {self._pipeline.msaa_samples}')
- info(f'shadows: {self._pipeline.enable_shadows}')
+ debug(f'msaa: {self._pipeline.msaa_samples}')
+ debug(f'shadows: {self._pipeline.enable_shadows}')
render.setAntialias(AntialiasAttrib.MAuto)
self.base.set_background_color(0, 0, 0, 1)
self.base.disable_mouse()
* issues
* todo
-** window icon
** srgb textures
** glitch when dragging with shadows
*** try excluding the highlight model
'assets/images/icon/icon48_png.png',
'assets/images/icon/icon32_png.png',
'assets/images/icon/icon16_png.png']},
+ 'icons': {
+ appname: [
+ 'assets/icon/icon256.png',
+ 'assets/icon/icon128.png',
+ 'assets/icon/icon48.png',
+ 'assets/icon/icon32.png',
+ 'assets/icon/icon16.png']},
'include_patterns': [
'**/lib/licenses/*',
'**/licenses/*',