Export obj: shading artifacts in EEVEE #97588

Closed
opened 2022-04-24 10:18:09 +02:00 by zheng ying · 14 comments

System Information
Operating system: macOS v12.3.1 / windows 10
Graphics card: Intel

Blender Version
2.9.3

Short description of error

  • First , I import gltf file from up .zip file
  • Adjust point light as shown in the images
    截屏2022-04-25 12.51.33.png
    截屏2022-04-25 12.52.03.png
  • After, I export as obj file, then I import this obj file, it shows like this :
gltf obj
微信图片_20220424161218.png 微信图片_20220424161225.png

The point light in the screen at the same place. but the render result it's different.
When related to translucence material , it have this problem. I test original blender file export obj, have the same problem.

.blend file with all steps included (but light type is Sun)
#97588.blend
glasses3.zip

**System Information** Operating system: macOS v12.3.1 / windows 10 Graphics card: Intel **Blender Version** 2.9.3 **Short description of error** - First , I import gltf file from up .zip file - Adjust point light as shown in the images ![截屏2022-04-25 12.51.33.png](https://archive.blender.org/developer/F13026208/截屏2022-04-25_12.51.33.png) ![截屏2022-04-25 12.52.03.png](https://archive.blender.org/developer/F13026217/截屏2022-04-25_12.52.03.png) - After, I export as obj file, then I import this obj file, it shows like this : | gltf | obj | | -- | -- | | ![微信图片_20220424161218.png](https://archive.blender.org/developer/F13021425/微信图片_20220424161218.png) | ![微信图片_20220424161225.png](https://archive.blender.org/developer/F13021430/微信图片_20220424161225.png) | The point light in the screen at the same place. but the render result it's different. When related to translucence material , it have this problem. I test original blender file export obj, have the same problem. .blend file with all steps included (but light type is Sun) [#97588.blend](https://archive.blender.org/developer/F13028204/T97588.blend) [glasses3.zip](https://archive.blender.org/developer/F13021417/glasses3.zip)
Author

Added subscriber: @wingdi

Added subscriber: @wingdi

Added subscriber: @aras_p

Added subscriber: @aras_p
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Thanks for the report. Tested with both old and new obj importer/exporter and it imported your object correctly
I did not get similar render output as yours.
Are you exporting/importing with default settings?
@aras_p , are you able to reproduce this?

3.2.0 2.93
image.png image.png
Graphics card : AMD Radeon(TM) 535 ATI Technologies .```
Thanks for the report. Tested with both old and new obj importer/exporter and it imported your object correctly I did not get similar render output as yours. Are you exporting/importing with default settings? @aras_p , are you able to reproduce this? | 3.2.0 | 2.93 | | -- | -- | | ![image.png](https://archive.blender.org/developer/F13024240/image.png) | ![image.png](https://archive.blender.org/developer/F13024243/image.png) | ```Operating system : Windows-10-10.0.18362-SP0 64 Bits Graphics card : AMD Radeon(TM) 535 ATI Technologies .```
Author

Ok .
After import the obj file, because it's too small, so i zoom in it 5 times.
Then i add a point light , this the point light's position(light position is important):

截屏2022-04-25 12.51.33.png
截屏2022-04-25 12.52.03.png

Ok . After import the obj file, because it's too small, so i zoom in it 5 times. Then i add a point light , this the point light's position(light position is important): ![截屏2022-04-25 12.51.33.png](https://archive.blender.org/developer/F13024364/截屏2022-04-25_12.51.33.png) ![截屏2022-04-25 12.52.03.png](https://archive.blender.org/developer/F13024366/截屏2022-04-25_12.52.03.png)

I can't reproduce the issue of "broken, polygons visible" shading on the glasses. Tried with Blender 3.0, 3.1 and 3.2, everything looks fine.

After exporting and importing the obj file it does look different than after importing from glTF2, but that's because the obj file material model is much more limited and not all the things (related to transparency etc.) export/import in the same way. But still, no "broken shading" artifacts for me like in your images.

I can't reproduce the issue of "broken, polygons visible" shading on the glasses. Tried with Blender 3.0, 3.1 and 3.2, everything looks fine. After exporting and importing the obj file it does look different than after importing from glTF2, but that's because the obj file material model is much more limited and not all the things (related to transparency etc.) export/import in the same way. But still, no "broken shading" artifacts for me like in your images.
Author

I reinstall blender-3.1.2 (windows 10 / GPU Nvidia RTX 2060) and test it again.
if you zoom in obj model 5 times, and put a point light at the position like this :

截屏2022-04-25 12.51.33.png
截屏2022-04-25 12.52.03.png

I am pretty sure you can reproduce it, man.

I reinstall blender-3.1.2 (windows 10 / GPU Nvidia RTX 2060) and test it again. if you zoom in obj model 5 times, and put a point light at the position like this : ![截屏2022-04-25 12.51.33.png](https://archive.blender.org/developer/F13026208/截屏2022-04-25_12.51.33.png) ![截屏2022-04-25 12.52.03.png](https://archive.blender.org/developer/F13026217/截屏2022-04-25_12.52.03.png) I am pretty sure you can reproduce it, man.
Author

If use Cycles render engine don't have this problem. use Eevee have . And when i test it using myself software which using openGL also have this problem.

If use Cycles render engine don't have this problem. use Eevee have . And when i test it using myself software which using openGL also have this problem.
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

I do see some shading artifacts when I switch light type to Sun.
image.png
#97588.blend

I do see some shading artifacts when I switch light type to Sun. ![image.png](https://archive.blender.org/developer/F13028207/image.png) [#97588.blend](https://archive.blender.org/developer/F13028204/T97588.blend)
Pratik Borhade changed title from Export obj file problem. to Export obj: shading artifacts in EEVEE 2022-04-26 05:06:08 +02:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Duplicate of #89630 (FBX/OBJ Import - Show Backfaces makes object look wrong and is ON by default.), will merge reports

Duplicate of #89630 (FBX/OBJ Import - Show Backfaces makes object look wrong and is ON by default.), will merge reports
Member

Closed as duplicate of #89630

Closed as duplicate of #89630
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#97588
No description provided.