Alright i think i know what your problem is: In the current version most (if not all) object shaders need a precalculated matrix (most likely this won't be the case in the next version, we'll see)
So what you have to do is this: Add this function to your script
Agh, it doesn't work for me <img src="/ubbthreads/images/graemlins/frown.gif" alt="" />.
I'm running gamestudio pro a7.
When I try to run my game it says:
Code:
Error in 'MAIN' line 13: 'var' undeclared identifier
< var s_rtScale = 256; //render-target size>
<include ^s_shadeC.c>;>
MAIN.WDL 1:2 (): Script error s_shadeC.c
All I did was include the s_shadec.c file and call s_initshaders
First of all ...this error is a bit stupid^^
just type #inlcude "s_shadeC.c" instead of <...>
now ...I have a problem tooI created a new little lvl....with a ground plate, 2 buildings and sun and used it as lite-c script...then i included the s_shadeC.c in my script and used the main() example 1 from the shade-c manual and the only effect i get is...every object is dark... now i tried the second example with all the finetuning for the HDR and i changed NOTHING....and the following error occures after compiling in the game: ----------------------------------------------------------- Malfunction W1550 Error in effect: s_mtl_ppe1(1):error X3000:syntax error:unexpected end of file
I realized i haven't posted much in the last days, so here's a video showing you the new dynamic exposure control in action. I think this finally is HDR-R but i'm not exactly sure so i'm calling it fake HDR-R Anyway i think it looks awesome in motion
To the ppl having problems: Please wait until the next release of shade-c. There's much that has been changed and it wouldn't really be worth to use the old version as you would have to rewrite some things in your script.