2025-07-22 01:33 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003910Spring engineGeneralpublic2013-08-02 10:53
ReporterThe_Yak 
Assigned Toabma 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version94.1.1+git 
Target VersionFixed in Version 
Summary0003910: Attempting to use Parallax mapping causes Fragment shader failure
DescriptionUsage of a neutral parallax map as described by Kloot in this thread (http://springrts.com/phpbb/viewtopic.php?f=13&t=29108) results in a totally white map and shader errors.

The same map works when loaded in 94.1 but fails in latest dev builds.

Local testing reveals parallax mapping was broken somewhere between 94.1.1-423-g2a89870 and 94.1.1-594-g8f53c96

Screenshot of neutral parallax map "working" here: http://imgur.com/FR1ozIb
In latest dev builds this is the result: http://i.imgur.com/d3TYZ1P.png

Relevant infolog here: http://paste.springfiles.com/view/c72f54d4

Error in question:

[Shader] Warning: [Compile]
shader-object name: GLSL/SMFFragProg.glsl, compile-log:
Fragment shader failed to compile with the following errors:
ERROR: 6:209: error(0000143) Undeclared identifier specularTexCoords
ERROR: 6:209: error(0000202) No matching overloaded function found GetParallaxUVOffset
WARNING: 6:209: warning(0000402) Implicit truncation of vector from size 1 to size 2.
ERROR: error(0000273) 2 compilation errors. No code generated
Steps To ReproduceSet parallaxHeightTex=parallaxmapname.png; in mapconfig and load map
Additional InformationWindows 7 64bit
AMD Radeon HD 6800 Series
Catalyst 12.8
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • diff file icon mantis3910.diff (731 bytes) 2013-08-01 18:04 -
    diff --git a/cont/base/springcontent/shaders/GLSL/SMFFragProg.glsl b/cont/base/springcontent/shaders/GLSL/SMFFragProg.glsl
    index faa670c..5a9f471 100644
    --- a/cont/base/springcontent/shaders/GLSL/SMFFragProg.glsl
    +++ b/cont/base/springcontent/shaders/GLSL/SMFFragProg.glsl
    @@ -206,7 +206,7 @@ void main() {
     		// (ie. specularTex and parallaxHeightTex must have equal size)
     		// cameraDir does not need to be normalized, x/z and y/z ratios
     		// do not change
    -		vec2 uvOffset = GetParallaxUVOffset(specularTexCoords, transpose(stnMatrix) * cameraDir);
    +		vec2 uvOffset = GetParallaxUVOffset(specTexCoords, transpose(stnMatrix) * cameraDir);
     		vec2 normTexSize = 1.0 / normalTexGen;
     		vec2 specTexSize = 1.0 / specularTexGen;
     
    
    diff file icon mantis3910.diff (731 bytes) 2013-08-01 18:04 +

-Relationships
+Relationships

-Notes

~0011134

The_Yak (reporter)

Specular Map and Parallax Map are both 1024x1024
+Notes

-Issue History
Date Modified Username Field Change
2013-08-01 17:18 The_Yak New Issue
2013-08-01 18:04 Kloot File Added: mantis3910.diff
2013-08-01 18:31 The_Yak Note Added: 0011134
2013-08-02 10:53 abma Changeset attached => spring develop da40821c
2013-08-02 10:53 abma Assigned To => abma
2013-08-02 10:53 abma Status new => resolved
2013-08-02 10:53 abma Resolution open => fixed
+Issue History