I have created an animated explosion using this software and exported it as series of transparent PNG's. I'm using the ioquake engine and i have replaced the rlboom animation (rocket launcher gfx) with mine. However, it's not rendered normally... the colors are wrong and there are lot's of artifacts. Here's my shader:
So far: You are using PNG that is not normally supported. If you want to share it for VQ3, change it to TGA or JPG. You probably have no alpha channel in it. Change blendFunc blend to blendFunc add (or blendFunc GL_ONE GL_ONE, it is the same as add), it will make the texture matematically added to the background. Alpha blending is usable for vents, not special effects like explosions or fire, there should be additive blending, not blending based on alpha channel. Hope this will help you so much. For clarify, I post you new piece of shader now:
But ioq3 says in it's documentation that PNG's are supported. I tried using 24-bit transparent PNG's, as well 8-bit PNG's. In the shader, i have used blendfunc blend for the PNG's. I also tried TGA's with alpha channel transparency, no luck.
However, i have also saved the textures as JPG's with black background and used blendfunc add. This didn't make the black background disappear, it was still there. Is there any trick with JPG's?
IOquake3 is not Vanilla Q3. I said Vanilla Q3 does not support PNG by default, I did not say anything about three party addons. Shaders always need to have image extension being replaced by tga as this is native format for Q3. It always looks for JPG as alternative format when TGA is not available for some reason (missing file or not readable).
If you make some engine changes, you need to put then in its own modification directory, if you compiled only vm's. Replacing baseq3 stuff is bad idea, this always will lead to textures leaks. If you made your own exe, make sure your weapon hit texture is also in separated pk3 and in separated mod folder, otherwise it will cause the same flaw as the first state.
Hope it has explained your problem
[Linktree | Twitter | YouTube | Instagram]
“When you feel the worst, turn to the sun and all the shadows will fall behind you.” - John Lennon
ioq3 is a little bit different, though. The engine can read PNG, TGA and JPG. Transparency is supported as well, but maybe i'm missing something in the shaders.
BTW I'm not using custom QVM, just a modified version of the renderer to support more than 8 animmap frames. On top of the latest ioq3 master.
Besides that, I always would recommend you to make additionaly a mod folder for that. Do not place it in baseq3 (or what is your base mod named), place it somewhere on the side to avoid that flaw. Your shader is good, just modify the blendfunc mode to add and replace .png to .tga (it do not make that sense, but it is better that when you decide to make TGA with alpha, you do not need to replace the extension with new one)...
[Linktree | Twitter | YouTube | Instagram]
“When you feel the worst, turn to the sun and all the shadows will fall behind you.” - John Lennon
I changed to a custom mod folder and also changed to TGA. I tried both TGA with and without alpha, with and without blendfunc add, without any luck. Still no transparency. That is the issue.
I have tried:
- Transparent 24-bit PNG
- Transparent 8-bit PNG
- JPG with black background
- TGA with black background
- TGA 16-bit with alpha channel transparency
- TGA 24-bit with alpha channel transparency
- TGA 32-bit with alpha channel transparency
Theftbot, you hit it However RoQ must be placed in video folder, otherwise it won't work. Also it will display in cinematics section in the game, which is pretty unwanted. I don't know what will do placing RoQ in weapon hit texture. I think it has some rules what can be modified by what. If you really need to increase the maximum textures in animation, read the source code documentation carefuly first, there should be described changes that will affect engine and how to change something to get change working. If not, you would like to contact id Software to advice in increasing maximum animation frames. RoQ is great for making map videotexture (for example map movies in Team Arena) or new cinematic, not for special effects. It also has not so much good quality as using individual texture frames for animation, hovewer limited for 8 per shader stage.
[Linktree | Twitter | YouTube | Instagram]
“When you feel the worst, turn to the sun and all the shadows will fall behind you.” - John Lennon