Skip to content

Instantly share code, notes, and snippets.

View dmitrykolesnikovich's full-sized avatar

Dmitry Kolesnikovich dmitrykolesnikovich

  • AdChamp
  • Minsk, Belarus
  • 04:36 (UTC +03:00)
View GitHub Profile
@dmitrykolesnikovich
dmitrykolesnikovich / caspian.css
Created November 12, 2023 11:37 — forked from tmazeika/caspian.css
JavaFX default Caspian style sheet.
/*
* Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
@dmitrykolesnikovich
dmitrykolesnikovich / getUserMedia-errors.md
Created October 31, 2023 15:52 — forked from BrianLi101/getUserMedia-errors.md
navigator.mediaDevices.getUserMedia() errors

| Problem | OS (macOS, Windows) | Chrome | Safari | Edge | Firefox | Error Type (MediaPermissionsError) | Recommended User Action | | ---------------------------------------------------------------------------------------- | ------------------- | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- | -----------------------------------------------------------------------

@dmitrykolesnikovich
dmitrykolesnikovich / obj.kt
Last active May 18, 2023 05:20
Shader - Program - Graphics
const val multipleLightsShader: String = """
TBD
"""
class MultipleLightsProgram : Program(multipleLightsShader) {
var projection: Matrix by uniforms["Matrices.projection"]
var view: Matrix by uniforms["Matrices.view"]
var model: Matrix by uniforms["model"]
var cameraPosition: Vector by uniforms["cameraPosition"]
var atmosphere: Atmosphere by uniforms["atmosphere"]
@dmitrykolesnikovich
dmitrykolesnikovich / research.kt
Last active March 30, 2023 00:01
how to implement artifact DSL
package featurea.obj
import featurea.content.contentTypes
import featurea.runtime.Artifact
val artifact = Artifact("featurea.obj") {
include(featurea.image.artifact)
"ObjCache" to ::ObjCache
@dmitrykolesnikovich
dmitrykolesnikovich / game.kt
Last active March 29, 2023 14:23
featurea game engine minimalism demonstration
@file:Dependency("featurea:app:1.0")
@file:Dependency("featurea:graphics:1.0")
@file:Dependency("featurea:input:1.0")
@file:Dependency("featurea:pbr:1.0")
package game
import featurea.app.*
import featurea.graphics.*
import featurea.input.*
@dmitrykolesnikovich
dmitrykolesnikovich / README.html
Created January 20, 2023 03:34 — forked from takiyu/README.html
HTML file to visualize README.md
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title></title>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.6/marked.min.js"></script>
@dmitrykolesnikovich
dmitrykolesnikovich / text.kt
Last active June 12, 2022 23:17
Featurea Text Example
package featurea.examples.text
import featurea.app.*
import featurea.examples.text.Resources.*
import featurea.graphics.*
import featurea.input.*
import featurea.runtime.*
object Resources {
val enemyPng = "images/enemy.png"
@dmitrykolesnikovich
dmitrykolesnikovich / export.log
Created May 20, 2022 05:25
Five warnings while exporting *.FBX from *.MB leads to corrupted FBX file
/***Warning 1***/
The plug-in has found the following skin definition problems :
Unable to find the bind pose for : / DaChui_Rig:Group / DaChui_Rig:Main / DaChui_Rig:DeformationSystem / DaChui_Rig:Root_ ... g:ShoulderPart2_L / DaChui_Rig:Elbow_L / DaChui_Rig:Wrist_L / DaChui_Rig:MiddleFinger1_L. No bind poses in the hierarchy containing the object will be exported.
Unable to find the bind pose for : / DaChui_Rig:Group / DaChui_Rig:Main / DaChui_Rig:DeformationSystem / DaChui_Rig:Root_ ... g:Elbow_L / DaChui_Rig:Wrist_L / DaChui_Rig:MiddleFinger1_L / DaChui_Rig:MiddleFinger2_L. Use the DAG node current transform.
Unable to find the bind pose for : / DaChui_Rig:Group / DaChui_Rig:Main / DaChui_Rig:DeformationSystem / DaChui_Rig:Root_M / DaChui_Rig:Hip_L / DaChui_Rig:Knee_L. No bind poses in the hierarchy containing the object will be exported.
Unable to find the bind pose for : / DaChui_Rig:Group / DaChui_Rig:Main / DaChui_Rig:DeformationSystem / DaChui_Rig:Root_M / DaChui_Rig:Hip_R / DaChui_Rig:Knee_
Section "Device"
Identifier "Configured Video Device"
Driver "dummy"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 31.5-48.5
VertRefresh 50-70
EndSection
Section "Screen"