Camera Textures not exposed to material definition

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

Moderator: GZDoom 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.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
User avatar
Indecom
Posts: 271
Joined: Mon Jul 13, 2009 3:33 pm

Camera Textures not exposed to material definition

Post by Indecom »

I am able to write a material definition like the following:

Code: Select all

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 all

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Camera Textures not exposed to material definition

Post by Graf Zahl »

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
Indecom
Posts: 271
Joined: Mon Jul 13, 2009 3:33 pm

Re: Camera Textures not exposed to material definition

Post by Indecom »

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

Return to “Bugs [GZDoom]”