SceneGraph but DOM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
eater 7fc4b44571
add gl and example
9 months ago
gradle/wrapper Initial commit 9 months ago
script Initial commit 9 months ago
threedom add gl and example 9 months ago
threedom-example add gl and example 9 months ago
threedom-gl add gl and example 9 months ago
threedom-kapt add gl and example 9 months ago
tools add gl and example 9 months ago
.drone.yml trigger 9 months ago
.gitignore Initial commit 9 months ago
README.md small fixes 9 months ago
build.gradle Initial commit 9 months ago
gradle.properties Initial commit 9 months ago
gradlew Initial commit 9 months ago
gradlew.bat Initial commit 9 months ago
settings.gradle add gl and example 9 months ago

README.md

3DOM

A SceneGraph written as if it's a DOM

fun main() {
    val doc = Document()
    val node = doc.createNode<PlainNode>()
    node.model { setTranslation(10, 30, 3) }
    
    doc.on<DOMTreeUpdate.Insert> { (ev) ->
        println("Node has been added at ${ev.absolute.translation}")
    }

    doc.addNode(node)

    doc.inRange(Vector3d(0, 0, 0), 50).forEach {
        println("Node found at ${it.absolute.translation}")
    }
}