[Addressed] [0.4.5]user defined art transparency issues

Moderator: Raze Developers

[0.4.5]user defined art transparency issues

Postby Photonic » Sun Feb 16, 2020 7:40 pm

One of eduke32s very useful modding features is the ability to define new game images without .art files using the def command tilefromtexture.
In raze the art loaded this way behaves different and has a transparency glitch where although you can see through, sprites disappear behind these transparent pixels. Same for indexed or RGB .png files, oddly loading .bmp files this way show me the ugly pink pixels instead of any transparency at all.

debug map, and duke3d.def with 1 png, 1 bmp. the map consists of the same image (a broken glass texture) placed around but using the three different methods of loading, (from .art, from tiletotexture both bmp and png)
transparency-debug-1.zip

Duke_0001.png

To test unzip contents into duke folder and run "raze.exe -map newboard.map"

added: To be clear, the behaviour of .bmp files with pink drawing is the same in eduke32, I just thought it was worth mentioning. The alpha for .pngs are behaving diferent here.
You do not have the required permissions to view the files attached to this post.
User avatar
Photonic
 
Joined: 08 Feb 2020

Re: [0.4.5]user defined art transparency issues

Postby Graf Zahl » Mon Feb 17, 2020 1:06 am

BMPs have no transparent color so that part is hardly surprising.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [0.4.5]user defined art transparency issues

Postby Graf Zahl » Tue Feb 18, 2020 12:13 pm

So what's wrong here? The transparent parts of the PNG allow everything to be seen that's behind and the BMP, having no transparency looks opaque as it should.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [0.4.5]user defined art transparency issues

Postby Photonic » Tue Feb 18, 2020 12:29 pm

It's a horrible picture, and a poor bug report.
The transparent sprites you see in the picture [in the OP] are from the .art tiles.

This picture is better.
Untitled-1.png



I have tested some of this with the upscale pack. The plain "texture" command works, but only for tiles that have a base in .art files. If the tile is created new using "tilefromtexture" then the same transparency issue carries over to high res "texture" defined images too.
You do not have the required permissions to view the files attached to this post.
Last edited by Photonic on Tue Feb 18, 2020 1:06 pm, edited 1 time in total.
User avatar
Photonic
 
Joined: 08 Feb 2020

Re: [0.4.5]user defined art transparency issues

Postby Graf Zahl » Tue Feb 18, 2020 12:51 pm

No idea how you manage that, I don't. Where does that monster come from?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [0.4.5]user defined art transparency issues

Postby Photonic » Tue Feb 18, 2020 1:05 pm

I put him into the map in OP using mapster. Just tested the "spawn liztroop" command works in raze you can get one running around in that debug map easily. Same happens either way. Only on new tiles created with tilefromtexture in def file.
Like this.
Code: Select allExpand view
tilefromtexture 5000 { file "5000.bmp" }
tilefromtexture 5001 { file "5001.png" }

The reason I brought up bmps is because it illustrates that the two methods of loading art behave differently, after all the .art file is just a collection of bitmaps, palette entry 256 is transparent, but the hint is in it not being so when loaded with def files. That pink is not a bug, just a hopefully helpful hint.
User avatar
Photonic
 
Joined: 08 Feb 2020

Re: [0.4.5]user defined art transparency issues

Postby Graf Zahl » Tue Feb 18, 2020 1:23 pm

No, you got it wrong about ART files. ART files are not BMP files but raw pixels where 255 is defined to be the transparent color. BMPs do not define a transparent color so the pink is opaque. This is entirely defined and intended behavior.

I still do not get the glitch you experience. What's your hardware?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [0.4.5]user defined art transparency issues

Postby Phredreeke » Tue Feb 18, 2020 1:53 pm

I've got glitchy tilefromtextures as well. Noticable if you load my Powerslave or Life's a Beach pack and turn off truecolor textures. I recorded a short clip of it here

https://www.youtube.com/watch?v=6dg19TbaEy4

Edit: This is on an i5-3450 with a GTX 980 running Win 7
Last edited by Phredreeke on Tue Feb 18, 2020 2:16 pm, edited 1 time in total.
User avatar
Phredreeke
 
Joined: 10 Apr 2018
Discord: phredreeke#6500

Re: [0.4.5]user defined art transparency issues

Postby Photonic » Tue Feb 18, 2020 2:10 pm

Graf Zahl wrote:I still do not get the glitch you experience. What's your hardware?

Intel core2duo E8400

OS: Windows 7 (NT 6.1) Build 7601

GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce GT 640/PCIe/SSE2
GL_VERSION: 4.4.0 (Core profile)
GL_SHADING_LANGUAGE_VERSION: 4.40 NVIDIA via Cg compiler

Max. texture size: 16384
Max. texture units: 32
Max. varying: 124
Max. combined shader storage blocks: 96
Max. vertex shader storage blocks: 16
Resolution: 1280 x 1024
User avatar
Photonic
 
Joined: 08 Feb 2020

Re: [0.4.5]user defined art transparency issues

Postby Photonic » Tue Feb 18, 2020 2:36 pm

Phredreeke wrote:I've got glitchy tilefromtextures as well. Noticable if you load my Powerslave or Life's a Beach pack and turn off truecolor textures. I recorded a short clip of it here

https://www.youtube.com/watch?v=6dg19TbaEy4

Edit: This is on an i5-3450 with a GTX 980 running Win 7


That looks very different from mine, your video looks like a form of corruption. On my end hud tiles defined with tilefromtexture render properly, same with my menu font. My bug is only on sprites within the game world.
User avatar
Photonic
 
Joined: 08 Feb 2020

Re: [0.4.5]user defined art transparency issues

Postby Photonic » Fri Feb 21, 2020 3:56 pm

Phredreeke wrote:I've got glitchy tilefromtextures as well. Noticable if you load my Powerslave or Life's a Beach pack and turn off truecolor textures. I recorded a short clip of it here

https://www.youtube.com/watch?v=6dg19TbaEy4

Edit: This is on an i5-3450 with a GTX 980 running Win 7


I can reproduce this here. Same conditions, any tilefromtexture image with truecolor off.

TEST_0001.png
You do not have the required permissions to view the files attached to this post.
User avatar
Photonic
 
Joined: 08 Feb 2020

Re: [0.4.5]user defined art transparency issues

Postby sinisterseed » Fri Feb 21, 2020 4:58 pm

Phredreeke wrote:I've got glitchy tilefromtextures as well. Noticable if you load my Powerslave or Life's a Beach pack and turn off truecolor textures. I recorded a short clip of it here

https://www.youtube.com/watch?v=6dg19TbaEy4

Edit: This is on an i5-3450 with a GTX 980 running Win 7

Can confirm this as well: https://i.imgur.com/8o1Tvne.png
User avatar
sinisterseed
GZDoom RO Translator & Raze Tester
 
Joined: 05 Nov 2019
Twitch ID: sixhundredsixteen
Github ID: sinisterseed
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: [0.4.5]user defined art transparency issues

Postby Graf Zahl » Tue Oct 13, 2020 3:40 pm

Is this still an issue? AFAIK the cause got fixed a few months back.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [0.4.5]user defined art transparency issues

Postby mjr4077au » Tue Oct 13, 2020 4:08 pm

I'll test tonight unless someone else beats me to the punch. The test might not be conclusive until some of the sprite substitution works for the BigFont again as it was one of the things that glitched as well IIRC.
User avatar
mjr4077au
 
Joined: 17 Jun 2019
Location: Gosford NSW, Australia
Discord: mjr4077au#1027
Github ID: mjr4077au
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: [0.4.5]user defined art transparency issues

Postby mjr4077au » Wed Oct 14, 2020 4:11 am

So the glitchiness when turning off true colour tiles doesn't seem to be there. The only issue observed was issues with upscaled HUD sprites as outlined here. Will close this for now, #100 is still open so I guess it'll be worked on in due course :).
User avatar
mjr4077au
 
Joined: 17 Jun 2019
Location: Gosford NSW, Australia
Discord: mjr4077au#1027
Github ID: mjr4077au
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests