google / google/filament

If the width of the image is not a multiple of 4, the rendering result by image_view will be skewed.

Open
#8,166 0 comments 0 reactions 1 assignee Assigned to @poweifeng View on GitHub
vulkan
Dominant language
C++
Stars
20.5k
Forks
2.3k
Avg merge
2d 16h
Merged PRs (30d)
74

Description

⚠️ **Issues not using this template will be systematically closed.**

**Describe the bug**
If the width of the image is not a multiple of 4, the rendering result by image_view will be skewed.

**To Reproduce**
Steps to reproduce the behavior:
1. /home/ros/git/github/filament/cmake-build-debug/samples/image_viewer -a vulkan /home/ros/git/momenta/avm/resource/avm_render/texture/rvc_top_view.png

**Expected behavior**
the rendering result by image_view will be ok.

**Screenshots**
![截图 2024-09-29 14-22-04](https://github.com/user-attachments/assets/b2bf3c0e-f796-48ae-9154-45187efa2f14)

**Logs**
/home/ros/git/github/filament/cmake-build-debug/samples/image_viewer -a vulkan /home/ros/git/momenta/avm/resource/avm_render/texture/rvc_top_view.png
FEngine (64 bits) created at 0x6353dcd3bbe0 (threading is enabled)
Vulkan device driver: NVIDIA 550.107.02
Selected physical device 'NVIDIA GeForce MX450' from 3 physical devices. (vendor 0x10de, device 0x1f9c, driver 0x899ac080, api 1.3)
Backend feature level: 3
FEngine feature level: 3
vkCreateSwapchain: 1024x640, VK_FORMAT_B8G8R8A8_UNORM, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR, swapchain-size=3, identity-transform=true, depth=VK_FORMAT_D32_SFLOAT_S8_UINT

**Desktop (please complete the following information):**
- OS: Ubuntu 22.04.5 LTS
- GPU:NVIDIA Corporation TU117M [GeForce MX450]
- Backend: Vulkan

**Smartphone (please complete the following information):**
- Device: -
- OS:-

**Additional context**
![rvc_top_view](https://github.com/user-attachments/assets/ed25e708-3ef1-428d-bec7-7c2efe3f73c7)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.