Game Development Community

Torque to Blender, problem of transparency/Z-buffer.

by Tony84 · in Artist Corner · 07/24/2008 (9:05 am) · 3 replies

I am part of a small indie dev team for racing game where my role is to do assets. I've encountered one problem though and was wondering if you guys have experiences of similar (yes I did use search first, but with no succes). When I have made an item with more than 1 object with transparent texture it shows rather fine in blender (all planes are 1-sided but that doesn't matter). Problem comes with exporting to DTS and viewing this model in our game engine (Torque) with ShowToolPro however. Z-buffer seems to be doing it all wrong showing trought the parts it shouldn't. Here's picture of what I mean:

www.venomlemon.com/odd.jpg

Right, I was able to correct trunk showing trought by placing leafs on layer 2 and trunk on layer 1, however what's still matter is that each of my leaf part has 4 intersecting planes with same transparent texture (so you can see texture from all angles). These leafs ain't z-buffered correctly but show "inside out" like this:

This is how it looks:
www.venomlemon.com/problemo.jpg
This is how it should look:
www.venomlemon.com/asitshould.jpg
(first image demonstrates this too). I'm using latest blender, alphamapped super PNG for texture and been searching, trying and crying for total of 16 hours with this problem. So I turn to you my good fellow Blender modellers, any idea at all what I might be doing wrong/don't know. I guess I'm just too green/noob to figure this one out, would be lovely to carry on with my work =)

ps. here's zip file if you want to try/see yourself www.venomlemon.com/bush.zip

#1
07/24/2008 (10:57 am)
Have you tryed to build the leafs with two separate meshes, an then parent one to the other?
I have seen this issue before and it usually helps.
#2
07/24/2008 (1:33 pm)
What I did was joined the meshes, but I try playing around with it. Thanks for tip.
#3
07/24/2008 (2:56 pm)
...