Ludeon Forums

Ludeon Forums

  • December 05, 2022, 09:26:18 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Alpha Problem (I think?)  (Read 3695 times)

Calistyn

  • Drifter
  • **
  • Posts: 44
  • Refugee
    • View Profile
Alpha Problem (I think?)
« on: November 22, 2013, 06:56:27 PM »

I've been messing around with the textures in game (even though it may not be relevant in the future  :P), and have successfully modified the ground textures without issue. So I figured I'd play with making the Nutrient Paste Dispenser look a little different.

I made my image, it loads in the game and functions just fine. However, there is forever a square shadow around it, almost as if the alpha has some transparency on it and is letting something through.

I've gone over my file multiple times, checked everything against the original dispenser, and have come up blank. So! Anyone have any ideas? The file and a screenshot are attached, if anyone is willing to look them over.



[attachment deleted by admin: too old]
Logged

Rhodes

  • Drifter
  • **
  • Posts: 74
  • Refugee
    • View Profile
Re: Alpha Problem (I think?)
« Reply #1 on: November 23, 2013, 12:57:01 AM »

Unfortunately, it's nothing you did.  Even in the base textures; everything has the square shadow.  You just don't notice it as much because most of the stuff in-game is actually square.

Tynan may correct me, but I believe it's the code for shadows, not your texture, that is the issue.
Best you can do is just square up your texture to fit the original dimensions to make it less obvious.
Logged

Calistyn

  • Drifter
  • **
  • Posts: 44
  • Refugee
    • View Profile
Re: Alpha Problem (I think?)
« Reply #2 on: November 23, 2013, 12:45:59 PM »

Ah, I hadn't thought of that. Well, thank you for answering! :)
Logged

Tynan

  • Developer
  • Administrator
  • Transcendent
  • *****
  • Posts: 12484
    • View Profile
    • Tynan's Blog
Re: Alpha Problem (I think?)
« Reply #3 on: November 24, 2013, 11:41:03 AM »

Yes, it casts a shadow from its square edges. The shadow code doesn't analyze the texture to find the exact spot to cast shadows or anything like that. In general you should try to make your art match the tile edges as closely as possible. This also makes it look sensible when people use it as cover and lean around it.
Logged
Tynan Sylvester - @TynanSylvester - Tynan's Blog