Bump to OPENRNDR 0.3.43-rc.5

This commit is contained in:
Edwin Jakobs
2020-05-30 10:36:47 +02:00
parent ad50913758
commit 20d364ae32
9 changed files with 111 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ buildscript {
apply plugin: 'org.jetbrains.dokka'
project.ext {
openrndrVersion = "0.3.43-rc.3"
openrndrVersion = "0.3.43-rc.5"
kotlinVersion = "1.3.72"
spekVersion = "2.0.10"
libfreenectVersion = "0.5.7-1.5.3"
@@ -59,7 +59,6 @@ allprojects {
repositories {
mavenCentral()
jcenter()
maven {
url = "https://dl.bintray.com/openrndr/openrndr"
@@ -174,6 +173,8 @@ task collectScreenshots {
doFirst {
def demoProjects = project.subprojects.findAll { it.sourceSets.hasProperty("demo") }
for (sub in demoProjects) {
if (sub.name == "openrndr-demos")
continue
if (sub.name == "orx-rabbit-control")
continue
if (sub.name == "orx-runway")

Binary file not shown.

View 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)
}

View 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)
}
}
}

View 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)
}
}
}

View 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)
}
}
}

View File

@@ -13,7 +13,6 @@ def boofcvVersion = "0.34"
dependencies {
compile("org.boofcv:boofcv-core:$boofcvVersion")
demoImplementation("org.openrndr:openrndr-core:$openrndrVersion")
demoImplementation("org.openrndr:openrndr-extensions:$openrndrVersion")
demoRuntimeOnly("org.openrndr:openrndr-gl3:$openrndrVersion")

View File

@@ -15,7 +15,7 @@ class FontManager {
fun font(cs: StyleSheet): FontImageMap {
val fontUrl = resolve(cs.fontFamily) ?: "cp:fonts/Roboto-Medium.ttf"
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) {

View File

@@ -1,6 +1,7 @@
rootProject.name = 'orx'
include 'orx-boofcv',
include 'openrndr-demos',
'orx-boofcv',
'orx-camera',
'orx-compositor',
'orx-dnk3',