PBR test

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

PBR test

Post by gus »

Hi,

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:

"rough"
screenshot002.png
not "rough"
screenshot003.png
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
lysol
Posts: 1513
Joined: 26 Mar 2013, 01:48
Location: Sweden

Re: PBR test

Post by lysol »

Nice! :) Perhaps I'll have to redo all my Vivec textures someday? :)
User avatar
sjek
Posts: 442
Joined: 22 Nov 2014, 10:51

Re: PBR test

Post by sjek »

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
Post Reply