• Dear visitors,

    The email issue has been finally solved.
    Thank you for your patience and happy browsing.

    Team ACM.

3d tree how to solve bad texture

quetillo

Member
I made a 3D tree with the treeit program and I added it from AC. When I placed it with the treeplanner I got the texture of the leaves wrong, I don't know if it's when I exported it or why, I touched several values but the only solution is to make it darker, The bad thing is that the trunk darkens and it is not very dark, does anyone know how to export it from treeit or how I could solve it, thank you
 

Attachments

fughettaboutit

aka leBluem
if you are using ksTree shader, you might try ksPerPixelAT, maybe looks better?

or

this in ext_config.ini
[SHADER_REPLACEMENT_...]
MATERIALS = your_mat
MATERIAL_FLAG_0 = 1

or

for those leaf-meshes, change the normals to point up, idk relly how to do with blender buildt in tools, but i use this script:
 

quetillo

Member
if you are using ksTree shader, you might try ksPerPixelAT, maybe looks better?

or

this in ext_config.ini
[SHADER_REPLACEMENT_...]
MATERIALS = your_mat
MATERIAL_FLAG_0 = 1

or

for those leaf-meshes, change the normals to point up, idk relly how to do with blender buildt in tools, but i use this script:
I can't, they are 3d trees, which are put directly within the game
 

luchian

Administrator
Staff member
if you are using ksTree shader, you might try ksPerPixelAT, maybe looks better?

or

this in ext_config.ini
[SHADER_REPLACEMENT_...]
MATERIALS = your_mat
MATERIAL_FLAG_0 = 1

or

for those leaf-meshes, change the normals to point up, idk relly how to do with blender buildt in tools, but i use this script:
Did not know about this tool. I'll give it a try as well, since it reminded me of an unreleased project from many years ago. Thank you :).
trees.png
 

luchian

Administrator
Staff member
if you are using ksTree shader, you might try ksPerPixelAT, maybe looks better?

or

this in ext_config.ini
[SHADER_REPLACEMENT_...]
MATERIALS = your_mat
MATERIAL_FLAG_0 = 1

or

for those leaf-meshes, change the normals to point up, idk relly how to do with blender buildt in tools, but i use this script:
All right, tried the script. On Blender 4.3.2, if I run the script as is, I get this error:
Code:
AttributeError: 'Mesh' object has no attribute 'use_auto_smooth'
However, I can comment out the line "me.use_auto_smooth = True" and then it runs.

This is the difference between a tree with and one without. Guess which one is which :).
tree_normals.png
 

fughettaboutit

aka leBluem
I guess the right one is after the script? :)

actually there is CSP code to do that via ext_config.ini (github wiki)
"Normals alteration":
Code:
[ALTER_NORMALS_...]
MESHES = mesh0, …         ; List of affected meshes
MATERIALS = material0, …  ; List of affected materials (use of these, or both)
ALTER = 0, 1, 0           ; Optional reorientation of a normal vector (turns vector along provided vector)
edit:
For my "NormalsUp"-script:
Also commented out that autosmooth line, thx! And added one more hint how to use it.
 
Top