Jump to content
  • 0

graphic png is transparent in game


ginseng

Question

hi, I'm back to my wad after many months of being busy with real life stuff, and I've forgotten so much about wad making, so im so sorry for the inconvenience, i really need help since im having this issue with adding my own graphic pngs, like lets say a lamp, I've renamed it to a pre-existing item and converted to texturex, added it from doom builder and once i load it up, its there and i can interact with it but its transparent, I'm wondering what the issue may be. please help!

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0

What do you mean exactly by transparent? Is is visible but translucent? Or fully invisible?

 

Since it's a PNG, if it's translucent, it may have an alpha channel value even in the parts that you would want opaque. This can be fixed in an image editor like GIMP by setting an alpha threshold.

 

Also I'm not sure if you're using it as a sprite for an actor or as a texture for a wall. You've said you've renamed it to a pre-existing item so that would imply a sprite, but also that you have "converted to texturex" so that would imply a texture. For a sprite, it could be an offset issue, that would push the sprite below the object and thus make it invisible, not because it's transparent but because it's hidden in the floor.

 

Lastly, what item have you reused exactly? Maybe the corresponding actor has a transparent render style.

Share this post


Link to post
  • 0
12 minutes ago, Gez said:

What do you mean exactly by transparent? Is is visible but translucent? Or fully invisible?

 

Since it's a PNG, if it's translucent, it may have an alpha channel value even in the parts that you would want opaque. This can be fixed in an image editor like GIMP by setting an alpha threshold.

 

Also I'm not sure if you're using it as a sprite for an actor or as a texture for a wall. You've said you've renamed it to a pre-existing item so that would imply a sprite, but also that you have "converted to texturex" so that would imply a texture. For a sprite, it could be an offset issue, that would push the sprite below the object and thus make it invisible, not because it's transparent but because it's hidden in the floor.

 

Lastly, what item have you reused exactly? Maybe the corresponding actor has a transparent render style.

i think ive definietely made countless mistakes whilst doing it, to answer your question it is a sprite, and i think the mistake had to be adding it to texturex and patch table when I'm not supposed to, I'm wondering how i can add it as a sprite, i want to alter that shish kabob sprite into something else I've drawn, when i originally loaded up my wad it had worked and i was unaware of it and looked like the second image, however it was a different hanging sprite and it was halfway through the floor, once i tried to switch it to another one with the correct dimensions it just came out as fully transparent even tho the sprite box would still block my path.

image_2024-06-16_191714693.png

image_2024-06-16_191837620.png

Share this post


Link to post
  • 0

Oh yeah, in that case I suspect it's an offsets problem.

 

The origin point of an actor in game is at the bottom center of their collision box. The sprite is drawn from this position. That means it needs offsets to be displayed properly -- by default, the origin point of an image is the top-left corner, meaning that the sprite will appear below and to the right of the actor's invisible collision box.

 

Using SLADE, you can set offsets to your PNG file. The horizontal offset (X) should be half the image's width, and the vertical offset (Y) should be the whole image's height.

Share this post


Link to post
  • 0
4 minutes ago, Gez said:

Oh yeah, in that case I suspect it's an offsets problem.

 

The origin point of an actor in game is at the bottom center of their collision box. The sprite is drawn from this position. That means it needs offsets to be displayed properly -- by default, the origin point of an image is the top-left corner, meaning that the sprite will appear below and to the right of the actor's invisible collision box.

 

Using SLADE, you can set offsets to your PNG file. The horizontal offset (X) should be half the image's width, and the vertical offset (Y) should be the whole image's height.

thank you so much, ill give that a go, but one last question, when im altering sprites, i just add it and convert to graphic (doom) and nothing else right? like no adding to patch table and texturex?

Share this post


Link to post
  • 0

Sprites shouldn't be added to patches/textures unless you actually want to use them as such.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...