Decal shadows bug

Posted By: Iglarion

Decal shadows bug - 01/18/19 23:05

Hi Jcl,

I think I found a bug in decal shadows (already ask in this thred ) . Decal shadows at one moments stay on ground while ai keeps moving without shadows.
Here is a video:

From test level and from my game .

I can send you small test level if needs.
Posted By: jcl

Re: Decal shadows bug - 01/25/19 20:09

Are you moving the entity more than once per frame? This could cause such effects.
Posted By: Iglarion

Re: Decal shadows bug - 01/25/19 21:17

No, just one time per frame.
Posted By: Superku

Re: Decal shadows bug - 01/26/19 06:24

I had experienced that bug many years ago as well. It's easily reproducible, as in here:

Click to reveal..
Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////

void main()
{
	fps_max = 30;
	video_mode = 10;
	level_load(NULL);
	camera.arc = 40;
	camera.y = -512;
	camera.z = 128;
	camera.pan = 90;
	camera.tilt = -15;
	you = ent_create(CUBE_MDL,nullvector,NULL);
	your.scale_y = your.scale_x = 64;
	c_setminmax(you);
	set(you,POLYGON);
	me = ent_create(CUBE_MDL,vector(0,0,60),NULL);
	set(my,SHADOW);
	def_move();
	while(1)
	{
		draw_text("Hold [Space] to move the entity.",20,20,COLOR_RED);
		my.skill1 += key_space*10*time_step;
		var x = sinv(my.skill1);
		my.x = pow(abs(x),0.5)*sign(x)*512;
		if(key_ctrl) reset(my,SHADOW);
		else set(my,SHADOW);
		wait(1);
	}
}

Posted By: Iglarion

Re: Decal shadows bug - 09/21/19 21:04

Hi Jcl.

Any news about this bug?
Posted By: jcl

Re: Decal shadows bug - 09/23/19 08:24

It is confirmed and on our To-Do list for the next A8 update - whenever that happens.
Posted By: Iglarion

Re: Decal shadows bug - 09/23/19 10:27

Ok, thanks.
© 2024 lite-C Forums