• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Concerning images

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,290
1. Remove the need to add a transparent 1 pixel alpha border via external tools to standard wc3 icons file paths.
Post a screenshot of the issue for clarification. If I recall it is because there is some messup with the UV wrapping resulting in the boarder texels being stretched long distances using bilinear filtering. By making the boarder transparent it does not stop the problem, but purely masks it since the stretched texels are invisible.

2. No longer crash the game if an invalid path is used. Instead do nothing.
Throwing a warning would be better. I do agree that it should not crash but equally well a properly made map should not have any invalid path strings.
 

LeP

LeP

Level 13
Joined
Feb 13, 2008
Messages
545
2. No longer crash the game if an invalid path is used. Instead do nothing.

Can you give me a crashing example?
Doing call BJDebugMsg(I2S(GetHandleId(CreateImage("invalid.blp", 64, 64, 1, 0, 0, 0, 0, 0, 0, 1)))) just prints -1 instead of crashing for me.
 

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,290
Can you give me a crashing example?
Invalid images often access memory in an unsafe way. As such the crash may occur only on some systems, and not on others.

I don't have an editor or the game installed, but it looks kinda like here ( link )
Looks like they recycle the 4*4 chunk geometry and just use a UV wrap for the image texture. The result is the end texels are stretched, which if not transparent will then show and mask the terrain underneath (as they are rendered ontop). Not sure how they would fix it, but there might be some blend/filter flag.
 
Status
Not open for further replies.
Top