grafic problem with transparency

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
THOM
Posts: 1280
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

grafic problem with transparency

Post by THOM »

I am trying to alter some dif-maps. But sometimes I got some ugly edges with grafics that go into transpareny. It seems that ingame transparency is rendered differently. In various graficprogramms everything looks fine.

I am using Gimp and save to BC3/DXT5

Does anyone have an idea, what I am doing wrong?
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: grafic problem with transparency

Post by minmay »

If the blend mode is "Opaque" then you only get 1-bit alpha with alphaTest = true, or no alpha at all with alphaTest = false. If you need alpha blending you need to use "Translucent" blend mode but the material cannot be lit in this case.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Post Reply