Kitware / vtk-js

Visualization Toolkit for the Web
https://kitware.github.io/vtk-js/
BSD 3-Clause "New" or "Revised" License
1.24k stars 380 forks source link

pbr rending Parameter Invalid #2630

Open xut-d opened 2 years ago

xut-d commented 2 years ago

Hello, I would like to ask you a few questions: vtk.js for pbr cases(https://kitware.github.io/vtk-js/examples/PBR.html) , why can't display the effect of the environment map? No matter how you change the parameters, the following is the picture: 6fc264b0-4c0f-4328-8ac4-f777f7488e83

[expected outcome picture]: img_v2_f95d83dc-5b53-485f-a236-18f88a42268g Code inside setUseEnvironmentTextureAsBackground = true, but there is no effect, the normal vector map, diffuse map are not effective, do you know why? thank you for your prompt reply!

vtk.js version: "283.3", Browsers: 117.0.5855.0 (正式版本) canary (64 位) (cohort: Clang-64) OS: Windows 10 专业版

jourdain commented 2 years ago

For urgent matters, feel free to reach our to Kitware directly for paid support.

floryst commented 2 years ago

IIRC PBR is only implemented for WebGPU at this time, so those settings won't work for WebGL yet.

xut-d commented 2 years ago

Thank you for your answer, it is very helpful to me! and i have one more question:

  1. I used the latest Google browser that supports webGPU, setting the basic parameters can take effect, but now there is a problem, setting the environment diagram does not take effect, changing the photo has no effect on the model, Is there anything else I need to set, and the normal map in the same path was work, do you know why? Use the screenshot below: opB8IQuFos
floryst commented 2 years ago

I'm not 100% sure. Your code matches the example for that section. What version of vtk.js are you using?