Page 1 of 1

for Shader

Posted: Fri Dec 14, 2012 12:37 pm
by milen_zge
Hi,

I look for very simple examples for different objects to learn easy.

The ShaderDemo is very complex for me, and I discover this video:

http://www.youtube.com/watch?v=R2qwSk5Rk1o

It is micro example for the Shader using.

But when I try it - it does not work. Nothing! Like the Code it the Shader are not compiled generally, because I try to wright erroneous commands and it did not detect them.

And so, the RenderNet displays as no Shader object. Why?

Sorry for the stupid question, but I have too little tutorial information.

I attach my try project - it not work. But I discover another possibility - to code the RenderVertexExpression - it seems that I can achieve the same things as when the Shader is used! Why the Shader must be used?

P.S. May be the problem is in Version which I use - 3.0.0b, in the video is used old version of ZGE.

Posted: Fri Dec 14, 2012 12:41 pm
by Kjell
Hmm,

Could you try the "ShaderDemo.zgeproj" example ( it's located in the Projects folder )? It should look like the screenshot below.
milen_zge wrote:It seems that I can achieve the same things as when the Shader is used! Why the Shader must be used?
Correct. Anything that you can do using Shaders ( using the GPU ), you can do without Shaders as well ( using the CPU ). But in general, using the GPU will be much faster then using the CPU. So it's purely for performance reasons.

K

Posted: Fri Dec 14, 2012 1:30 pm
by milen_zge
But at my computer the result is:

(This signs some problem with drivers for my hardware, I thing).

Posted: Fri Dec 14, 2012 3:20 pm
by Kjell
:?
milen_zge wrote:This signs some problem with drivers for my hardware, I thing.
Which videocard do you have? Either your videocard doesn't support shaders, or it's a driver issue yes.

K

Posted: Fri Dec 14, 2012 4:18 pm
by milen_zge
I use some Intel video card on the my computer mainboard.

I try the .exe on other computer with ATI Radeon HD 4250 and the Shader works perfect!
Therefore, I will buy some better video card for my PC :)