Advertisement Jump to content
Sign in to follow this  

Delphi/OpenGL/Shaders: Half-Life skeletal animation (GLSL)

This topic is 4464 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Basic example on using shaders for skeletal animation in Turbo Delphi. CPU vs Shader vertex transformation with full source code: Source code (219kb): Executable demo (342kb): Screenshot: Also compatible with Delphi 6.

Share this post

Link to post
Share on other sites

If "ERROR: 0:2: 'pre-mature EOF' : syntax error parse error" occurs
then go to shaders folder and edit vertex.txt. __Remove all russian comments__ from source code of ./shaders/vertex.txt file. Some drivers do not like russian comments character set!

Or copy and paste following code to vertex.txt file:

uniform mat4 boneMat[32];
attribute float boneIndex;
void main(void)
gl_Position = gl_ModelViewProjectionMatrix * ( boneMat[int(boneIndex)] * gl_Vertex);
gl_FrontColor = gl_Color;
gl_TexCoord[0] = gl_MultiTexCoord0;

Share this post

Link to post
Share on other sites
And here is all you waited for
It's a new much more powerful version
That was highly optimized to work 1000000 times faster
Good example of using GLSL + VBO

Get the source (219kb):

Get EXE (342kb):

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!