Skip to main content
GameDev.net gamedev.net
🔒 Locked

Deferred Shading Engine test

Started by Kazade Apr 2, 2006 at 1:40 PM 22 replies 3.1k views
Original Post
Kazade
Kazade
Hi, Could some of you test my deferred shading engine for me? Its needs a lot of work still but I just wanna make sure it runs on other graphics cards. It can be downloaded from here at the bottom of the page. I just need to know 1) Whether it runs 2) Whether or not it looks like it should 3) The frame rate and the specs of your machine. I wanna make sure that it runs basically before I continue adding to it. Cheers Luke. P.S. Needs OpenGL 2.0 support and floating point textures.
Member of the NeHe team.
Smit
Smit
It looked ok to me. It only ran at about 19fps though.

AMD64 3000+ @ 2.3Ghz
1GB RAM
ATI Raedon 9800 128Mb
mufmtp
mufmtp
It's nice !
85 fps (Refresh rate of my screen...)
Nvidia 6800 GS
Athlon 3200
weasalmongler
weasalmongler
I don't think it's working correctly for me.

It ran at constant 60FPS (Might have had v-sync switched on), but all I could see on the models appeared to be normal maps.

I could see what looked like a light moving around the room, but the textures applied to the surfaces were just the purply blue that normal maps are, they didn't change as the light moved at all.

My system:

OS : Win XP Professional
Graphics : NVIDIA Geforce 6800 GT 256MB
1.5 GB RAM, 2.6 GHz HT Pentium 4.
Kazade
Kazade
Quote:
Original post by weasalmongler
I don't think it's working correctly for me.

It ran at constant 60FPS (Might have had v-sync switched on), but all I could see on the models appeared to be normal maps.

I could see what looked like a light moving around the room, but the textures applied to the surfaces were just the purply blue that normal maps are, they didn't change as the light moved at all.

My system:

OS : Win XP Professional
Graphics : NVIDIA Geforce 6800 GT 256MB
1.5 GB RAM, 2.6 GHz HT Pentium 4.


One of my friends has had the same problem...

I know the cause of it, but I dont know why its happening, in error.txt there should be a line saying that the variable normalMap cant be found. A call to glGetUniformLocation is failing, but I have absolutely NO idea why it would fail only on some computers. Any ideas?
Member of the NeHe team.
Ezbez
Ezbez
Well, it did not work for me. The log says:

Attempted addition of NULL font!
Window Initialised Successfully
YOUR CARD DOES NOT SUPPORT OPENGL 2.0! SORRY.

I have a Geforce 6200(*does* support OpenGL 2.0, at least according to the box), Pentium 4 3.0ghz, and 1 gig ram. I have the latest drivers for the graphics card.
Kazade
Kazade
Quote:
Original post by Ezbez
Well, it did not work for me. The log says:

Attempted addition of NULL font!
Window Initialised Successfully
YOUR CARD DOES NOT SUPPORT OPENGL 2.0! SORRY.

I have a Geforce 6200(*does* support OpenGL 2.0, at least according to the box), Pentium 4 3.0ghz, and 1 gig ram. I have the latest drivers for the graphics card.


Now that is wierd...

this is the code that checks for OpenGL 2.0

if (!GLEW_VERSION_2_0)
{
MessageBox(NULL, "OpenGL 2.0 support IS REQUIRED!", "ERROR!", MB_OK);
MSG("YOUR CARD DOES NOT SUPPORT OPENGL 2.0! SORRY.");
return false;
}

so GLEW is saying that its not... i'll look into it.

Luke.
Member of the NeHe team.
Expandable
Expandable
The colors do not really look like in the video, but other than that, no problems. Steady 75 fps on A64 3500+, GF6800GT.
Ezbez
Ezbez
If you figure what was wrong out, give me a PM and I'll test it out.
weasalmongler
weasalmongler
Quote:

One of my friends has had the same problem...

I know the cause of it, but I dont know why its happening, in error.txt there should be a line saying that the variable normalMap cant be found. A call to glGetUniformLocation is failing, but I have absolutely NO idea why it would fail only on some computers. Any ideas?


Yeah, that's the error that I got in error.txt. Must be the same problem.
Kazade
Kazade
OK i have uploaded another version it may fix the problem I dunno, could you retry weasalmongler?

cheers

Luke.
Member of the NeHe team.
taby
taby
It ran, but this is what the monsters and spotlit walls look like (normal maps apparently):
http://cwiki.org/index.php/Image:Kengine.jpg

Specs:
AMD Athlon 1800+
Windows XP
GeForce 6800 GT 256MB
ForceWare 77.77

The 6200 does not support fp16 linear blend (only nearest neighbour), but everything 6600 and higher does. Is fp16 linear blend needed?

I am writing GLSL 1.0 / OpenGL 2.0 software myself, so I don't believe it is a driver problem?
Xetheriel
Xetheriel
Hmm, strange...

Says my card doesn't support opengl2.0

But...

I can run games like the elder scrolls oblivion?

ATI 200 series express integrated

AMD Athlon 64 3500+

1GB ram
Kazade
Kazade
OK, so there are 2 problems:

1) Normal maps being shown instead of diffuse.
2) OpenGL 2.0 detection not working

Number 1 is a big problem, the GLSL shaders are being compiled and run fine. The reason its not working is because a uniform variable wont set. This is really odd as the shader only uses 2 samplers, the first works fine, the second cant be found. I dont understand why, the variable is definately there, the shader works fine on other cards, it just seems to be on the GeForce 6800 GT that it doesnt????

Number 2 is not to do with my code, its something to do with GLEW, i'm sure GLEW just reads the version string from the drivers. This happened to one of my friends but he updated his drivers and it worked fine. Maybe the drivers arent showing support?

If anyone has any ideas why I would be having problems, please let me know, i'm stumped. The shader with the problem is gBufferFillFrag.frag in the shaders folder if anyone wants to see if they can spot the mistake.

Cheers

Luke.
Member of the NeHe team.
CrazyCdn
CrazyCdn
My card doesn't support OGL 2.0 so skipped testing this but couldn't you just check with glString or whatever it is instead of using GLEW's function to do this? Or as a fallback if GLEW fails.
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety." --Benjamin Franklin
Ezbez
Ezbez
Sorry, I get the same error as last time. :(
Dorvo
Dorvo
Quote:
Original post by Kazade
OK, so there are 2 problems:

1) Normal maps being shown instead of diffuse.
2) OpenGL 2.0 detection not working

Number 1 is a big problem, the GLSL shaders are being compiled and run fine. The reason its not working is because a uniform variable wont set. This is really odd as the shader only uses 2 samplers, the first works fine, the second cant be found. I dont understand why, the variable is definately there, the shader works fine on other cards, it just seems to be on the GeForce 6800 GT that it doesnt????

Number 2 is not to do with my code, its something to do with GLEW, i'm sure GLEW just reads the version string from the drivers. This happened to one of my friends but he updated his drivers and it worked fine. Maybe the drivers arent showing support?

If anyone has any ideas why I would be having problems, please let me know, i'm stumped. The shader with the problem is gBufferFillFrag.frag in the shaders folder if anyone wants to see if they can spot the mistake.

Cheers

Luke.


Try using GLee instead of GLEW. That might solve the 2.0 issue for some people.
b2b3
b2b3
I have Radeon 9600 and it looked a little weird. There's no ambient lighting on the walls so they are completely black until light shines on them.
Also objects disapper too quickly (too small zFar?).
It looks like this:


On the first shot you can see that walls are completely black but those guys on the left are lit even when there's no light shining on them.

Also first time I run it I got this log file:
Attempted addition of NULL font!Window Initialised SuccessfullyOPENGL 2.0 SUPPORTED!Starting task initialisation....		---- Input		---- System		---- GameCould not open texture file: noshader.tgaCould not open texture file: noshader_bump.tga*************Initialised models***********----- Start of Deferred Shading Initialisation -----     ----- Initialising shading buffers.     ----- Buffers initialised successfully.     ----- Loading G-buffer shader programs. Link successful. The GLSL vertex shader will run in hardware. The GLSL fragment shader will run in hardware. Validation successful.uniform variable name not found! normalMap     ----- G-Buffer shader programs loaded.     ----- Loading light shader programs. Link successful. The GLSL fragment shader will run in hardware. Validation successful.[.\KDeferredShader.cpp line 179] GL Error:invalid operation Link successful. The GLSL fragment shader will run in hardware. Validation successful.     ----- Light shader programs loaded.----- Deferred Shading Initialisation Complete -----*************Physics System Loaded*************Tasks Initialised!uniform variable name not found! normalMapuniform variable name not found! normalMapuniform variable name not found! normalMap... this goes on and on (1 missing uniform for frame?) ...

So I copied those tgas and renamed them to noshader.tga and noshader_bump.tga.
It does not report missing textures anymore but still reports missing uniforms.
PinguinDude
PinguinDude
Doesn't work correctly, what shows on my screen looks a lot like this screenshot posted above, http://cwiki.org/index.php/Image:Kengine.jpg

Specs:
AMD64 3000+ Venice
512 MB Ram
Geforce 6600GT 128 MB
Forceware 84.21
http://sourceforge.net/projects/pingux/ <-- you know you wanna see my 2D Engine which supports DirectX and OpenGL or insert your renderer here :)
Kazade
Kazade
Well that serves me right for rushing it! The uniform variable message in the log comes up on my computer its just where i added something in the wrong place, i've fixed it now. I just noticed, I was including OLD versions of the shaders in the uploaded version, i've updated it now, so it SHOULD be alright now *fingers crossed*

Please could all those who had the normal map problem retry? Cheers guys!

Luke.
Member of the NeHe team.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.