Bump to OPENRNDR 0.3.43-rc.5
This commit is contained in:
@@ -14,7 +14,7 @@ buildscript {
|
|||||||
apply plugin: 'org.jetbrains.dokka'
|
apply plugin: 'org.jetbrains.dokka'
|
||||||
|
|
||||||
project.ext {
|
project.ext {
|
||||||
openrndrVersion = "0.3.43-rc.3"
|
openrndrVersion = "0.3.43-rc.5"
|
||||||
kotlinVersion = "1.3.72"
|
kotlinVersion = "1.3.72"
|
||||||
spekVersion = "2.0.10"
|
spekVersion = "2.0.10"
|
||||||
libfreenectVersion = "0.5.7-1.5.3"
|
libfreenectVersion = "0.5.7-1.5.3"
|
||||||
@@ -59,7 +59,6 @@ allprojects {
|
|||||||
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
|
||||||
jcenter()
|
jcenter()
|
||||||
maven {
|
maven {
|
||||||
url = "https://dl.bintray.com/openrndr/openrndr"
|
url = "https://dl.bintray.com/openrndr/openrndr"
|
||||||
@@ -174,6 +173,8 @@ task collectScreenshots {
|
|||||||
doFirst {
|
doFirst {
|
||||||
def demoProjects = project.subprojects.findAll { it.sourceSets.hasProperty("demo") }
|
def demoProjects = project.subprojects.findAll { it.sourceSets.hasProperty("demo") }
|
||||||
for (sub in demoProjects) {
|
for (sub in demoProjects) {
|
||||||
|
if (sub.name == "openrndr-demos")
|
||||||
|
continue
|
||||||
if (sub.name == "orx-rabbit-control")
|
if (sub.name == "orx-rabbit-control")
|
||||||
continue
|
continue
|
||||||
if (sub.name == "orx-runway")
|
if (sub.name == "orx-runway")
|
||||||
|
|||||||
BIN
demo-data/cubemaps/garage_iem.dds
Normal file
BIN
demo-data/cubemaps/garage_iem.dds
Normal file
Binary file not shown.
22
openrndr-demos/build.gradle
Normal file
22
openrndr-demos/build.gradle
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
sourceSets {
|
||||||
|
demo {
|
||||||
|
java {
|
||||||
|
srcDirs = ["src/demo/kotlin"]
|
||||||
|
compileClasspath += main.getCompileClasspath()
|
||||||
|
runtimeClasspath += main.getRuntimeClasspath()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def boofcvVersion = "0.34"
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
demoImplementation(project(":orx-mesh-generators"))
|
||||||
|
demoImplementation(project(":orx-camera"))
|
||||||
|
|
||||||
|
demoImplementation("org.openrndr:openrndr-core:$openrndrVersion")
|
||||||
|
demoImplementation("org.openrndr:openrndr-extensions:$openrndrVersion")
|
||||||
|
demoRuntimeOnly("org.openrndr:openrndr-gl3:$openrndrVersion")
|
||||||
|
demoRuntimeOnly("org.openrndr:openrndr-gl3-natives-$openrndrOS:$openrndrVersion")
|
||||||
|
demoImplementation(sourceSets.getByName("main").output)
|
||||||
|
}
|
||||||
27
openrndr-demos/src/demo/kotlin/DemoCubemap01.kt
Normal file
27
openrndr-demos/src/demo/kotlin/DemoCubemap01.kt
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
import org.openrndr.application
|
||||||
|
import org.openrndr.draw.Cubemap
|
||||||
|
import org.openrndr.draw.DrawPrimitive
|
||||||
|
import org.openrndr.draw.Session
|
||||||
|
import org.openrndr.draw.shadeStyle
|
||||||
|
import org.openrndr.extras.camera.Orbital
|
||||||
|
import org.openrndr.extras.meshgenerators.boxMesh
|
||||||
|
|
||||||
|
fun main() = application {
|
||||||
|
program {
|
||||||
|
|
||||||
|
val cubemap = Cubemap.fromUrl("file:demo-data/cubemaps/garage_iem.dds", session = Session.active)
|
||||||
|
val cube = boxMesh()
|
||||||
|
extend(Orbital()) {
|
||||||
|
|
||||||
|
}
|
||||||
|
extend {
|
||||||
|
drawer.shadeStyle = shadeStyle {
|
||||||
|
fragmentTransform = """
|
||||||
|
x_fill = texture(p_cubemap, va_position);
|
||||||
|
"""
|
||||||
|
parameter("cubemap", cubemap)
|
||||||
|
}
|
||||||
|
drawer.vertexBuffer(cube, DrawPrimitive.TRIANGLES)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
27
openrndr-demos/src/demo/kotlin/DemoCubemap02.kt
Normal file
27
openrndr-demos/src/demo/kotlin/DemoCubemap02.kt
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
import org.openrndr.application
|
||||||
|
import org.openrndr.draw.*
|
||||||
|
import org.openrndr.extras.camera.Orbital
|
||||||
|
import org.openrndr.extras.meshgenerators.boxMesh
|
||||||
|
|
||||||
|
fun main() = application {
|
||||||
|
program {
|
||||||
|
val cubemap1 = Cubemap.fromUrl("file:demo-data/cubemaps/garage_iem.dds", session = Session.active)
|
||||||
|
val cube = boxMesh()
|
||||||
|
val cubemap2 = cubemap(cubemap1.width, format = cubemap1.format, type = cubemap1.type, levels = 2, session = Session.active)
|
||||||
|
cubemap1.copyTo(cubemap2, 0, 0)
|
||||||
|
cubemap2.generateMipmaps()
|
||||||
|
|
||||||
|
extend(Orbital()) {
|
||||||
|
|
||||||
|
}
|
||||||
|
extend {
|
||||||
|
drawer.shadeStyle = shadeStyle {
|
||||||
|
fragmentTransform = """
|
||||||
|
x_fill = texture(p_cubemap, va_position);
|
||||||
|
"""
|
||||||
|
parameter("cubemap", cubemap2)
|
||||||
|
}
|
||||||
|
drawer.vertexBuffer(cube, DrawPrimitive.TRIANGLES)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
29
openrndr-demos/src/demo/kotlin/DemoCubemap03.kt
Normal file
29
openrndr-demos/src/demo/kotlin/DemoCubemap03.kt
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
import org.openrndr.application
|
||||||
|
import org.openrndr.draw.*
|
||||||
|
import org.openrndr.extras.camera.Orbital
|
||||||
|
import org.openrndr.extras.meshgenerators.boxMesh
|
||||||
|
|
||||||
|
fun main() = application {
|
||||||
|
program {
|
||||||
|
val cubemap1 = Cubemap.fromUrl("file:demo-data/cubemaps/garage_iem.dds", session = Session.active)
|
||||||
|
val cube = boxMesh()
|
||||||
|
val cubemap2 = cubemap(cubemap1.width, format = cubemap1.format, type = cubemap1.type, levels = 2, session = Session.active)
|
||||||
|
cubemap1.copyTo(cubemap2, 0, 0)
|
||||||
|
cubemap2.generateMipmaps()
|
||||||
|
|
||||||
|
val cma = arrayCubemap(256, 10)
|
||||||
|
extend(Orbital()) {
|
||||||
|
|
||||||
|
}
|
||||||
|
extend {
|
||||||
|
drawer.shadeStyle = shadeStyle {
|
||||||
|
fragmentTransform = """
|
||||||
|
x_fill = texture(p_cma, vec4(va_position,0.0));
|
||||||
|
"""
|
||||||
|
parameter("cubemap", cubemap2)
|
||||||
|
parameter("cma", cma)
|
||||||
|
}
|
||||||
|
drawer.vertexBuffer(cube, DrawPrimitive.TRIANGLES)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -13,7 +13,6 @@ def boofcvVersion = "0.34"
|
|||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
compile("org.boofcv:boofcv-core:$boofcvVersion")
|
compile("org.boofcv:boofcv-core:$boofcvVersion")
|
||||||
|
|
||||||
demoImplementation("org.openrndr:openrndr-core:$openrndrVersion")
|
demoImplementation("org.openrndr:openrndr-core:$openrndrVersion")
|
||||||
demoImplementation("org.openrndr:openrndr-extensions:$openrndrVersion")
|
demoImplementation("org.openrndr:openrndr-extensions:$openrndrVersion")
|
||||||
demoRuntimeOnly("org.openrndr:openrndr-gl3:$openrndrVersion")
|
demoRuntimeOnly("org.openrndr:openrndr-gl3:$openrndrVersion")
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class FontManager {
|
|||||||
fun font(cs: StyleSheet): FontImageMap {
|
fun font(cs: StyleSheet): FontImageMap {
|
||||||
val fontUrl = resolve(cs.fontFamily) ?: "cp:fonts/Roboto-Medium.ttf"
|
val fontUrl = resolve(cs.fontFamily) ?: "cp:fonts/Roboto-Medium.ttf"
|
||||||
val fontSize = (cs.fontSize as? LinearDimension.PX)?.value ?: 16.0
|
val fontSize = (cs.fontSize as? LinearDimension.PX)?.value ?: 16.0
|
||||||
return FontImageMap.fromUrl(fontUrl, fontSize, contentScale)
|
return FontImageMap.fromUrl(fontUrl, fontSize, contentScale = contentScale)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun register(name: String, url: String) {
|
fun register(name: String, url: String) {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
rootProject.name = 'orx'
|
rootProject.name = 'orx'
|
||||||
|
|
||||||
include 'orx-boofcv',
|
include 'openrndr-demos',
|
||||||
|
'orx-boofcv',
|
||||||
'orx-camera',
|
'orx-camera',
|
||||||
'orx-compositor',
|
'orx-compositor',
|
||||||
'orx-dnk3',
|
'orx-dnk3',
|
||||||
|
|||||||
Reference in New Issue
Block a user