Thanks to the user rojart i finally got myself an upgrade to A8 Pro (thanks!). While testing Shade-C with A8 i found something strange.

It seems that vec_for_screen is broken in A8.

Just try this simple script
Code:
void main()
{
	level_load(NULL);
	wait(5);
	while(1)
	{
		
		VECTOR testVec;
		testVec.x = 0;
		testVec.y = 0;
		testVec.z = -10000;
		vec_for_screen(testVec, camera);
		vec_set(testVec, vector(testVec.x, testVec.z, testVec.y) );	
		DEBUG_VAR(testVec.x,screen_size.y-40);
		
		wait(1);
	}
}



A7 outputs -9999 (correct)
A8 outputs -8202.271 (incorrect)

I need correct values for vec_for_screen, as i'm reconstructing worldspace and viewspace position in some shaders using a depthmap and 4 values vec_for_screen gives me. (more info here http://mynameismjp.wordpress.com/2009/05/05/reconstructing-position-from-depth-continued/ )

Can you confirm this bug?


Shade-C EVO Lite-C Shader Framework