PDA

View Full Version : Half-Life SMD player powered by GLSL shader (OGL/Delphi).



Georgy
17-10-2006, 02:14 AM
Shader vs CPU vertex transformations demo.
===============================
In this demo you can switch between CPU and Shader mode.
http://www.igrodel.ru/files/smdplayer-src.rar - (219kb) source code
http://www.igrodel.ru/files/smdplayer-exe.rar - (342kb) executable

savage
17-10-2006, 08:58 AM
As soon as my new MB and Graphics card arrive ( which should be today ), I'll download your demos and give them a whirl.

Georgy
17-10-2006, 12:37 PM
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!

XProger
17-10-2006, 01:59 PM
FPS: 18, 21, 23, 43, 33, 25, 28...
FIX this FPS counter!

technomage
17-10-2006, 04:13 PM
Works on my Nvidia 7800 GT. I only get 40 fps though, but that must be because I have vsync on.

Traveler
17-10-2006, 06:24 PM
60-fps, but I suspect it's being capped by refresh rate.
29-fps on cpu

3ghz 1gb ram, 6800GT 256mb.

Georgy
18-10-2006, 11:29 PM
Here is an updated version that works 100 times faster Ha-Ha!!! =)
Also some support of Half-Life 2 smds added.

Source code: http://www.igrodel.ru/files/optimized-src.rar 219kb
EXE: http://www.igrodel.ru/files/optimized-exe.rar 342kb

Georgy
30-10-2006, 04:44 AM
An updated non-VCL version (exe+src):
http://www.igrodel.ru/files/skeletal12.zip

Required units (*.pas):
http://www.igrodel.ru/files/igrodel10.zip

Texture packer used (by AINC.DE):
http://www.igrodel.ru/files/wavelet.zip

Traveler
30-10-2006, 08:51 AM
Very nice! :thumbup:

savage
30-10-2006, 10:18 AM
I still have not tried it yet, but will do so this evening.