Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Trying to use Dark Shader normal mapping shader in Dbpro

Author
Message
peterJBE
18
Years of Service
User Offline
Joined: 11th Mar 2008
Location: Belgium
Posted: 26th Dec 2010 12:49
I'm learning to use shaders in Dbpro
If tried to use the "Normal mapping.dbs" shader that comes with Dark Shader.
I followed the Dark Shader manual to pass lightning information to the Shader.
The Shader works well in Dark Shader. I exported the object and the textures with Dark Shader.

I tried a lot of things but the objects stays appearing as a black cube.
What am I doing wrong? Can someone help me, please?

I attach the my code.

the shader code


The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 26th Dec 2010 15:19
Aah, a fellow-countryman?
This example uses the Normal mapping shader from DarkShader. It's actually a piece of code from Sixty Squares, so credits go to him. I adjusted the code a bit and it now works with three lights. I think you should be able to modify the code for your needs.

Hope this helps?

Cheers

SLAYER RULES! YEAH, MAN!!
peterJBE
18
Years of Service
User Offline
Joined: 11th Mar 2008
Location: Belgium
Posted: 26th Dec 2010 18:00
[quote] @slayer: Aah, a fellow-countryman?

This solved my problem. Thank you very much.
Union fait la force/Eendracht maakt macht.

Cheers
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 26th Dec 2010 22:31
Quote: "This solved my problem. Thank you very much."

No problem.

Quote: "Union fait la force/Eendracht maakt macht."

Hehehe. Spreekt u nederlands, ou parlez vous francais?

Cheers

SLAYER RULES! YEAH, MAN!!
peterJBE
18
Years of Service
User Offline
Joined: 11th Mar 2008
Location: Belgium
Posted: 27th Dec 2010 08:46
Quote: "@ The Slayer: Hehehe. Spreekt u nederlands, ou parlez vous francais?"


I speak dutch.

Cheers

Login to post a reply

Server time is: 2026-07-21 20:35:16
Your offset time is: 2026-07-21 20:35:16