I have checked and double checked everything to ensure my normals are correct. However, OBJ rendering is done apparently backwards in GZDoom when given a Translucent renderstyle.
Doesn't matter if it's OpenGL or Vulkan, it affects both.
.OBJ Model Translucency Inverted
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
- Major Cooke
- Posts: 8170
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
.OBJ Model Translucency Inverted
- Attachments
-
- ModelBugOBJ.pk3
- Load MAP01
- (214.71 KiB) Downloaded 31 times
-
-
- Posts: 374
- Joined: Mon Jun 27, 2016 7:26 pm
- Preferred Pronouns: He/Him
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: .OBJ Model Translucency Inverted
Changing line 391 of models_obj.cpp to this fixes the face normal direction issue:
Code: Select all
OBJFaceSide &curSide = surfaces[i].tris[j].sides[2 - side];
- Marisa the Magician
- Posts: 3886
- Joined: Fri Feb 08, 2008 9:15 am
- Preferred Pronouns: She/Her
- Operating System Version (Optional): (btw I use) Arch
- Graphics Processor: nVidia with Vulkan support
- Location: Vigo, Galicia
- Contact:
Re: .OBJ Model Translucency Inverted
Ah, winding order strikes again.
Re: .OBJ Model Translucency Inverted
Think this one can be marked as fixed - at least I think I saw a commit about this already.