Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, 1 invisible), 584 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Possible lite-c particle bug after video_switch #258164
03/28/09 04:01
03/28/09 04:01
Joined: Oct 2002
Posts: 2,256
Oz
L
Locoweed Offline OP
Expert
Locoweed  Offline OP
Expert
L

Joined: Oct 2002
Posts: 2,256
Oz
Hello,

I have been having this problem with particles that happens after video_switch (both video_mode and video_screen).

What happens is particles work fine until a video_switch is performed, after that, the p.alpha seems to be unchangeable in the p.event function much of the time for what seems to be random particles.

After the video_switch, you can seem to change the frequency of the particles effected also by moving closer or farther from the particles, or changing the the angle the camera is viewing the particles sometimes too.

It seems to be happening with a all of effects that use p.alpha to terminate the particle I have in the game, not only the one shown in movie linked below.

Particle Problems Movie Zip

Also on a side note, I have also noticed that any decal shadows in the view also disappear during video_switch until the entity that owns the decal shadow moves, at which time the decal shadow will reappear. If it never moves, the decal shadow will never reappear. This is noticeable in the movie also with the decal shadows under the crystals around the geyser, they disappear after video_switch also.

Snippet of code of effect from movie.
Code:
function effectGesyserSteam(PARTICLE* p)
{
	var color;
	
	p.bmap = tgaGeyserSteam;
	p.vel_z = 1*GAME_SCALE;
	p.alpha = 15 + random(10); 
	p.size = random(30) + 30; 
	p.lifespan = 100;
	color = random(50) + 50;
	p.red = color;
	p.green = 255;
	p.blue = color;
	p.flags |= (MOVE);
	
	p.event = effectGesyserSteamFade;
}

function effectGesyserSteamFade(PARTICLE* p)
{
	p.alpha -= (.5 + random(.25)) * time_step;
		
	if (p.alpha < 5) 
	{
		p.lifespan = 0;
	}	
}


I am not sure how this could be specific to the game, but I supposed it is possible. Just wanted to make sure this isn't a known issue because I was unable to find any mention of it.

Thanks,
Loco


Professional A8.30
Spoils of War - East Coast Games
Re: Possible lite-c particle bug after video_switch [Re: Locoweed] #259424
04/06/09 06:01
04/06/09 06:01
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I believe you even without downloading a 100 Meg movie, but can't reproduce this problem here. Are you sure that your TGA is 32 bit, not 24 bit? If so, can you upload or send that project to Support? We'll look into this.


Moderated by  jcl, Nems, Spirit, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1