editor icon indicating copy to clipboard operation
editor copied to clipboard

Non-prefiltered cubemap is ignored if scene has prefiltered skybox

Open Maksims opened this issue 4 years ago • 4 comments

Description

If the scene has prefiltered skybox, then applying non-prefiltered cubemap onto material is ignored.

Steps to Reproduce:

  1. Create new project from Model View Starter Kit
  2. Open Editor
  3. Download "Milky Way" from Asset Store to the project
  4. Select "Milky Way" cubemap
  5. Hit "Delete Prefiltered Data"
  6. Apply "Milky Way" cubemap on "plastic-orange" material.

Issue:

Applied cubemap is ignored. Visually nothing happens.

Solution:

Ensure cubemap is applied, regardless of prefilter data. It is expected that cubemap to be used without prefiltered information on material, and scene skybox to be ignored completelly.

Maksims avatar Apr 09 '21 10:04 Maksims

@slimbuck I can confirm this still happens as @Maksims describes. What do you consider to be the desired behavior here?

willeastcott avatar Nov 03 '22 00:11 willeastcott

Just tried this. The issue appears to be in the editor only - launch page uses cubemap correctly. (And reloading editor tab also results in correct cubemap in editor).

slimbuck avatar Jan 01 '23 14:01 slimbuck

I suspect this is an engine issue. From a quick investigation, lines of suspicion:

https://github.com/playcanvas/engine/blob/main/src/framework/handlers/material.js#L188

https://github.com/playcanvas/engine/blob/main/src/framework/handlers/material.js#L274

willeastcott avatar Dec 14 '25 17:12 willeastcott

Possibly related: #358

willeastcott avatar Dec 14 '25 17:12 willeastcott