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 / Using DarkShader shaders in DBPro helpfile/comments

Author
Message
Dia
20
Years of Service
User Offline
Joined: 16th Jan 2005
Location:
Posted: 28th Nov 2013 03:28
I have waded through the limited forum search, and found a couple of individual examples, but I was just wondering if there is a consolidated help file somewhere that details how to implement each of the DarkShader shaders in DBPro.

I.e. A list somewhere of what arguments need to be manually passed to the shader from within your code.

The 'export all' generated dba code only loads the object and shader, and blindly applies the effect to the object, more often than not resulting in a black object.

The help file included with dark shader does point out that some shaders need you to manually add code to make the shader work, but short of examining the shader file and then trying to figure out what you need to pass, there is no real indication of what additional code is required to make a shader work (and if you understand enough shader code to decipher what you need for yourself, then dark shader itself is of limited value!)

Some of the shaders are commented (to an extent), especially indicating where different techniques etc are available, but there isn't much about actually using the shader.

I have managed to work out most of them on my own, but there is still one that is messing with me, shaders that can accommodate multiple lights. e.g. The cartoonobject shader, which can accommodate up to eight lights. Even using a single light, i have tried to pass the position and color vectors to the shader, as both a direct vector and vector element, and no matter what shader technique is used, the result is nothing more than a highly convoluted means of achieving ambient shading

Not on my dbpro computer till later, so will attempt to post the code showing what I mean then

This is not the sig you are looking for....

Login to post a reply

Server time is: 2025-05-17 06:41:44
Your offset time is: 2025-05-17 06:41:44