• Dear visitors,

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

    Team ACM.

SHADER setting-up trees

yeah that is just incorrect unwrap.


you can follow this tutorial here.


but with 2.8 you can skip everything if you use images as plane addon.

just follow the part where he rotates the tree correctly and sub divides it.

and it will look good in game.

 

Theis

New Member
Hi!
Trying hard to wrap my head around trees in AC :)

I cant get the group naming to work in KS Editor...

I´ve read this entire thread on the naming convention, but it still won´t group the way it´s supposed to. Here´s how the objects are named in Blender, and how they end up in KS Editor - instead of 1 group with 15 trees, I get 15 groups all named the same.

I saw the post and reply re. Make Single User, but I´m not sure I´m doing it correctly. I´m marking the objects in Blender, then choosing the option shown in the screenshot below, but makes no difference. Is it something I set when exporting to .fbx perhaps?

Please help! :)





2020-06-19 (1).png
2020-06-19 (2).png
2020-06-19.png
 

fughettaboutit

aka leBluem
dont start with KSTREE_GROUP_a_001
but with
KSTREE_GROUP_a_1

;)

small Blender-script that does it, replace _a_ with what you want:

Code:
import bpy
if True:
  i=1
  prefix='KSTREE_GROUP_a_'
  for ob in bpy.context.selected_objects:
    ob.name=prefix+str(i)
    i+=1
    print(ob.name)
    if ob.type == 'MESH':
      ob.data.name=ob.name
  print(str(i) + ' objects')
 

Theis

New Member
Thanks for the reply, fughettaboutit!

Should have mentioned that I already tried quite a few naming options, but still doesn´t work. I tried the 1, 2, 3 as you suggested but made no difference:

2020-06-19 (5).png


2020-06-19 (4).png


I´ve only used Blender for a few months, so there´s lots I don´t know/understand, and I´m not sure about the "single user" issue. I did follow the instructions:
- In Object mode
- "A" to select all my objects, including the trees
- Click the menu Object -> Relations -> Make Single User -> Object & Data
- Then choose "Selected Objects" from the small menu that appears

But it doesn´t make a difference once looking at the exported fbx in KS Editor - still a long list of BLOCKTRANSFORM objects all named the same (and with different materials, making it a pain to adjust shaders)
 

Theis

New Member
Doh! No, they didn´t. Just made a test with a few trees where I force the same material on all, and it works :) Thanks!! So obvious, and yet I didn´t think about it.

This happened because I copy-c/v my tree object in my blender scene - when doing so, it automatically gives the new object it´s own material name (why??) - even though it could/should be exactly the same. I just googled a way to assign one material to multiple objects, so I guess I´ll just need to remember to do that moving forward...

Thank you so much for your help, LilSki and fughettaboutit!
 

Theis

New Member
ah of course, I could use Alt-D to make the copies (instances) instead of copy-c/v, and then just need to remember to make them single-user before export.... oh, the joys of learning :)
 

Theis

New Member
Regarding treelines using Blender 2.8x, I had trouble getting the normals to point in different directions, like having the top point up and the bottom-edge point somewhat down, as was recommended by Lilski. I finally found a nice and easy method:

- TAB to edit your treeline object
- Move your cursor to the edge you want to edit normals for, and use Alt-lmb (left-mouse-button) to select edge only (like your top-edge of the treeline)
- ALT-L to "point normals to target"
- lmb once to bring up small menu with options/coords
- type in 10000 in Z-value to point up (or -10000 to point down)

You can also make the normals in a different angle by combining a high X or Y value with a somewhat lower Z value (like 10000 Y and 5000 Z).

Repeat with the other edge, point them in some other direction.


Should look something like this, for example:
2020-06-26.png



I find that pointing top-edge straight up, and pointing bottom edge 45 degrees down gives nice results, but happy to hear other ideas!


Hope this helps :)
 

wardenjam

New Member
This must be a simple one but I can't find the solution in here... sorry if I'm blind.

My Trees are casting plane shadows not shadows of the alpha. I'm using ksTree and pretty sure they're grouped correctly by name. Any help would be appreciated.

EDIT - Found it in the end: ksAlphaRef was set to 0
 
Last edited:

maachu

New Member
Hi guys, I threw myself into trackmodding last week with the ambition to race a road around my hometown. I achieved to fix a lot of problems thanks to this forum but now I'm stuck with something I can't solve.
I followed every tips to set up trees and to make them look acceptable : normals up, origin, make them single user, KSTREE_blabla.
I made a 6.6km track with a lot (a loooooooooooooot) of trees that I separated in 7 fbx files (some bugs occured so it's the only way I figured out). It displays nice on KsEditor but when I load the track ingame, it's more like a desert than a tropical environnement.
I tried to load the track ingame with only one of the 7fbx trees files but same problem, no vegetation at all.
Did this happened to anyone else and is there a solution ?
 

Attachments

maachu

New Member
Yes, I exported the trees with the same settings.
What do you mean into model.ini ? I'm a bit lost hehe
Should I export to kn5 the trees without the road and place it somewhere ? in the "data" folder I only got surface.ini that have (i suppose) nothing to do with the trees. May I have a missing .ini ?
 

fughettaboutit

aka leBluem
for more than one kn5 you need to make a "models.ini" in the tracks main folder, ac does not read all kn5's by itself :
Code:
[MODEL_0]
FILE=mytrack.kn5
POSITION=0,0,0
ROTATION=0,0,0

[MODEL_1]
FILE=trees1.kn5
POSITION=0,0,0
ROTATION=0,0,0
 

maachu

New Member
Oh okay, I understand the process. I'll give it a try and give you a feedback !
I'm so excited to share this project, it remind me some good memories behind a real car on this road ! But I have to work a lot more to make sure it's worth the dowload !
 
Top