.OBJ Model Translucency Inverted

Bugs that have been investigated and resolved somehow.

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.
Post Reply
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

.OBJ Model Translucency Inverted

Post by Major Cooke »

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.
Attachments
ModelBugOBJ.pk3
Load MAP01
(214.71 KiB) Downloaded 31 times
Talon1024
 
 
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

Post by Talon1024 »

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];
User avatar
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

Post by Marisa the Magician »

Ah, winding order strikes again.
dpJudas
 
 
Posts: 3036
Joined: Sat May 28, 2016 1:01 pm

Re: .OBJ Model Translucency Inverted

Post by dpJudas »

Think this one can be marked as fixed - at least I think I saw a commit about this already.
Post Reply

Return to “Closed Bugs [GZDoom]”