Anonymous Login
2020-07-02 12:39 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001805OpenClonkEngine - Graphicspublic2017-08-20 11:49
Assigned To 
Product Versiongit master 
Target Version8.1Fixed in Version 
Summary0001805: Mesh material inheriting from default NormalMap has no GPU skinning
DescriptionWhen having an animated mesh with a normal map, one is supposed to inherit from "NormalMap" (defined in Objects.ocd/normal_map.material) which adds a normal map shader to the material.

However, the mesh will not show any animation anymore. This can also be tested by spawning an animal (with animations) and then setting the mesh material to any material inheriting from NormalMap.

I suspect this is because the NormalMap shader was written (and tested) before the GPU skinning stuff and thus misses just line or two or so.. I tried changing the obvious small differences, but to no avail.

Why does the Normalmap shader not only ADD stuff to the original shader? Does it replace stuff?
TagsNo tags attached.
Attached Files




Zapper (developer)

Reminder sent to: Clonk-Karl

You wrote the original NormalMap shader, right?


Zapper (developer)

Reminder sent to: Isilkor

And you wrote the GPU skinning. Any idea what the issue could be?


Zapper (developer)

The behavior can be tested by e.g. modifying the Wipf's material file and adding the following material and setting it via SetMeshMaterial("WipfNormaltest") ingame. Or, overwriting the original material.

material WipfNormaltest : NormalMap
    receive_shadows on
            ambient 1.0 1.0 1.0 1.0
            diffuse 1.0 1.0 1.0 1.0
            specular 0.0 0.0 0.0 1.0 12.5
            emissive 0.0 0.0 0.0 1.0

            texture_unit base
                texture Wipf.jpg
                tex_address_mode wrap
                filtering trilinear


Isilkor (developer)

Last edited: 2016-07-29 19:57

View 2 revisions

> Why does the Normalmap shader not only ADD stuff to the original shader?
Because otherwise you couldn't write completely custom shaders.

> Any idea what the issue could be?
The issue is that the vertex shader in that material doesn't do skinning. If you remove the VS ref from the material file, things seem to work fine.


-Issue History
Date Modified Username Field Change
2016-07-29 19:15 Zapper New Issue
2016-07-29 19:16 Zapper Note Added: 0005220
2016-07-29 19:16 Zapper Note Added: 0005221
2016-07-29 19:41 Zapper Note Added: 0005222
2016-07-29 19:56 Isilkor Note Added: 0005223
2016-07-29 19:57 Isilkor Note Edited: 0005223 View Revisions
2017-08-20 11:49 Zapper Target Version 8.0 => 8.1
+Issue History