Z-Buffer Problem

Posted By: Elitegunner

Z-Buffer Problem - 03/24/08 02:15

Ich habe ein Modell von FBX konvertiert welches in MED ganz normal aussieht aber in der A6 engine fehlerhaft.
Undzwar kann ich durch das Modell hindurchsehen.
Ich Hatte vor Jahren mal einen Script den man der Entity zuweist welcher genau dieses Problem behebt.
Leider weis ich nicht mehr so genau wie er aufgebaut war und überhaupt habe ich mit 3DGS seit Jahren nichtsmehr gemacht.
Ich entschuldige mich dass meine Erfahrung deswegen etwas zurückgegangen ist.

for english users:
(sorry my english is not very well)

I imported a model in FBX format in MED wich looks normal there, but not in the A6 engine.
The problem is i can look through the model.
I had a script a few years ago wich fix exact this problem, but i forgot how it was written.
I didn't touched 3dgs for years and my experience decreased, i'm sorry for this.

Posted By: Quad

Re: Z-Buffer Problem - 03/25/08 13:04

tried flipping normals?

or either your skin may have some problems.
Posted By: Fenriswolf

Re: Z-Buffer Problem - 03/25/08 13:54

This could be due to an alpha channel (make sure the texture does not have one, if you dont need transparency) or internal material settings.
In MED you can find the material settings here: Edit > manage skins > [select skin] > skin settings. 'Material setup' should be unchecked to disable internal material settings.

If your models texture has an alpha channel because you need transparent parts, you can use improved overlay.
Posted By: Elitegunner

Re: Z-Buffer Problem - 03/25/08 16:58

okay that script did it:

but now the animation stopped, i had one animation what played constantly and looped for this model,
anyone know the script to play it?

Code:
material mat_alphatest
{
effect =
"
technique alpha_test
{
pass p0
{
zWriteEnable = true;
alphaTestEnable = true;
}
}
";
}

action apply_alphatest_material
{
my.material = mat_alphatest;
}




© 2023 lite-C Forums