Archive 17/01/2023.

Need Help,How To Use Z Transparent in Urho3D

chenjie199234

In diffnormal,there is no z transparent.
I want to import a tree into my scene,the leaf in blender is right,but it is wrong in Urho3D.

Modanung

The technique DiffNormalSpec does not support alpha.Try replacing it by DiffNormalSpecAlpha.

And welcome to the forums! :slight_smile:


As a more general question: What happened to the AlphaMask techniques? And how could one recreated them?

Mike

If the Blender exporter did not pick the right technique (assuming you’re using the addon), then your settings are not as expected by the exporter.

Ensure that ‘Transparency’ is enabled in Blender’s Material panel and optionally check ‘Mask’ if need be.

1vanK

Do not use Alpha for leaves (alpha required sorting - slow perfomance and errors for densely located objects) only AlphaMask

Mike

‘ALPHAMASK’ is now a psdefines

See here

Mike

Sorry for typo, I intended to say ‘Mask’ (instead of default ‘Z Transparency’).

chenjie199234

What is this in blender!
If i use the Z Transparency in blender,then it is ok.
If i dont use the Z Transparency in blender,then it is wrong.

Modanung

image

Mike

Checking ‘Transparency’ in Blender is the way to tell the exporter that you want to use transparency.

Checking ‘Mask’ in Blender is the way to tell the exporter that you want to use alpha mask instead of Z transparency (‘Raytrace’ is not supported).

Maybe this info is missing in the guide.

Mike

BTW, are you using the Blender exporter or not ?