Camera Textures not exposed to material definition

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Camera Textures not exposed to material definition

Postby Indecom » Fri Jul 13, 2018 6:58 pm

I am able to write a material definition like the following:
Code: Select allExpand view
material texture "ATEX"
{
    specular materials/specular/ATEX.png
    normal materials/normal/ATEX.png
    brightmap "CAMTEX"
    glossiness 32
    specularlevel 1
}


The camera texture works as a brightmap for texture ATEX:


However if I try the following code:

Code: Select allExpand view
material texture "CAMTEX"
{
    specular materials/specular/ATEX.png
    normal materials/normal/ATEX.png
    brightmap materials/brightmap/ATEX.png
    glossiness 32
    specularlevel 1
}


This whole material defintion is completely ignored and the camera texture is displayed in game as if it were just a plain texture.


Is this a bug or a feature or something that was just overlooked? It would be beyond amazing to have the ability to assign material definitions to Camera Textures.
User avatar
Indecom
Check out QuakenDoom 2, my Q2 TC for Doom 2
 
Joined: 13 Jul 2009

Re: Camera Textures not exposed to material definition

Postby Graf Zahl » Sat Jul 14, 2018 1:04 am

Keep in mind that camera textures are not normal textures because they aren't created from some image but from the result of a render pass. They are set up differently than anything else and even though they appear to work as a brightmap in your example, even that is more or less a side effect of how the material definition uses textures and not an intended effect.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Camera Textures not exposed to material definition

Postby Indecom » Sat Jul 14, 2018 1:28 am

is there any way for us to have access to them for this type of situation, or rather, is there any reason why that shouldn't be incorporated into the engine? With the recent advent of the awesome material system, it would be fantastic to be able to apply those to any surface that the author deems necessary.
User avatar
Indecom
Check out QuakenDoom 2, my Q2 TC for Doom 2
 
Joined: 13 Jul 2009


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest