Cycles HIP-RT wireframe artifacts in Ortographic view #117961

Open
opened 2024-02-07 21:09:44 +01:00 by Gabriel Radić · 13 comments

System Information
Operating system: Windows 10 2024
Graphics card: 7900 XTX

Blender Version
Broken: 4.0
Worked: Not sure, haven't tested other versions

Description of issue:
In orthographic view, HIP-RT can produce some wireframe artifacts on meshes. Here are some examples of the issue:

image image image

Steps to reproduce:

  1. Download the file attached below.
  2. Render the viewport in orthographic view with HIP-RT on a compatible device and notice the wireframe artifacts.
  3. Try again with the CPU (using Embree BVH) or HIP with HIP-RT disabled (using the BVH2 BVH) and notice how the artifacts aren't there.
**System Information** Operating system: Windows 10 2024 Graphics card: 7900 XTX **Blender Version** Broken: 4.0 Worked: Not sure, haven't tested other versions **Description of issue:** In orthographic view, HIP-RT can produce some wireframe artifacts on meshes. Here are some examples of the issue: |![image](/attachments/bc1c68e3-977c-48b2-bc08-3658eec19bd6)|![image](/attachments/a2545e6b-c786-4d43-8248-04b1112ed682)|![image](/attachments/0e59199c-11d6-4900-858d-e8db02a721c3)| |-|-|-| **Steps to reproduce:** 1. Download the file attached below. 2. Render the viewport in orthographic view with HIP-RT on a compatible device and notice the wireframe artifacts. 3. Try again with the CPU (using Embree BVH) or HIP with HIP-RT disabled (using the BVH2 BVH) and notice how the artifacts aren't there.
Gabriel Radić added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2024-02-07 21:09:44 +01:00
Member

Hi, thanks for the report. Not much we would be able to do without .blend file. Could you remove other assets and only place the necessary object in the file where the shading is affected.
Does this happen in viewport of image render? Does this happen after tweaking the clip end value?

Hi, thanks for the report. Not much we would be able to do without .blend file. Could you remove other assets and only place the necessary object in the file where the shading is affected. Does this happen in viewport of image render? Does this happen after tweaking the clip end value?
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2024-02-08 05:42:39 +01:00
Member

Edit: Sorry, I was typing this while Pratik was typing up their comment.


Since the scene is under NDA, is it possible for you to provide a simplified scene without any of the NDA content? Or are you able to provide instructions on reproducing this issue?

Useful information include:

  1. What render engine are you using (Cycles or EEVEE or something else)
  2. The exact steps to reproduce (You mention orthographic view, anything else? Like do you need to use the GPU for rendering? A specific shader?)
  3. You mention this is a AMD issue? AMD GPU or CPU? What makes you say it's a AMD issue?

If you don't want to do either of those, you can privately share the file with me here (assuming the file is less than 2GB in size):
Edit: Removed link

Disclosure: I am a volunteer triager for Blender. I do not work at the Blender foundation. When you share the file with me, I will investigate the issue, figure out the steps to reproduce it (if I can reproduce the issue), then create a new file avoiding your NDA content and share that new file here for others to use in testing/bug fixing.

Edit: Sorry, I was typing this while Pratik was typing up their comment. --- Since the scene is under NDA, is it possible for you to provide a simplified scene without any of the NDA content? Or are you able to provide instructions on reproducing this issue? Useful information include: 1. What render engine are you using (Cycles or EEVEE or something else) 2. The exact steps to reproduce (You mention orthographic view, anything else? Like do you need to use the GPU for rendering? A specific shader?) 3. You mention this is a AMD issue? AMD GPU or CPU? What makes you say it's a AMD issue? If you don't want to do either of those, you can privately share the file with me here (assuming the file is less than 2GB in size): Edit: Removed link Disclosure: I am a volunteer triager for Blender. I do not work at the Blender foundation. When you share the file with me, I will investigate the issue, figure out the steps to reproduce it (if I can reproduce the issue), then create a new file avoiding your NDA content and share that new file here for others to use in testing/bug fixing.
Author

Ive managed to create a Blend file, that is NDA free. @PratikPB2123

https://1drv.ms/u/s!AhWJpHthcQCol5dxA049CR0SWLv4-A?e=ZYSeAU (For some reason it didn't let me upload here directly)

1.For Render Engine - Cycles
2. If you put Orto, and go on the top view for instance, and the mesh has some complexity in it, it shows this error.
3.Why I think its an AMD issue, as I've seen this way back with my Vega 64, around 2-3 years ago, so its more of an assumption than anything else.

But my scene could be at fault, although it was a fresh scene when I started out.

I want to note that this effect can be even see in the viewport without cycles.

image

Ive managed to create a Blend file, that is NDA free. @PratikPB2123 https://1drv.ms/u/s!AhWJpHthcQCol5dxA049CR0SWLv4-A?e=ZYSeAU (For some reason it didn't let me upload here directly) 1.For Render Engine - Cycles 2. If you put Orto, and go on the top view for instance, and the mesh has some complexity in it, it shows this error. 3.Why I think its an AMD issue, as I've seen this way back with my Vega 64, around 2-3 years ago, so its more of an assumption than anything else. But my scene could be at fault, although it was a fresh scene when I started out. I want to note that this effect can be even see in the viewport without cycles. ![image](/attachments/3b94dcfa-82dc-40b6-97b1-b879d39cf108)
389 KiB
Author

To even further elaborate if I use CPU compute it has no issues again what so ever.

To even further elaborate if I use CPU compute it has no issues again what so ever.
Member

Thanks. File has missing textures though. Could you pack them?: File > External Data > Pack Resources -> save .blend

Thanks. File has missing textures though. Could you pack them?: `File > External Data > Pack Resources` -> save .blend
Author

@PratikPB2123 The texture are not needed, the issue persists even without them.
image

Example in the image

image
image

It is as if the mesh wireframe is rendered for some reason.

@PratikPB2123 The texture are not needed, the issue persists even without them. ![image](/attachments/ab44a0f2-e52a-4cac-9665-60d40c076e74) Example in the image ![image](/attachments/36883aee-3bb0-45fb-a919-c72721417c25) ![image](/attachments/c7166691-9472-48fe-b67e-2a3c3dcd6c28) It is as if the mesh wireframe is rendered for some reason.
Member

I want to note that this effect can be even see in the viewport without cycles.

This is due to very small clip start value.

Re. Cycles render output: Unable to confirm with NVIDIA 3050 and AMD iGPU: image

Can you check in 4.1 build: https://builder.blender.org/download/daily/

@Alaska , guess you have AMD graphics card. If so, can you check as well? 🙂

> I want to note that this effect can be even see in the viewport without cycles. This is due to very small clip start value. Re. Cycles render output: Unable to confirm with NVIDIA 3050 and AMD iGPU: [image](/attachments/13a429a7-64c6-4e1a-8dbb-ca6738722456) Can you check in 4.1 build: https://builder.blender.org/download/daily/ @Alaska , guess you have AMD graphics card. If so, can you check as well? 🙂
2.3 MiB
Author

@PratikPB2123 I've added 1cm to 1000cm on the camera itself, the issue remained.

I'll download the 4.1.

@PratikPB2123 I've added 1cm to 1000cm on the camera itself, the issue remained. I'll download the 4.1.
Member

I ran some quick tests.

CPU Embree: No issue
BVH2 (Used by Metal, HIP, CUDA, and oneAPI): No issue.
Metal-RT (On Apple M1 Pro): No issue.
OptiX (On a RTX 4090): No issue.
HIP-RT (On a RX 7800XT): Can reproduce the issue.

It is a precision related issue (and I'm pretty sure I saw a bug report similar to this a while ago, I'll go look for it after this).

I say it's a precision related issue because the issue goes away as Clip End is reduced. But it also gets worse as Clip End is increased (and if Clip End is increased enough, other BVH options like Embree, BVH2, Metal-RT, etc, also experience the issue).

Based on this, @GabrielRadic my recommendation is to disable HIP-RT at the moment. You will get more reliably and predictable results without it.

I ran some quick tests. CPU Embree: No issue BVH2 (Used by Metal, HIP, CUDA, and oneAPI): No issue. Metal-RT (On Apple M1 Pro): No issue. OptiX (On a RTX 4090): No issue. HIP-RT (On a RX 7800XT): Can reproduce the issue. It is a precision related issue (and I'm pretty sure I saw a bug report similar to this a while ago, I'll go look for it after this). I say it's a precision related issue because the issue goes away as `Clip End` is reduced. But it also gets worse as `Clip End` is increased (and if `Clip End` is increased enough, other BVH options like Embree, BVH2, Metal-RT, etc, also experience the issue). Based on this, @GabrielRadic my recommendation is to disable HIP-RT at the moment. You will get more reliably and predictable results without it.
Alaska added
Status
Confirmed
Module
Render & Cycles
and removed
Status
Needs Information from User
labels 2024-02-08 12:34:33 +01:00
Author

4.1 Same:
image

4.1 Same: ![image](/attachments/50f7bbd4-8e49-418e-9109-1ff9b690db73)
2.2 MiB
Author

I ran some quick tests.

CPU Embree: No issue
BVH2 (Used by Metal, HIP, CUDA, and oneAPI): No issue.
Metal-RT (On Apple M1 Pro): No issue.
OptiX (On a RTX 4090): No issue.
HIP-RT (On a RX 7800XT): Can reproduce the issue.

It is a precision related issue (and I'm pretty sure I saw a bug report similar to this a while ago, I'll go look for it after this).

I say it's a precision related issue because the issue goes away as Clip End is reduced. But it also gets worse as Clip End is increased (and if Clip End is increased enough, other BVH options like Embree, BVH2, Metal-RT, etc, also experience the issue).

Based on this, @GabrielRadic my recommendation is to disable HIP-RT at the moment. You will get more reliably and predictable results without it.

Alright, glad its not only on my end.
The issue is, that using Orto makes the clip "fix" invalid, as there is no proper depth and its always there almost. You can even see it in viewport if you look at specific angles with Orto enabled, like pressing 5 on Numpad and 7 for top view for instance.

The issue is quite wild and bring a lot of issues to people who render like this.

> I ran some quick tests. > > CPU Embree: No issue > BVH2 (Used by Metal, HIP, CUDA, and oneAPI): No issue. > Metal-RT (On Apple M1 Pro): No issue. > OptiX (On a RTX 4090): No issue. > HIP-RT (On a RX 7800XT): Can reproduce the issue. > > It is a precision related issue (and I'm pretty sure I saw a bug report similar to this a while ago, I'll go look for it after this). > > I say it's a precision related issue because the issue goes away as `Clip End` is reduced. But it also gets worse as `Clip End` is increased (and if `Clip End` is increased enough, other BVH options like Embree, BVH2, Metal-RT, etc, also experience the issue). > > Based on this, @GabrielRadic my recommendation is to disable HIP-RT at the moment. You will get more reliably and predictable results without it. Alright, glad its not only on my end. The issue is, that using Orto makes the clip "fix" invalid, as there is no proper depth and its always there almost. You can even see it in viewport if you look at specific angles with Orto enabled, like pressing 5 on Numpad and 7 for top view for instance. The issue is quite wild and bring a lot of issues to people who render like this.
Member

The issue is quite similar, and probably the same as #97259. But it's much worse for HIP-RT than the other BVHs.

Modifications to HIP-RT may help with this, or modifications in Cycle may help. I'm tagging @salipour for the HIP-RT side of things, and @brecht for the Cycles side of things.

The issue is quite similar, and probably the same as #97259. But it's much worse for HIP-RT than the other BVHs. Modifications to HIP-RT may help with this, or modifications in Cycle may help. I'm tagging @salipour for the HIP-RT side of things, and @brecht for the Cycles side of things.
Alaska changed title from Blender 4.0 AMD Ortographic issues to Cycles HIP-RT wireframe artifacts in Ortographic view 2024-02-08 13:04:42 +01:00

Without having looked at the HIP-RT code for this, perhaps clipping the ray length to the top level BVH bounding box would help.

Without having looked at the HIP-RT code for this, perhaps clipping the ray length to the top level BVH bounding box would help.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#117961
No description provided.