Hey all,
Sorry to dredge this up, I see alot of posts in the forum about it, but no answers =P
Has anyone figured out how to fix object disappearing when a shader is applied to them? I've loaded the effect, set it to an object, and it simply disappears.
Code:
// Dark GDK - The Game Creators - www.thegamecreators.com
// the wizard has created a very simple project that uses Dark GDK
// it contains the basic code for a GDK application
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
dbMakeObjectSphere( 1, 1 );
dbLoadImage( "base.dds", 1 );
dbLoadImage( "toon.dds", 2 );
dbTextureObject( 1, 0, 1 );
dbTextureObject( 1, 1, 2 );
dbLoadEffect( "Cartoon.fx", 1, 1 );
dbSetObjectEffect( 1, 1 );
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
Tell me I'm doin' it wrong ^_^
Thanks!
Bishop
Tux is my guildmaster.