From bac758d7f80afbfc1a0a7dda91a46cbc5bf295f5 Mon Sep 17 00:00:00 2001 From: aardgoose Date: Mon, 9 Sep 2024 15:30:39 +0100 Subject: [PATCH] LightProbeGenerator: adapt for WebGPU compatibility (#29335) * adapt for webGPU * improve backend detection * rework * rework * exclude from tests --------- Co-authored-by: aardgoose --- examples/files.json | 1 + examples/jsm/lights/LightProbeGenerator.js | 34 +++-- .../webgpu_lightprobe_cubecamera.jpg | Bin 0 -> 23976 bytes examples/webgl_lightprobe_cubecamera.html | 6 +- examples/webgpu_lightprobe_cubecamera.html | 125 ++++++++++++++++++ test/e2e/puppeteer.js | 1 + 6 files changed, 155 insertions(+), 12 deletions(-) create mode 100644 examples/screenshots/webgpu_lightprobe_cubecamera.jpg create mode 100644 examples/webgpu_lightprobe_cubecamera.html diff --git a/examples/files.json b/examples/files.json index e976b4cb28c210..e334c744b5fa2e 100644 --- a/examples/files.json +++ b/examples/files.json @@ -331,6 +331,7 @@ "webgpu_instance_uniform", "webgpu_instancing_morph", "webgpu_lightprobe", + "webgpu_lightprobe_cubecamera", "webgpu_lights_custom", "webgpu_lights_ies_spotlight", "webgpu_lights_phong", diff --git a/examples/jsm/lights/LightProbeGenerator.js b/examples/jsm/lights/LightProbeGenerator.js index 4bd9896c8cd3fd..692c7c219518c7 100644 --- a/examples/jsm/lights/LightProbeGenerator.js +++ b/examples/jsm/lights/LightProbeGenerator.js @@ -7,7 +7,8 @@ import { SRGBColorSpace, NoColorSpace, HalfFloatType, - DataUtils + DataUtils, + WebGLCoordinateSystem } from 'three'; class LightProbeGenerator { @@ -126,7 +127,9 @@ class LightProbeGenerator { } - static fromCubeRenderTarget( renderer, cubeRenderTarget ) { + static async fromCubeRenderTarget( renderer, cubeRenderTarget ) { + + const flip = renderer.coordinateSystem === WebGLCoordinateSystem ? -1 : 1; // The renderTarget must be set to RGBA in order to make readRenderTargetPixels works let totalWeight = 0; @@ -143,12 +146,11 @@ class LightProbeGenerator { const shCoefficients = sh.coefficients; const dataType = cubeRenderTarget.texture.type; + const imageWidth = cubeRenderTarget.width; // assumed to be square - for ( let faceIndex = 0; faceIndex < 6; faceIndex ++ ) { - - const imageWidth = cubeRenderTarget.width; // assumed to be square + let data; - let data; + if ( renderer.isWebGLRenderer ) { if ( dataType === HalfFloatType ) { @@ -162,7 +164,19 @@ class LightProbeGenerator { } - renderer.readRenderTargetPixels( cubeRenderTarget, 0, 0, imageWidth, imageWidth, data, faceIndex ); + } + + for ( let faceIndex = 0; faceIndex < 6; faceIndex ++ ) { + + if ( renderer.isWebGLRenderer ) { + + await renderer.readRenderTargetPixelsAsync( cubeRenderTarget, 0, 0, imageWidth, imageWidth, data, faceIndex ); + + } else { + + data = await renderer.readRenderTargetPixelsAsync( cubeRenderTarget, 0, 0, imageWidth, imageWidth, 0, faceIndex ); + + } const pixelSize = 2 / imageWidth; @@ -194,15 +208,15 @@ class LightProbeGenerator { const pixelIndex = i / 4; - const col = - 1 + ( pixelIndex % imageWidth + 0.5 ) * pixelSize; + const col = ( 1 - ( pixelIndex % imageWidth + 0.5 ) * pixelSize ) * flip; const row = 1 - ( Math.floor( pixelIndex / imageWidth ) + 0.5 ) * pixelSize; switch ( faceIndex ) { - case 0: coord.set( 1, row, - col ); break; + case 0: coord.set( - 1 * flip, row, col * flip ); break; - case 1: coord.set( - 1, row, col ); break; + case 1: coord.set( 1 * flip, row, - col * flip ); break; case 2: coord.set( col, 1, - row ); break; diff --git a/examples/screenshots/webgpu_lightprobe_cubecamera.jpg b/examples/screenshots/webgpu_lightprobe_cubecamera.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5d75a244773958c8d7797cc66a1cd8a377853e90 GIT binary patch literal 23976 zcmbTdWmH?;6FwSBaSFv9TAX4Ys?td5m=Vvd_P*Ksa zG0-vocl-a-^!yt@fC;!m`HqT00C+)wf=Yn$+=o(tlo9QJq9FzSKLh0j>Ps|q45SD+ zuaRP-q9TPwLrRK#G6;DO@R9(H@GXxNI+3OY2E98m@7JV!Oa|%NKO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U?6`+-6~Q>ck<|B0)=?5S zjm?)T?h7#U70VV~8lhI(A817lW^uI85X56n*K{eHov1y)QR|pgmWY^{To`)D0j|I$ zw~nh%Vy9U)^fLMEsH0u$d{U&A9a#cwQNM$VSABn2VJ{8eoGD+gA}_H=eM(;JEd-`3 zPZ~(0qSh$d>5;c-To-lf?RYwazcNWah*ArTgKxUYLXb6Cly0 z{o%&^6n5l@dKz~_I(wJ0Pk{LV+hLI1huKHJs%u?QI4JXBjnez>9U`K>mH!>3H{I11 zs0%hz<`#__*Leb@eeJVtcXE13t6T5Xe+mK4%X@hnJMW~@A3@7in0{o`$&=QEYFLK@ z`B?-ntk*5b`(RZ%t8JL<%!z`MT0K33} z;zS_a#mz9D`Rw8gYy;l?;y@?4`d6mtHmtZImJwX6W^A{@n}ZVN)Tc#W34fK}-u^Lgs0|+fPyn7Q?Y|!&g)-_n@P2O + + + three.js webgpu - light probe from cubeCamera + + + + + + +
+ three.js webgpu - light probe from cubeCamera +
+ + + + + + + diff --git a/test/e2e/puppeteer.js b/test/e2e/puppeteer.js index 4c18c813afbafb..d13a933163a0a2 100644 --- a/test/e2e/puppeteer.js +++ b/test/e2e/puppeteer.js @@ -128,6 +128,7 @@ const exceptionList = [ // WebGPURenderer: Unknown problem 'webgpu_camera_logarithmicdepthbuffer', 'webgpu_clipping', + 'webgpu_lightprobe_cubecamera', 'webgpu_loader_materialx', 'webgpu_materials_video', 'webgpu_materialx_noise',