PBR test

General discussion regarding the OpenMW project.
For technical support, please use the Support subforum.
Post Reply
User avatar
Posts: 390
Joined: 11 Aug 2011, 15:41

PBR test

Post by gus » 19 Apr 2016, 11:43


I did for fun a small PBR (physical based rendering) shader with cook thorrance (the same than in UE4 I believe) in openmw. This is really hacky - I simply replaced the doLighting function in shaders and every parameters are harcoded so every object uses the same parameters.
Obviously this is not working so well with vanilla Morrowing as I believe it would change how you place/handle lights.

I also have a problem with shaders that I don't really get but for some reasons shaders errors do not show up in openmw.log (while they show up in the console). It's complaning about diffuseMapUV not beeing defined in a fragment shader, so many objects appear black.

Here are some preliminary results:

not "rough"
Edit: had some bug in code, looks better now. I'm also artificially increasing the light in the shader otherwise it's way too dark.

User avatar
Posts: 1424
Joined: 26 Mar 2013, 01:48
Location: Sweden

Re: PBR test

Post by lysol » 19 Apr 2016, 15:09

Nice! :) Perhaps I'll have to redo all my Vivec textures someday? :)
Normal mapped texture replacers, exclusive for OpenMW:
My Nexus page

User avatar
Posts: 437
Joined: 22 Nov 2014, 10:51

Re: PBR test

Post by sjek » 19 Apr 2016, 21:26

technically.. would this be shader on top of specular and bump maps and whatnot also vanilla morrowind supports ported to the engine. while using the (mesh, texture, txt..) defined parameters to render defined "physically correct" materials

if so. can the overlap be customised althought that goes complicated pretty fast.

edit: not to tamper discussion with hard questions, those pics looks great. just a firestorch with flame animation or something extra makes the first one stand out. other one is already seraph or terminator
"life is crazy"
"craziness has beauty which only crazies understand" some movie clip in the head.

Post Reply