Negative add_ambient values don't survive export [SOLVED]

Post Reply
User avatar
Smarty
Beta tester
Posts: 1332
Joined: 30 Jun 2015 01:56
Location: Ontario, Canada
Contact:

Negative add_ambient values don't survive export [SOLVED]

#1 Post by Smarty » 29 Jul 2016 14:37

Like the title says, when negative values are set for add_ambient (SCS' artists use -0.25 as part of their chrome effect), the exported trait file has a value of 0 instead. I've tried manually editing the affected trait files and turning auto export off. The conversion tools seem to preserve the add_ambient value in this case, but then I run into another issue where the diffuse colour in the converted mat file doesn't match the diffuse colour in the trait file. I feel like I'm playing 'whac-a-mole.' :lol:

One of the affected trait files (material in question is the 'chrome' look for alias 'alcoa_r'; the default look exports and converts without issue):

Code: Select all

# Look Names:
#	default
#	chrome
#
# Variant Names:
#	right
#	left
#
Header {
    FormatVersion: 1
    Source: "Blender 2.76.0 (hash: f337fea), SCS Blender Tools: 1.4.4ae6843"
    Type: "Trait"
    Name: "r_alcoa_225x825"
}
Global {
    LookCount: 2
    VariantCount: 2
    PartCount: 2
    MaterialCount: 3
}
Look {
    Name: "default"
    Material {
        Alias: "alcoa_logo"
        Effect: "eut2.dif.spec.over"
        Flags: 0
        AttributeCount: 5
        TextureCount: 1
        Attribute {
            Format: FLOAT3
            Tag: "diffuse"
            Value: ( 1.0 1.0 1.0 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "specular"
            Value: ( 0.4672015905380249 0.4672015905380249 0.4672015905380249 )
        }
        Attribute {
            Format: FLOAT
            Tag: "shininess"
            Value: ( 15.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "add_ambient"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "reflection"
            Value: ( 0.0 )
        }
        Texture {
            Tag: "texture[0]:texture_base"
            Value: "/vehicle/truck/upgrade/rim/scr/alcoa_logo"
        }
    }
    Material {
        Alias: "r_hub"
        Effect: "eut2.dif.spec.add.env"
        Flags: 0
        AttributeCount: 7
        TextureCount: 2
        Attribute {
            Format: FLOAT3
            Tag: "diffuse"
            Value: ( 0.5225210189819336 0.5225210189819336 0.5225210189819336 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "specular"
            Value: ( 1.0 1.0 1.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "shininess"
            Value: ( 15.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "add_ambient"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "reflection"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "env_factor"
            Value: ( 0.8209999799728394 0.8209999799728394 0.8209999799728394 )
        }
        Attribute {
            Format: FLOAT2
            Tag: "fresnel"
            Value: ( 0.20000000298023224 0.6000000238418579 )
        }
        Texture {
            Tag: "texture[0]:texture_base"
            Value: "/vehicle/truck/upgrade/rim/scr/alcoa_r"
        }
        Texture {
            Tag: "texture[1]:texture_reflection"
            Value: "/material/environment/vehicle_reflection"
        }
    }
    Material {
        Alias: "alcoa_r"
        Effect: "eut2.dif.spec.add.env"
        Flags: 0
        AttributeCount: 7
        TextureCount: 2
        Attribute {
            Format: FLOAT3
            Tag: "diffuse"
            Value: ( 0.5225210189819336 0.5225210189819336 0.5225210189819336 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "specular"
            Value: ( 1.0 1.0 1.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "shininess"
            Value: ( 15.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "add_ambient"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "reflection"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "env_factor"
            Value: ( 0.8209999799728394 0.8209999799728394 0.8209999799728394 )
        }
        Attribute {
            Format: FLOAT2
            Tag: "fresnel"
            Value: ( 0.20000000298023224 0.6000000238418579 )
        }
        Texture {
            Tag: "texture[0]:texture_base"
            Value: "/vehicle/truck/upgrade/rim/scr/alcoa_r"
        }
        Texture {
            Tag: "texture[1]:texture_reflection"
            Value: "/material/environment/vehicle_reflection"
        }
    }
}
Look {
    Name: "chrome"
    Material {
        Alias: "alcoa_logo"
        Effect: "eut2.dif.spec.over"
        Flags: 0
        AttributeCount: 5
        TextureCount: 1
        Attribute {
            Format: FLOAT3
            Tag: "diffuse"
            Value: ( 1.0 1.0 1.0 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "specular"
            Value: ( 0.4672015905380249 0.4672015905380249 0.4672015905380249 )
        }
        Attribute {
            Format: FLOAT
            Tag: "shininess"
            Value: ( 15.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "add_ambient"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "reflection"
            Value: ( 0.0 )
        }
        Texture {
            Tag: "texture[0]:texture_base"
            Value: "/vehicle/truck/upgrade/rim/scr/alcoa_logo"
        }
    }
    Material {
        Alias: "r_hub"
        Effect: "eut2.dif.spec.add.env"
        Flags: 0
        AttributeCount: 7
        TextureCount: 2
        Attribute {
            Format: FLOAT3
            Tag: "diffuse"
            Value: ( 0.5225210189819336 0.5225210189819336 0.5225210189819336 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "specular"
            Value: ( 1.0 1.0 1.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "shininess"
            Value: ( 15.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "add_ambient"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "reflection"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "env_factor"
            Value: ( 0.8209999799728394 0.8209999799728394 0.8209999799728394 )
        }
        Attribute {
            Format: FLOAT2
            Tag: "fresnel"
            Value: ( 0.20000000298023224 0.6000000238418579 )
        }
        Texture {
            Tag: "texture[0]:texture_base"
            Value: "/vehicle/truck/upgrade/rim/scr/alcoa_r"
        }
        Texture {
            Tag: "texture[1]:texture_reflection"
            Value: "/material/environment/vehicle_reflection"
        }
    }
    Material {
        Alias: "alcoa_r"
        Effect: "eut2.dif.spec.add.env"
        Flags: 0
        AttributeCount: 7
        TextureCount: 2
        Attribute {
            Format: FLOAT3
            Tag: "diffuse"
            Value: ( 0.2630000114440918 0.2630000114440918 0.2630000114440918 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "specular"
            Value: ( 1.0 1.0 1.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "shininess"
            Value: ( 70.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "add_ambient"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "reflection"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "env_factor"
            Value: ( 1.2999999523162842 1.2999999523162842 1.2999999523162842 )
        }
        Attribute {
            Format: FLOAT2
            Tag: "fresnel"
            Value: ( 1.0 1.0 )
        }
        Texture {
            Tag: "texture[0]:texture_base"
            Value: "/vehicle/truck/upgrade/rim/scr/alcoa_r"
        }
        Texture {
            Tag: "texture[1]:texture_reflection"
            Value: "/material/environment/vehicle_reflection"
        }
    }
}
Variant {
    Name: "right"
    Part {
        Name: "l"
        AttributeCount: 1
        Attribute {
            Format: INT
            Tag: "visible"
            Value: ( 0 )
        }
    }
    Part {
        Name: "r"
        AttributeCount: 1
        Attribute {
            Format: INT
            Tag: "visible"
            Value: ( 1 )
        }
    }
}
Variant {
    Name: "left"
    Part {
        Name: "l"
        AttributeCount: 1
        Attribute {
            Format: INT
            Tag: "visible"
            Value: ( 1 )
        }
    }
    Part {
        Name: "r"
        AttributeCount: 1
        Attribute {
            Format: INT
            Tag: "visible"
            Value: ( 0 )
        }
    }
}

How it should look:

Code: Select all

# Look Names:
#	default
#	chrome
#
# Variant Names:
#	right
#	left
#
Header {
    FormatVersion: 1
    Source: "Blender 2.76.0 (hash: f337fea), SCS Blender Tools: 1.4.4ae6843"
    Type: "Trait"
    Name: "r_alcoa_225x825"
}
Global {
    LookCount: 2
    VariantCount: 2
    PartCount: 2
    MaterialCount: 3
}
Look {
    Name: "default"
    Material {
        Alias: "alcoa_logo"
        Effect: "eut2.dif.spec.over"
        Flags: 0
        AttributeCount: 5
        TextureCount: 1
        Attribute {
            Format: FLOAT3
            Tag: "diffuse"
            Value: ( 1.0 1.0 1.0 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "specular"
            Value: ( 0.4672015905380249 0.4672015905380249 0.4672015905380249 )
        }
        Attribute {
            Format: FLOAT
            Tag: "shininess"
            Value: ( 15.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "add_ambient"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "reflection"
            Value: ( 0.0 )
        }
        Texture {
            Tag: "texture[0]:texture_base"
            Value: "/vehicle/truck/upgrade/rim/scr/alcoa_logo"
        }
    }
    Material {
        Alias: "r_hub"
        Effect: "eut2.dif.spec.add.env"
        Flags: 0
        AttributeCount: 7
        TextureCount: 2
        Attribute {
            Format: FLOAT3
            Tag: "diffuse"
            Value: ( 0.5225210189819336 0.5225210189819336 0.5225210189819336 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "specular"
            Value: ( 1.0 1.0 1.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "shininess"
            Value: ( 15.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "add_ambient"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "reflection"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "env_factor"
            Value: ( 0.8209999799728394 0.8209999799728394 0.8209999799728394 )
        }
        Attribute {
            Format: FLOAT2
            Tag: "fresnel"
            Value: ( 0.20000000298023224 0.6000000238418579 )
        }
        Texture {
            Tag: "texture[0]:texture_base"
            Value: "/vehicle/truck/upgrade/rim/scr/alcoa_r"
        }
        Texture {
            Tag: "texture[1]:texture_reflection"
            Value: "/material/environment/vehicle_reflection"
        }
    }
    Material {
        Alias: "alcoa_r"
        Effect: "eut2.dif.spec.add.env"
        Flags: 0
        AttributeCount: 7
        TextureCount: 2
        Attribute {
            Format: FLOAT3
            Tag: "diffuse"
            Value: ( 0.5225210189819336 0.5225210189819336 0.5225210189819336 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "specular"
            Value: ( 1.0 1.0 1.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "shininess"
            Value: ( 15.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "add_ambient"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "reflection"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "env_factor"
            Value: ( 0.8209999799728394 0.8209999799728394 0.8209999799728394 )
        }
        Attribute {
            Format: FLOAT2
            Tag: "fresnel"
            Value: ( 0.20000000298023224 0.6000000238418579 )
        }
        Texture {
            Tag: "texture[0]:texture_base"
            Value: "/vehicle/truck/upgrade/rim/scr/alcoa_r"
        }
        Texture {
            Tag: "texture[1]:texture_reflection"
            Value: "/material/environment/vehicle_reflection"
        }
    }
}
Look {
    Name: "chrome"
    Material {
        Alias: "alcoa_logo"
        Effect: "eut2.dif.spec.over"
        Flags: 0
        AttributeCount: 5
        TextureCount: 1
        Attribute {
            Format: FLOAT3
            Tag: "diffuse"
            Value: ( 1.0 1.0 1.0 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "specular"
            Value: ( 0.4672015905380249 0.4672015905380249 0.4672015905380249 )
        }
        Attribute {
            Format: FLOAT
            Tag: "shininess"
            Value: ( 15.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "add_ambient"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "reflection"
            Value: ( 0.0 )
        }
        Texture {
            Tag: "texture[0]:texture_base"
            Value: "/vehicle/truck/upgrade/rim/scr/alcoa_logo"
        }
    }
    Material {
        Alias: "r_hub"
        Effect: "eut2.dif.spec.add.env"
        Flags: 0
        AttributeCount: 7
        TextureCount: 2
        Attribute {
            Format: FLOAT3
            Tag: "diffuse"
            Value: ( 0.5225210189819336 0.5225210189819336 0.5225210189819336 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "specular"
            Value: ( 1.0 1.0 1.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "shininess"
            Value: ( 15.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "add_ambient"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "reflection"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "env_factor"
            Value: ( 0.8209999799728394 0.8209999799728394 0.8209999799728394 )
        }
        Attribute {
            Format: FLOAT2
            Tag: "fresnel"
            Value: ( 0.20000000298023224 0.6000000238418579 )
        }
        Texture {
            Tag: "texture[0]:texture_base"
            Value: "/vehicle/truck/upgrade/rim/scr/alcoa_r"
        }
        Texture {
            Tag: "texture[1]:texture_reflection"
            Value: "/material/environment/vehicle_reflection"
        }
    }
    Material {
        Alias: "alcoa_r"
        Effect: "eut2.dif.spec.add.env"
        Flags: 0
        AttributeCount: 7
        TextureCount: 2
        Attribute {
            Format: FLOAT3
            Tag: "diffuse"
            Value: ( 0.2630000114440918 0.2630000114440918 0.2630000114440918 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "specular"
            Value: ( 1.0 1.0 1.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "shininess"
            Value: ( 70.0 )
        }
        Attribute {
            Format: FLOAT
            Tag: "add_ambient"
            Value: ( -0.25 )
        }
        Attribute {
            Format: FLOAT
            Tag: "reflection"
            Value: ( 0.0 )
        }
        Attribute {
            Format: FLOAT3
            Tag: "env_factor"
            Value: ( 1.2999999523162842 1.2999999523162842 1.2999999523162842 )
        }
        Attribute {
            Format: FLOAT2
            Tag: "fresnel"
            Value: ( 1.0 1.0 )
        }
        Texture {
            Tag: "texture[0]:texture_base"
            Value: "/vehicle/truck/upgrade/rim/scr/alcoa_r"
        }
        Texture {
            Tag: "texture[1]:texture_reflection"
            Value: "/material/environment/vehicle_reflection"
        }
    }
}
Variant {
    Name: "right"
    Part {
        Name: "l"
        AttributeCount: 1
        Attribute {
            Format: INT
            Tag: "visible"
            Value: ( 0 )
        }
    }
    Part {
        Name: "r"
        AttributeCount: 1
        Attribute {
            Format: INT
            Tag: "visible"
            Value: ( 1 )
        }
    }
}
Variant {
    Name: "left"
    Part {
        Name: "l"
        AttributeCount: 1
        Attribute {
            Format: INT
            Tag: "visible"
            Value: ( 1 )
        }
    }
    Part {
        Name: "r"
        AttributeCount: 1
        Attribute {
            Format: INT
            Tag: "visible"
            Value: ( 0 )
        }
    }
}

How the former is converted (just alcoa_r's 'chrome' look):

Code: Select all

material : "eut2.dif.spec.add.env.fx" {
	texture[0] : "/vehicle/truck/upgrade/rim/scr/alcoa_r.tobj"
	texture_name[0] : "texture_base"
	texture[1] : "/material/environment/vehicle_reflection.tobj"
	texture_name[1] : "texture_reflection"
	add_ambient : 0
	diffuse : { 0.0562366 , 0.0562366 , 0.0562366 }
	env_factor : { 1.3 , 1.3 , 1.3 }
	fresnel : { 1 , 1 }
	reflection : 0
	shininess : 70
	specular : { 1 , 1 , 1 }
}
...and how the latter is converted:

Code: Select all

material : "eut2.dif.spec.add.env.fx" {
	texture[0] : "/vehicle/truck/upgrade/rim/scr/alcoa_r.tobj"
	texture_name[0] : "texture_base"
	texture[1] : "/material/environment/vehicle_reflection.tobj"
	texture_name[1] : "texture_reflection"
	add_ambient : -0.25
	diffuse : { 0.0562366 , 0.0562366 , 0.0562366 }
	env_factor : { 1.3 , 1.3 , 1.3 }
	fresnel : { 1 , 1 }
	reflection : 0
	shininess : 70
	specular : { 1 , 1 , 1 }
}
Note how in both cases the diffuse value is drastically reduced:

Code: Select all

Attribute {
            Format: FLOAT3
            Tag: "diffuse"
            Value: ( 0.2630000114440918 0.2630000114440918 0.2630000114440918 )
        }

produces

diffuse : { 0.0562366 , 0.0562366 , 0.0562366 }
In short, I seem to be encountering two distinct bugs:
1. Negative add_ambient values are either getting clamped when stored in Blender, or when being exported.
2. Diffuse values are strangely affected by Conversion Tools for this particular case, in all three instances that the same material properties are entered (all in the same .blend file). This happens regardless of whether the add_ambient value passed to CT is 0 or -0.25.

EDIT:
#2 is just me forgetting about the colourspace conversion back from .mat. Herp derp.

Using:
Blender 2.76
SCSBT 1.4
SCSCT 1.8

User avatar
50keda
SCS Software
Posts: 2086
Joined: 07 Dec 2012 11:59

Re: [1.4] Negative add_ambient values don't survive export

#2 Post by 50keda » 01 Aug 2016 21:01

So you even SCS models are having negative add_ambient values?

The point is that it was intended like this. Each Blender Tools property has some max and min value and I would say that in this case add_ambient has 0 as minimum so you can not input smaller value than 0 ;)

However if you point me to vanilla model/material having negative add_ambient I will move minimum to some minus value.

User avatar
Smarty
Beta tester
Posts: 1332
Joined: 30 Jun 2015 01:56
Location: Ontario, Canada
Contact:

Re: [1.4] Negative add_ambient values don't survive export

#3 Post by Smarty » 01 Aug 2016 21:45

...if you point me to vanilla model/material having negative add_ambient...
(ATS) dlc_rims.scs (unpacked 18/04/2016)

0e/14232be0c0bdbd9f3f0a601c6cb85aadfeb798.mat

Code: Select all

material : "eut2.dif.spec.weight.add.env.tsnmapuv.fx" {
	texture[0] : "/vehicle/truck/upgrade/wheel/cover/rear_hub_cover_05_c.tobj"
	texture_name[0] : "texture_base"
	texture[1] : "/vehicle/truck/upgrade/wheel/cover/rear_hub_cover_05_n.tobj"
	texture_name[1] : "texture_nmap"
	texture[2] : "/material/environment/vehicle_reflection.tobj"
	texture_name[2] : "texture_reflection"
	add_ambient : -0.25
	diffuse : { 0.263273 , 0.263273 , 0.263273 }
	env_factor : { 1.3 , 1.3 , 1.3 }
	fresnel : { 1 , 1 }
	reflection : 0
	shininess : 70
	specular : { 1 , 1 , 1 }
}
2d/72465a0f3b5ec0c9ee516fedb3a90e971ad155.mat

Code: Select all

material : "eut2.dif.spec.weight.add.env.tsnmapuv.fx" {
	texture[0] : "/vehicle/truck/upgrade/wheel/nuts/nuts_04_c.tobj"
	texture_name[0] : "texture_base"
	texture[1] : "/vehicle/truck/upgrade/wheel/nuts/nuts_04_n.tobj"
	texture_name[1] : "texture_nmap"
	texture[2] : "/material/environment/vehicle_reflection.tobj"
	texture_name[2] : "texture_reflection"
	add_ambient : -0.25
	diffuse : { 0.263273 , 0.263273 , 0.263273 }
	env_factor : { 1.3 , 1.3 , 1.3 }
	fresnel : { 1 , 1 }
	reflection : 0
	shininess : 70
	specular : { 1 , 1 , 1 }
}
2f/4e66504ef9380640a8da7ebff6e5157785bac9.mat

Code: Select all

material : "eut2.dif.spec.weight.add.env.tsnmapuv.fx" {
	texture[0] : "/vehicle/truck/upgrade/wheel/disc/rear_disc_03_c.tobj"
	texture_name[0] : "texture_base"
	texture[1] : "/vehicle/truck/upgrade/wheel/disc/rear_disc_03_n.tobj"
	texture_name[1] : "texture_nmap"
	texture[2] : "/material/environment/vehicle_reflection.tobj"
	texture_name[2] : "texture_reflection"
	add_ambient : -0.25
	diffuse : { 0.263273 , 0.263273 , 0.263273 }
	env_factor : { 1.3 , 1.3 , 1.3 }
	fresnel : { 1 , 1 }
	reflection : 0
	shininess : 70
	specular : { 1 , 1 , 1 }
}
3a/ae3e988b11573211366d9fc77da7e7999e1fb6.mat

Code: Select all

material : "eut2.dif.spec.weight.add.env.tsnmap.fx" {
	texture[0] : "/vehicle/truck/upgrade/wheel/cover/rear_hub_cover_03_kenworth_c.tobj"
	texture_name[0] : "texture_base"
	texture[1] : "/vehicle/truck/upgrade/wheel/cover/rear_hub_cover_03_n.tobj"
	texture_name[1] : "texture_nmap"
	texture[2] : "/material/environment/vehicle_reflection.tobj"
	texture_name[2] : "texture_reflection"
	add_ambient : -0.25
	diffuse : { 0.263273 , 0.263273 , 0.263273 }
	env_factor : { 1.3 , 1.3 , 1.3 }
	fresnel : { 1 , 1 }
	reflection : 0
	shininess : 70
	specular : { 1 , 1 , 1 }
}
That's four out of the first five, alphabetically. :lol: I think the artists use it to 'tame' the high env factor (1.3!). It blows out like mad with hdr without it. :shock: Personally, I find 1.1 looks less fake, but could still use the extra restraint that -0.25 provides in bright lighting.

User avatar
50keda
SCS Software
Posts: 2086
Joined: 07 Dec 2012 11:59

Re: [1.4] Negative add_ambient values don't survive export

#4 Post by 50keda » 02 Aug 2016 19:33

Well it is "abuse" well good then I will lower minimum for it to -1 ;)

User avatar
Smarty
Beta tester
Posts: 1332
Joined: 30 Jun 2015 01:56
Location: Ontario, Canada
Contact:

Re: [1.4] Negative add_ambient values don't survive export

#5 Post by Smarty » 02 Aug 2016 20:08

Abuse for sure, but I expect the artist(s) felt very clever when they came up with it. :lol:

User avatar
CrazyGijs
Beta tester
Posts: 2149
Joined: 24 May 2014 18:24
Location: The Netherlands
Contact:

Re: [1.4] Negative add_ambient values don't survive export

#6 Post by CrazyGijs » 02 Aug 2016 20:48

Sorry to harras this topic :mrgreen:, but where is the add_ambient attribute used for exactly?
ImageImageImage

Intel Core i5 4670k, Asus B85M-G, 8GB RAM, MSI GTX 980 4GB. Logitech G502, Logitech G710+, Logitech G29, Driving Force Shifter + Scania SKRS.

User avatar
Smarty
Beta tester
Posts: 1332
Joined: 30 Jun 2015 01:56
Location: Ontario, Canada
Contact:

Re: [1.4] Negative add_ambient values don't survive export

#7 Post by Smarty » 02 Aug 2016 22:04

My understanding is it's a factor for adjusting the overall brightness of a material based on the indirect (ambient) lighting in the scene, as opposed to the directional (diffuse/specular) lighting.

In this case where the env factor is greater than 1, the result is substantially brighter than the surrounding environment, but most so during the day when there is high ambient lighting. Lowering the diffuse or darkening the base texture will improve the day-time appearance, but the night-time appearance would end up looking quite blackish (see the 'black chrome' people complain about in some mods). By subtracting ambient it has the most effect in the brightest environments (think Southern end of Arizona, noon, with a clear sky).

At least, that's my interpretation/borderline reverse-engineering attempt. 50k or other SCS staff, please correct me if I'm wrong or not quite right – I might learn something. :lol:

User avatar
50keda
SCS Software
Posts: 2086
Joined: 07 Dec 2012 11:59

Re: [1.4] Negative add_ambient values don't survive export

#8 Post by 50keda » 30 Sep 2016 15:44

Will be done in 1.5!

Post Reply

Return to “Bugs”

Who is online

Users browsing this forum: No registered users and 1 guest