mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
102.89k stars 35.39k forks source link

in Vue use three.js 169.0 report texture bug #29648

Closed lyh2 closed 1 month ago

lyh2 commented 1 month ago

Description

use three.js 0.169.0 WebGPURenderer not runing with report warning 👍 Texture size ([Extent3D width:20248, height:2048, depthOrArrayLayers:1]) exceeded maximum texture size ([Extent3D width:8192, height:8192, depthOrArrayLayers:256]).

school:1 Texture size ([Extent3D width:20248, height:2048, depthOrArrayLayers:1]) exceeded maximum texture size ([Extent3D width:8192, height:8192, depthOrArrayLayers:256]).

school:1 [Invalid Texture] is invalid.

school:1 [Invalid Texture] is invalid.

121[Invalid TextureView] is invalid.

121[Invalid CommandBuffer from CommandEncoder "renderContext_1"] is invalid.

school:1 [Invalid Texture] is invalid.

school:1 [Invalid Texture] is invalid.

10[Invalid TextureView] is invalid.

121[Invalid BindGroup "bindGroup_object"] is invalid.

121[Invalid CommandBuffer from CommandEncoder "renderContext_0"] is invalid.

school:1 WebGPU: too many warnings, no more warnings will be reported to the console for this GPUDevice.

Reproduction steps

Code

// code goes here

Live example

Screenshots

No response

Version

169

Device

Desktop

Browser

Chrome

OS

MacOS

donmccurdy commented 1 month ago

directionalLight.shadow.mapSize.set(20248, 2048)

I think this is a typo in your code, it's unlikely that your device will let you create textures this large. Perhaps you meant 2048x2048? For support in general, please use the following:

lyh2 commented 1 month ago

It's my mistake, sorry. write 2048 to 20248