Page 1 of 1

Manaclient particle transparency issues

Posted: 01 May 2011, 07:27
by nmaligec
This glitch appears in the nightly build from the 19th onward. It is very specific and not really noticeable but I thought it might be a symptom of a bigger bug. I am using a local tmwAthena server to test some content I have not posted yet. I dont know of any other content that would be able to trigger this glitch, so you will have to take my work for it.

I was testing the new <deatheffect></deatheffect> tag and came across an odd glitch. Basically the particle I created would spawn a flame pillar on the player when it hit them, died, and spawned a deatheffect particle. Since it is not attached to the player, they can move away and leave it behind (I am ok with that).

I used gimp to make a quick demo of the glitch. Trying to get screen shots in game would be to annoying and wouldn't illustrate the main point as 'sharply'.

When the player stands still to let the flame pillar sequence finish playing, the particle will be semi-transparent and show the player under it.
Normal
Normal
deatheffect1.png (4.5 KiB) Viewed 1715 times
When the player moves away, the semi-transparent pixels become solid/opaque.
Glitch
Glitch
deatheffect2.png (4.75 KiB) Viewed 1715 times
This is what it should look like, if it were to work properly. It is hard to see against the darker floor, but it is semi-transparent.
Expected
Expected
deatheffect3.png (5.5 KiB) Viewed 1715 times
PS: the flame is part of a demo sequence I made, I know it sucks. I am waiting for a real artist to do a proper version.

Re: Manaclient deatheffect particle glitch

Posted: 01 May 2011, 09:46
by Jaxad0127
This behavior should be expected. The particles are transparent. Some particles are behind the player, some are in front, so you get that transparent effect: solid where there isn't a being, translucent where there is. Everything is normal.

Re: Manaclient particle transparency issues

Posted: 01 May 2011, 17:37
by nmaligec
I can live with that. Just wanted to be sure it was doing what it was supposed to. From a content dev side of things it seems odd that if you make something with 50% alpha, that it isn't always going to display that way.

Re: Manaclient particle transparency issues

Posted: 01 May 2011, 22:24
by Jaxad0127
Each individual particle will. But when you start layering them, the final effect will be more opaque.

Re: Manaclient particle transparency issues

Posted: 02 May 2011, 01:57
by nmaligec
Checking it in gimp, I do get the opaque version if I double layer same frame.

So now the question is: why is the client double(or more?) layering the particle?? The xml file I made for it does not use an emitter, just an animation node/tag. As far as I know, this should only use one layer.

Code: Select all

<effect>
	<!-- The deatheffect particle for the reaper's pillar of flame ranged attack -->
	<particle position-x="0" position-y="0" position-z="0" lifetime="47">
		<animation imageset="graphics/particles/monster-reaper-flame_64x64.png" width="64" height="64">
			<frame index="0" delay="100"/>
			<frame index="1" delay="90"/>
			<frame index="2" delay="120"/>
			<frame index="3" delay="90"/>
			<frame index="4"/>
		</animation>
	</particle>
</effect>
If this does not just use one layer please explain why. I am sure this would be useful for others to know as well.

Re: Manaclient particle transparency issues

Posted: 02 May 2011, 06:25
by Crush
The feature which makes characters appear slightly translucent when covered by buildings also works on particle effects. So you can not cover an object completely with a particle effect.

Re: Manaclient particle transparency issues

Posted: 02 May 2011, 07:25
by Bertram
Hi,
If this does not just use one layer please explain why. I am sure this would be useful for others to know as well.
nmaligec pointed out a valid point here, right?

Best regards.