Some parts of models aren't being rendered

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
Talon1024
 
 
Posts: 373
Joined: Mon Jun 27, 2016 7:26 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

Some parts of models aren't being rendered

Post by Talon1024 »

Title mostly says it all. It doesn't matter which renderer is used; The Softpoly, OpenGL, and Vulkan renderers all have this issue.

Here's a simple example. To run it, just start a game and summon "COD_SSHorch" or "BrokenModelTest". You'll need to use the TNT: Evilution IWAD if you want the BrokenModelTest to look good, however.

The "BrokenModelTest" should look like this, but on builds after March 6 (when the dynamic models per actor pull request was merged), it looks like this. Note the lack of the disc covering the transparent part of the sphere.

Also, if you summon "COD_SSHorch", the seats, doors, steering wheel, and back part of the vehicle will be missing on builds after March 6.
User avatar
Cherno
Posts: 1308
Joined: Tue Dec 06, 2016 11:25 am

Re: Some parts of models aren't being rendered

Post by Cherno »

I have taken a look at the archive's MODELDEF you posted, and the COD_SSHorch and BrokenModelTest definitions both define four models, but have only one FrameIndex line (for model 0). To render all models, you have to have FrameIndex lines for each of the models. This is what the wiki entry for MODELDEF states and how it should, and does, work. Did I misunderstand something :?:
Talon1024
 
 
Posts: 373
Joined: Mon Jun 27, 2016 7:26 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Some parts of models aren't being rendered

Post by Talon1024 »

If that's the case, only the sphere in the "BrokenModelTest" should have been rendered, since the upper and lower panels and the disc are separate models. Nevertheless, there are probably some old mods which depend on the old behavior of rendering all the models, despite the lack of FrameIndex definitions for all the models.
User avatar
Cherno
Posts: 1308
Joined: Tue Dec 06, 2016 11:25 am

Re: Some parts of models aren't being rendered

Post by Cherno »

That could be true, although I have to wonder why those mod creators did this at all. How would the MODELDEF parser know which frame of the non-FrameIndexed model to render?
Talon1024
 
 
Posts: 373
Joined: Mon Jun 27, 2016 7:26 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Some parts of models aren't being rendered

Post by Talon1024 »

I think the other models would use the same frame as the first, if only one FrameIndex definition for the first model is given.
Post Reply

Return to “Closed Bugs [GZDoom]”