Problems with using of Shade-C Project

Posted By: Bastiuscha

Problems with using of Shade-C Project - 01/30/14 20:08

I search on google and on this Forum, but i donīt find a answer.

i set:
#define PRAGMA_PATH "shade-c"
#include "sc_core.c";

and then in the main: sc_setup();

When i start the game, (without using a shader) i have promt a blur like view! how i can fix this?

Much Thanks!
Basti
Posted By: sivan

Re: Problems with using of Shade-C Project - 01/30/14 20:54

what shade-c version is it?
Posted By: Bastiuscha

Re: Problems with using of Shade-C Project - 01/30/14 22:36

i use v0.90!

If i try v0.91 Beta, i become this errormessage:
Posted By: sivan

Re: Problems with using of Shade-C Project - 01/31/14 07:38

there are some examples in shade-c 0.90 and 0.91, just check them, I did it too and they definitely work fine. last year I made some conversions for A8 (water and shadowmapping), you can find in the forum at contributions and user resources sections. shade-c 0.90 and 0.91 are for A7, and there are some wrong view flag settings resulting in incompatibility with fog, and other issues.
moreover, if you want to avoid a lot of work spent on conversion to A8, in my editor you can find a water shader and a shadowmapping rip of 0.91, consisting of only 4 .h and .c files and some .fx shaders...

the message is because you forgot to include d3d9.h by #include <d3d9.h> required by DX function calls. if you use 0.91 you need the following lines to be added:

Code:
#define PRAGMA_PATH "shade-c"
#define PRAGMA_PATH "stuff"

#include <acknex.h>
#include <default.c>
#include <d3d9.h>			

#include "sc_core.c";


// in water action:
	sc_water(my);


// after level load:
	//Setup Shade-C
	//setup shade-c. Activate everything as we want to use everything!
//	sc_bHDR = 0;
//	sc_bDOF = 0;
	sc_bRefract = 1;
	sc_bWater = 1;
	sc_bReflect = 1;
//	sc_bVolParts = 0;
	
	sc_setup();



shadowmapping requires some further stuff, but check the examples. sky should be set as volumetric particle to work fine.
Posted By: Bastiuscha

Re: Problems with using of Shade-C Project - 01/31/14 11:37

OH yes.. i donīt include the d3d9.h, if i use v.91! but if i make, the the compiler missing some files..mdl and tga. and yes, i use A8...stupid to forget, that A7 is a other code. smirk ok, then i use other shader. what a pity. frown
© 2024 lite-C Forums