for Shader

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
milen_zge
Posts: 10
Joined: Thu Dec 13, 2012 10:31 am

for Shader

Post 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.
Attachments
prb7a.zgeproj
unsuccessful Shader example
(1.4 KiB) Downloaded 385 times
User avatar
Kjell
Posts: 1883
Joined: Sat Feb 23, 2008 11:15 pm

Post 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
Attachments
ShaderDemo.png
ShaderDemo.png (55.53 KiB) Viewed 6028 times
milen_zge
Posts: 10
Joined: Thu Dec 13, 2012 10:31 am

Post by milen_zge »

But at my computer the result is:

(This signs some problem with drivers for my hardware, I thing).
Attachments
ShaderDemo at me.JPG
ShaderDemo at me.JPG (28.36 KiB) Viewed 6022 times
User avatar
Kjell
Posts: 1883
Joined: Sat Feb 23, 2008 11:15 pm

Post 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
milen_zge
Posts: 10
Joined: Thu Dec 13, 2012 10:31 am

Post 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 :)
Post Reply