o3de / o3de

Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.

Home Page:https://o3de.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug Report: Material Canvas problems [23.10.3 point release]

Andre-LA opened this issue · comments

Describe the bug
Material Graphs has problems currently at the 23.10.3 point release.

Steps to reproduce
Steps to reproduce the behavior:

  1. Create a project, with default project template
  2. On the Asset Browser, in any directory (in my test, Assets): Right-click → Create → Material Graph, you can select either Standard PBR or Base PBR.
  3. Open the Material Canvas tool
  4. On the Toolbar → Open → Open Material Graph Document
  5. Do a modification on the "untitled" material graph
    a. What I did: Deleted everything (except Standard PBR), then added this flow: "UV → Sample Texture 2d → Base Color (of Standard PBR)
  6. Observe that the preview it's now a blank material, on editor nothing happens, there's multiple job failures now.
  7. Select the Shader Ball entity
  8. At the "Mesh" component, click "Add Material Component"
  9. Select the "untitled" material at the Default Material property
  10. Unless using a simple graph as explained below, the changes doesn't makes an effect

Expected behavior
Material Graphs asset processing should not fail and just presents the expected visuals.

Actual behavior
Material Graphs isn't working as intended:

  • Asset processing failures:
    • By doing the cited modifications, it shows that 13 jobs failed, however, different graphs shows a different number of failed jobs.
  • Maybe because of the above issue, making a graph doesn't makes an effect on editor after processing
  • Trying to reprocess the file, folder, or doing a scan doesn't solves the problem.

Interestingly, a very simple graph works.

Screenshots/Video

output.webm

This simple graph works:
screenshot 2024-04-10 18-03-48

Found in Branch
point-release/23103

Commit ID from o3de/o3de Repository
cd371c6ce07656b324bf1a6590230dd81e6a6f5a

Desktop/Device:

  • Device: PC
  • OS: Fedora Linux
  • Version: 39
  • CPU: AMD Ryzen 5 5600G
  • GPU: Radeon Graphics (Comes with CPU)
  • Memory: 16GB

(issue description updated to remove some unnecessary details (expected behavior that I thought it was unexpected))

I made some more experiments according the talk on discord:

  • By opening each of the test graphs, the graphs that doesn't have the Sample Texture 2d works
    • Making a new graph by just using math (including Float Input) also works

So indeed it seems related to Sample Texture 2d node.

Also made the same experiments on the development branch at 4fd95f2, the same behavior happens (graphs with Sample Texture 2d fails), however, trying to open the test_scrolling_uvs.materialgraph fails on Material Canvas editor:

screenshot 2024-04-15 23-21-39

Tagging @gadams3 to investigate if he is able to.