Jump to content
  • Advertisement
Sign in to follow this  
tmtlib

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

This topic is 4310 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): http://www.igrodel.ru/files/smdplayer-src.rar Executable demo (342kb): http://www.igrodel.ru/files/smdplayer-exe.rar Screenshot: http://www.igrodel.ru/glsl.htm Also compatible with Delphi 6.

Share this post


Link to post
Share on other sites
Advertisement
Update:

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):
http://www.igrodel.ru/files/optimized-src.rar


Get EXE (342kb):
http://www.igrodel.ru/files/optimized-exe.rar

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!