Strange Lighting On Models (GZDB "Export")

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Post Reply
User avatar
RastaManGames
Posts: 375
Joined: Wed Mar 12, 2014 11:13 pm
Graphics Processor: nVidia with Vulkan support
Location: Russian Federation, Krasnoyarsk

Strange Lighting On Models (GZDB "Export")

Post by RastaManGames »

I tried to convert a mess with lines, vertexes and sectors in a poor model via "export" option in GZDB.
Then i created "md3" model with four parts. All works fine, except one fact...
Any light makes one part really strange (dark areas are appearing with highlighted lines).
What is this and where i messed up so bad?
I know, that this question more for 3D-Designers, but it's kinda GZDoom related...

Light also works strange with other models:




P.S.: In GZDB i see, that lighting are good, but it looks really worse ingame...
User avatar
axredneck
Posts: 354
Joined: Mon Dec 11, 2017 2:09 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Arch
Graphics Processor: nVidia with Vulkan support
Location: Russia
Contact:

Re: Strange Lighting On Models (GZDB "Export")

Post by axredneck »

You should add seams to your models
User avatar
RastaManGames
Posts: 375
Joined: Wed Mar 12, 2014 11:13 pm
Graphics Processor: nVidia with Vulkan support
Location: Russian Federation, Krasnoyarsk

Re: Strange Lighting On Models (GZDB "Export")

Post by RastaManGames »

Okay. Ice is moving right from this point (which is really good).
There is any tutorials how to do this with Blender/Misfit Model 3D/MilkShape 3D? :(
User avatar
axredneck
Posts: 354
Joined: Mon Dec 11, 2017 2:09 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Arch
Graphics Processor: nVidia with Vulkan support
Location: Russia
Contact:

Re: Strange Lighting On Models (GZDB "Export")

Post by axredneck »

Use "Edge split" modifier in Blender, or do it manually: select sharp edges, then "Edge > Edge split". But maybe there is better way, i'm unsure.
User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Strange Lighting On Models (GZDB "Export")

Post by Enjay »

It might also be worth running your model through Npherno's MD3 Compiler to fix the normals. I think I got it from here https://www.wolffiles.de/index.php?filebase&fid=1856

You may also find some useful information here: viewtopic.php?t=62350
User avatar
RastaManGames
Posts: 375
Joined: Wed Mar 12, 2014 11:13 pm
Graphics Processor: nVidia with Vulkan support
Location: Russian Federation, Krasnoyarsk

Re: Strange Lighting On Models (GZDB "Export")

Post by RastaManGames »

@Enjay, you are God of GZDoom modding/mapping. Thank you so much. :wub:
Method with "Npherno's MD3 Compiler" helps and my crappy models now have proper lighting!

User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Strange Lighting On Models (GZDB "Export")

Post by Enjay »

Glad it worked. As you can see from the thread I linked to, it was folks on here who fixed me up with nphernos, I'm just repeating the good advice. :)

Speaking of which, I noticed that you mentioned Misfit model. There is a continuation of Misfit called Maverick Model 3D. It is maintained (unlike Misfit) and has a few fixes and enhancements over misfit.

https://clover.moe/mm3d
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Strange Lighting On Models (GZDB "Export")

Post by Nash »

Be aware that blindly using "recalculate normals" in Npherno may not necessarily always be the best solution. While the algorithm in Npherno is pretty good for most objects and shapes, sometimes for specific artistic purposes, you may want to pay attention to your manually-defined smooth groups.

In Blender, this is best done by manually marking your sharp edges (select edges, press Spacebar then type "mark sharp"), and then using the Edge Split modifier and unticking "edge angle".
Post Reply

Return to “Assets (and other stuff)”