alpha not working

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

alpha not working // New Users

1  |  

Post by jofan // Dec 13, 2008, 11:05pm

jofan
Total Posts: 56
Hi all, hope someone can help with this


I have a number of dds textures that i would like to apply to some models and use the transarency that the dds provides


I am using workspace side (i dont believe model side supports dds) and i am using the standard calligiri d3d material (calligiri logo material), and setting the Alpha test to Enabled and Alpha Test Value to 1


When i try this on my laptop, it works fine (i can see through the alpha portions of the texture as i would expect) but on my desktop PC the alpha portions are solid black (i am repeating the same process on both)

The desktop PC is newer then the laptop - latest drivers etc


I have compared all settings and cannot see any differences, can anyone suggest any other settings that may be incorrect on my desktop PC, this is frustrating?


Kind regards,


J

Post by trueBlue // Dec 13, 2008, 11:21pm

trueBlue
Total Posts: 1761
pic
You should lower the Test value. That setting has a range from 0.000 -1.000 where as 0.500 would be 50% Alpha. There are several DX Materials in the Library that are better suited and setup for Alpha textures.
16847

This object has two dds images each that has several images with alpha. It is not a static image though as it is animated. See if this is any help. In the Link Editor navigate inside and check out the Material. The Test Value is set at 0.200.
http://forums1.caligari.com/truespace/showthread.php?t=6956
Note: When you first Import this, the first frame is all Alpha so it is invisible. Just advance the frame or play the animation.

Post by Johny // Dec 14, 2008, 3:37am

Johny
Total Posts: 672
pic
Hi Jofan, still have problem with alpha texture?

Maybe scripts on this link can solve your problem.
http://truesourceshop.com/truesourceforum/viewtopic.php?f=6&t=9

Post by jofan // Dec 14, 2008, 4:33am

jofan
Total Posts: 56
Thanks for the reply guys, will hopefully get to try Trueblues suggestions later and let you know how i get on


J

Post by spacekdet // Dec 14, 2008, 8:09am

spacekdet
Total Posts: 1360
pic
Ahhh, of course.. the "test value"... it's all so obvious now!:confused:

Post by jofan // Dec 15, 2008, 11:54am

jofan
Total Posts: 56
Thanks for the suggestions guys, but im still having problems with this on my desktop pc (laptop works fine)


The alpha test appears to have no effect (on desktop pc) whereas it works ok on the laptop (if i set the alpha test to 1, the material displays transparent areas ok as expected)


I appreciate that there are better shaders to deal with this but find it frustrating that using exactly the same setting between one pc and another produce different resuilts, i can only assume this must be down to some hardware differences / drivers etc?


look forward to any further advice on this, J

Post by trueBlue // Dec 15, 2008, 12:00pm

trueBlue
Total Posts: 1761
pic
Can you post the Material in question?
Select your object and right click in a Libray, Insert As - D3D Material (.RsMat)

I found some information about Alpha Testing in the Manual - Chapter5 - Surfacing Workspace
Search for keyword Alpha testing:

Alpha testing support for materials and shadows. Alpha testing is method of disabling rendering of pixels whose transparency is below a given threshold. An advantage of this method is that it can be used with depth testing and therefore it produces correct sorting. It allows objects such as vegetation (leafs, grass) to display properly sorted and cast proper shadows even if they are only a single quad with transparent texture. It is also an optimization technique as it allows hardware to skip blending operations on pixels that fail alpha test (and therefore become invisible).

So this may be what your expericing as it is Hardware related. I would be interested to see or know how my Explosion Material displayed on both of your rigs and or if there were any issues.

Post by Johny // Dec 15, 2008, 5:45pm

Johny
Total Posts: 672
pic
Hi all, hope someone can help with this

I have a number of dds textures that i would like to apply to some models and use the transarency that the dds provides

I am using workspace side (i dont believe model side supports dds) and i am using the standard calligiri d3d material (calligiri logo material), and setting the Alpha test to Enabled and Alpha Test Value to 1

When i try this on my laptop, it works fine (i can see through the alpha portions of the texture as i would expect) but on my desktop PC the alpha portions are solid black (i am repeating the same process on both)
The desktop PC is newer then the laptop - latest drivers etc

I have compared all settings and cannot see any differences, can anyone suggest any other settings that may be incorrect on my desktop PC, this is frustrating?

Kind regards,

J

Maybe your destop PC not support DirectX9c.

Can you give you PC graphics card specifications?

Post by jofan // Dec 17, 2008, 8:46pm

jofan
Total Posts: 56
Hi guys, thanks for the valuable help again!


Trueblue, your animation works fine on my desktop pc - thanks


With regards to my transparency issues, as you suggested previously there are other material better suited to this and i am now using a material that works fine for me but it still does pose the question why like for like settings results in diferent effects from one pc to another?


this is something i plan to get to the bottom of (hopefully) over the next few days and i will let you know how i get on


kind regards,


J
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn