Incorrect transparency rendering.

RejectedSpike

New member
Hello, all;

I have Trainz+ and use Blender version 4.3 to create assets for that version of Trainz.

I have been trying to make bushes the old-fashioned way, using intersecting transparent panels to create the 3D effect.

The problem is that the panels render correctly in Blender.

However, when I load the panels into Trainz, the clear part of the panel renders black.

I've tried every combination possible but failed at every attempt.

What is the problem?

I hope that someone out in the Trainz universe has the answer.

Thanks for the attention given me,

Best of everything to all.

RejectedSpike
 
Does the image you're using for the texture have an alpha channel to define the areas that are opaque and those that are transparent? If so, does the associated texture.txt file have a line specifying an Alpha channel? For a "billboard" type of bush, it should look like this (an example using a PNG image);

Primary=image.png
Alpha=image.png
Tile=st
AlphaHint=masked

The AlphaHint line is optional, its possible values are opaque, masked or semitransparent. Masked is the most "computer-efficient" option. If nothing is specified, the default is semitransparent.

PBR textures are similar, but a bit more involved. For more, read here.
 
Last edited:
Dinorius_Redundicus

Thank you for responding to my post regarding the alpha issue.

I consulted the information you suggested and included it in the albedo texture file, but it did not work.

What should by transparent, remains black.

Again, thank you for your time and I'll keep hammering away at this problem for a while longer.

Best regards,
RejectedSpike
 
I’m not a Blender user and you haven’t said what sort of texture material you’re using, so it’s hard for me to help much.

The fact that you mentioned “albedo” suggests you are trying to use a PBR material. If so, the only thing I can think of is that you might be using an m.pbrmetal material (which does not support transparency). It should be m.pbrmetalmasked. As with any material, it must be set up correctly in the 3D creation program (Blender in this case). This is described in detail in the Wiki, so I can only suggest you look there.
 
Last edited:
Back
Top