I use Substance Designer to convert normal map to height map. Just a little bit of tweaking to get it right.PixelWAD wrote:It works here on GTX680 GZDoom 3.5.1. How did you generate heightmap from existing pbr textures?
Hardware shader update
Re: Hardware shader update
-
- Posts: 108
- Joined: Mon Dec 12, 2016 1:12 pm
Re: Hardware shader update
I've got some stupid questions.
What does "speed" do?
I get that AO sets an Ambient Occlusion level, but what type of effect would I see with different values? I assume this effects shadows, but aren't the shadows determined by the specular, normal and height maps?
What is the purpose of Define "Foobar"
What does "speed" do?
I get that AO sets an Ambient Occlusion level, but what type of effect would I see with different values? I assume this effects shadows, but aren't the shadows determined by the specular, normal and height maps?
What is the purpose of Define "Foobar"
Re: Hardware shader update
When it comes to detail settings, including SSAO, "speed" indicates the lowest possible setting. It's the one that's going to look the roughest and have the fewest passes.
-
- Posts: 108
- Joined: Mon Dec 12, 2016 1:12 pm
Re: Hardware shader update
So I assumed that these float numbers:
float Glossiness;
float SpecularLevel;
float Metallic;
float Roughness;
float AO;
Referred to the intensity of the effect. I just ran a test with this (with matching textures):
material texture ashwall
{
normal "normalmaps/ashwall-n.dds"
specular "specular/ashwall-s.dds"
specularlevel 1
roughness 5
ao 5
Shader "shaders/texture/parallax.fp"
}
And I got these errors:
Roughness texture '5' not found in texture 'ASHWALL'
Ambient occlusion texture '5' not found in texture 'ASHWALL'
So those numbers don't reflect level of the effect, but rather the number of a texture.
float Glossiness;
float SpecularLevel;
float Metallic;
float Roughness;
float AO;
Referred to the intensity of the effect. I just ran a test with this (with matching textures):
material texture ashwall
{
normal "normalmaps/ashwall-n.dds"
specular "specular/ashwall-s.dds"
specularlevel 1
roughness 5
ao 5
Shader "shaders/texture/parallax.fp"
}
And I got these errors:
Roughness texture '5' not found in texture 'ASHWALL'
Ambient occlusion texture '5' not found in texture 'ASHWALL'
So those numbers don't reflect level of the effect, but rather the number of a texture.
Re: Hardware shader update
Metallic, Roughtness, AO are texture names and are not valid for a material using a specular map. The intensity of the effect is a float constant inside the parallax.fp file itself.
-
- Posts: 108
- Joined: Mon Dec 12, 2016 1:12 pm
Re: Hardware shader update
I may just stick with specular, normal (and maybe height) maps for now. But in testing, I'm not sure the effects are working at all. I'm not really seeing any fake height effect from the normal or height maps. Dynamic lights are turned on in the engine, but it may just be that I need a map with moving dynamic lights to really see the effect.dpJudas wrote:Metallic, Roughtness, AO are texture names and are not valid for a material using a specular map. The intensity of the effect is a float constant inside the parallax.fp file itself.
Re: Hardware shader update
Nothing. It's probably just a forgotten remnant of debugging/testing something.enderandrew wrote:What is the purpose of Define "Foobar"
Re: Hardware shader update
Is it possible to use height maps in pbr materials? It seems like this only works on specular materials, since I remove the specular input for the pbr to have effect from gldefs file, gzdoom crash.
This works:
material texture 640080
{
normal "normalmaps/640080.png"
specular "specularmaps/640080.png"
shader "shaders/texture/parallax.fp"
texture tex_heightmap "heightmaps/640080.png"
specularlevel 0.7
glossiness 7.0
define "Foobarr"
This works:
material texture 640080
{
ao "ao/640080.png"
metallic "specularmaps/white.png"
roughness "specularmaps/640080.png"
normal "normalmaps/640080.png"
specularlevel 0.7
glossiness 7.0
define "Foobarr"
}
This not working:
material texture 640080
{
ao "ao/640080.png"
metallic "metallic/640080.png"
roughness "specularmaps/640080.png"
normal "normalmaps/640080.png"
//specular "specularmaps/640080.png"
shader "shaders/texture/parallax.fp"
texture tex_heightmap "heightmaps/640080.png"
texture tex_gloss "gloss/640080.png"
specularlevel 0.7
glossiness 7.0
define "Foobarr"
}
This works:
material texture 640080
{
normal "normalmaps/640080.png"
specular "specularmaps/640080.png"
shader "shaders/texture/parallax.fp"
texture tex_heightmap "heightmaps/640080.png"
specularlevel 0.7
glossiness 7.0
define "Foobarr"
This works:
material texture 640080
{
ao "ao/640080.png"
metallic "specularmaps/white.png"
roughness "specularmaps/640080.png"
normal "normalmaps/640080.png"
specularlevel 0.7
glossiness 7.0
define "Foobarr"
}
This not working:
material texture 640080
{
ao "ao/640080.png"
metallic "metallic/640080.png"
roughness "specularmaps/640080.png"
normal "normalmaps/640080.png"
//specular "specularmaps/640080.png"
shader "shaders/texture/parallax.fp"
texture tex_heightmap "heightmaps/640080.png"
texture tex_gloss "gloss/640080.png"
specularlevel 0.7
glossiness 7.0
define "Foobarr"
}