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.

Dark GDK / Dark Shader and GDK

Author
Message
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 7th Feb 2007 11:47
Owners of Dark Shader can now find a new download in their order history. The Dark Shader GDK runtime download includes everything you need to use exported shaders. It contains the following:

* Header file with new function listings
* Library file ( for Visual Studio 2005 and Visual Studio Express 2005 )
* 2 sample programs demonstrating bloom and reflection mapping

Here's the code for the bloom shader so you can see how things work:

#include "DarkGDK.h"
#include "ShaderData.h"
#pragma comment ( lib, "shaderdata.lib" )

void DarkGDK ( void )
{
dbSyncOn();
dbSyncRate( 0 );

dbShaderDataStart( );

dbMakeObjectSphere( 1, 10 );
dbAutoCamOff( );

dbMakeCamera( 1 );
dbColorBackdrop( 1, 0 );

dbLoadCameraEffect( "Bloom.dbs", 1, 0 );
dbSetCameraEffect( 1,1,1 );

dbMakeObjectPlain( 2, 2, 2 );
dbLoadEffect( "quad.fx", 2, 0 );
dbSetObjectEffect( 2, 2 );
dbMakeVector4( 1 );
dbSetVector4( 1, dbScreenWidth(), dbScreenHeight(), 0 , 0 );
dbSetEffectConstantVector( 2, "ViewSize", 1 );
dbDeleteVector4( 1 );
dbTextureObject( 2, 0, 1 );

while ( LoopGDK( ) )
{
dbPositionCamera( 1,dbCameraPositionX(0),dbCameraPositionY(0),dbCameraPositionZ(0) );
dbRotateCamera(1,dbCameraAngleX(0),dbCameraAngleY(0),dbCameraAngleZ(0) );

dbTurnObjectLeft( 1, 0.1 );

dbHideObject( 2 );
dbShowObject( 1 );
dbSyncCamera( 1 );

dbHideObject( 1 );
dbShowObject( 2 );
dbSyncMask( 0x001 );
dbSync( );
}
}

To use this update you must download the very latest version of the GDK. This can be found in the order history section under the name of beta upgrade 070207.
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 12th Feb 2007 17:29
I've tested this and everything runs smooth
Dr Laz
18
Years of Service
User Offline
Joined: 25th Sep 2006
Location: Bristol UK
Posted: 3rd Apr 2007 16:20
Does this mean, DarkShader now works with DGDK? I can only see purchase options for DBPro.

Laz

Laz
Dr Laz
18
Years of Service
User Offline
Joined: 25th Sep 2006
Location: Bristol UK
Posted: 16th Apr 2007 19:26
So, does it? And if so, how does it work with DarkGDK? Does it provide libs?

Thanks,

Laz
Red Ocktober
20
Years of Service
User Offline
Joined: 6th Dec 2003
Location:
Posted: 30th Jul 2007 16:48
a few questions please...

1- has anyone used Dark Shader with the GDK lately... what have been your experiences...


2- is there a water shader with either fresnel refraction or reflections, or anything that could be used as one in the pack already...

3- Shaders that already work in DBPro, but require multiple cams... can they be added to Dark Shader...


thx

--Mike
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 1st Aug 2007 12:47 Edited at: 1st Aug 2007 12:47
Hi,

I've been using it (Dark Shader with the GDK) and I would say that it is a must for anyone desiring to use or make shaders. It provides some new libs and commands for proper handling (like the 'dbLoadCameraEffect' and 'dbSetCameraEffect' above).

I'm afraid there is no water shader included. This is the list of packed shaders:

FullScreenShaders:

Bloom
Blur
Cartoon Outline
ColorHighlight
DepthOfField
EdgeDetect
Greyscale
HueSatLight
Negative
Pixelate
Sharpen
WaterColors

Object Shaders:

BlendShader
Bumpbone
CartoonObject
Colored Glass
Constant Lighting
DefaultShader
Depth
DepthOfField
DetailMapping
Distort
Expand
Halo
HeatHaze
Hemispherical Lighting
Normal Mapping
PerPixelLighting
Rainbow
Reflection Mapping
Relief
ScrollingTexture

I think all type of shaders can be used & developed with DarkShader, but I guess there should be a change of approach for the most complex ones. I mean they should be done in the 'new' DarkShader way, instead of using the prior-to-DarkShader techniques.
Red Ocktober
20
Years of Service
User Offline
Joined: 6th Dec 2003
Location:
Posted: 1st Aug 2007 13:29
thx M, for the informative reply...

yeah, so far teh 'simple' shaders seem to be working fine, and the translation from DB to c++ is pretty straight forward (with a lil help from those who have done it before)... but the ones that involve multiple cams seem to give me problems...

anyways, i think i'll be licensing Dark Shader soon as well...
do ya think that i can talk the devs into adding a water shader with reflection and refaction to the mix (not asking for much, am i )...

thx again

--Mike
Red Ocktober
20
Years of Service
User Offline
Joined: 6th Dec 2003
Location:
Posted: 2nd Aug 2007 12:26
it seems as if Dark Shader is the best kept secret on the TGC website...

where is the linky to it, and to the purchase page...

thx

--Mike
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 3rd Aug 2007 11:46
Certainly, it could be easier to find.

Main Dark Shader page, purchase link at the bottom:

http://darkbasicpro.thegamecreators.com/?f=darkshader
Red Ocktober
20
Years of Service
User Offline
Joined: 6th Dec 2003
Location:
Posted: 3rd Aug 2007 14:20
thx again...

--Mike
lwatson
18
Years of Service
User Offline
Joined: 17th Nov 2006
Location: Lincoln, RI USA
Posted: 3rd Aug 2007 15:00
This might be a stupid question but that wiuld not be the first time for me...

Is the Dark Shader products results usable within Dark GDK.NET?

Lonnie Allen Watson
rmag.blogspot.com (blog)
TerryM
17
Years of Service
User Offline
Joined: 1st Apr 2007
Location: Plymouth, England
Posted: 18th Sep 2007 13:18
When will we get a fixed version for Vista that does not crash ???

Thank you,
Terry
www.My-Software.co.uk
Sephnroth
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 23rd Dec 2007 19:05
anyone had darkshader working with vc++2008 express?

General Reed
18
Years of Service
User Offline
Joined: 24th Feb 2006
Location:
Posted: 2nd Jan 2008 11:03
Nope. very buggy atm

CPU: AMD X2 6000+ 3.0ghz GFX: NVIDIA BFG Geforce 8800GTS 640MB OC-550mhz core RAM: 2048mb

Hobbs
20
Years of Service
User Offline
Joined: 15th Nov 2004
Location:
Posted: 13th Jan 2008 20:00
Same question as lwatson. Is it avilable for Dark GDK.NET?
If not when?
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 23rd Jan 2008 23:08
So it doesn't work with vista then?

I have been scratching my head for the past hour trying to get the examples to work.

Frikin vista, I don't even have XP anymore so I can't test my new toy.. sob...sob....

Who is your Daddy, and what does he do?

Login to post a reply

Server time is: 2024-11-19 23:18:04
Your offset time is: 2024-11-19 23:18:04