bevyengine / bevyengine/bevy

Gltf Materials exported not that well in 0.9.0

Open
#6,753 2 comments 2 reactions 0 assignees View on GitHub
A-Assets A-glTF A-Rendering C-Bug
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version

bevy = { version = "0.9.0", features=["jpeg"] }

## \[Optional\] Relevant system information

latest everything

If your bug is rendering-related, copy the adapter info that appears when you run Bevy.

2022-11-25T14:34:10.304264Z INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 3090", vendor: 4318, device: 8708, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "526.98", backend: Vulkan }
2022-11-25T14:34:10.891988Z INFO bevy_rapier3d::render::lines: Loaded 3d debug lines plugin.

## What you did

Create a new plane in Blender.
Add a texture as the color,
change metallic to 0, lower specular a lot, increase roughness

image

export as gltf embedded
image

## What went wrong

If it's not clear, break this out into:

- what were you expecting?

Same roughness & pbr attrbs applied in bevy, see blender image
![image](https://user-images.githubusercontent.com/24319526/204009505-209f392f-fd78-4649-80d5-3aa11bd3f400.png)

- what actually happened?

High reflectance and not the right roughness & metalicness. Metalic and reflectance should be 0.
![image](https://user-images.githubusercontent.com/24319526/204009629-0bdd8cc2-aeee-4a30-87ab-56b00101aea4.png)

## Additional information

![image](https://user-images.githubusercontent.com/24319526/204009908-89fb6f08-3cd9-4f09-be26-4d946f57c072.png)

![image](https://user-images.githubusercontent.com/24319526/204009931-e3c302e4-72a0-4f37-aef6-5c78194c52b6.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the embedded glTF export from Blender in Bevy 0.9.0 and compare its metallic, roughness, and reflectance values with Blender's material settings. Locate the glTF material import path and its related tests, then verify that the imported material matches the reported Blender values.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.