How to make a gfx thing a certain shape. -1 reply

Please wait...

edeholland

The Internet ends at GF

50 XP

12th February 2009

0 Uploads

108 Posts

0 Threads

#1 9 years ago

I tried to make a new cloud image by making the old one darker, but when the image is displayed in-game, you see a square shape. Which I think is weird because the edges of my image are black, and black space is not displayed, right? So how do I get a cloud-shaped effect and not some black square with a hint of grey?




Jonny2199

Click >HERE< to find an idiot.

50 XP

18th September 2005

0 Uploads

1,046 Posts

0 Threads

#2 9 years ago

I'm not entirely sure, but I think it has to be saved as a .tga because Targa files can use alpha layers. This means that whatever is black is invisible, what ever is pure white will be completely visible and grays inbetween vary accordingly. Search for a tutorial on alpha layers for whatever you're using, assuming you are using a proper image editor like GIMP or Photoshop. Add the alpha layer, save as a .tga, compile and test.




NAB622

EAT ME!

50 XP

8th October 2005

0 Uploads

6,921 Posts

0 Threads

#3 9 years ago
edeholland;4828042I tried to make a new cloud image by making the old one darker, but when the image is displayed in-game, you see a square shape. Which I think is weird because the edges of my image are black, and black space is not displayed, right? So how do I get a cloud-shaped effect and not some black square with a hint of grey?

You need a shader to do that.

I don't know if there's any shader tutorials anywhere, though...basically, for that purpose, you just need a shader with BlendFunc GL_ONE GL_ONE.

This should work...modify it as needed. textures/path-to-texture/new-texture-name { qer_editorimage textures/path-to-texture/texture-name { map textures/path-to-texture/texture-name blendfunc GL_ONE GL_ONE } }If you're not sure what to do with that, have a look at base JA shaders, and see how they work. It's not too complicated. :)




edeholland

The Internet ends at GF

50 XP

12th February 2009

0 Uploads

108 Posts

0 Threads

#4 9 years ago

That didn't do it, but it's no problem, it also works with a mix of alpha smoke and black smoke. Is it possible to make an impact effect for a spark, for example burn marks where sparks hit a surface? I tried it with impactfx but that didn't work.




NAB622

EAT ME!

50 XP

8th October 2005

0 Uploads

6,921 Posts

0 Threads

#5 9 years ago

It probably is, but the effect will not be permanent. Plus, that will very quickly overload the effects engine.