RimWorld

RimWorld

Better Trees
83 Comments
Enrico  [author] 25 minutes ago 
I'll look into it this sunday
Doomzy 26 minutes ago 
Any chance you could do a pass on the Mycotic biome from Alpha Biomes?
Noteworthy plants to be covered would be:
-Giant Agarilux
-Agarilux Prime
-Slimy pholiota
-Recurved Stropharia
-Dribbling Cap
-Arbuscular Mycorrhiza

These are not considered trees by the game and thus need to be patched like some of VFE's stuff.
Dizzy Ioeuy 6 Aug @ 8:26pm 
Suggestion: Stumps, if they are a different DEF should not be defined as PAWN layer, but the usual tree layer, so pawns standing front of them. It would look better IMO.
Enrico  [author] 6 Aug @ 12:39pm 
Update 6 Aug 2025:
- Added a patch to make trees in "Vanilla Plants Expanded - More Plants" be considered as trees by Rimworld. (Oskar please fix)
Enrico  [author] 5 Aug @ 8:32am 
yes it does
qux 5 Aug @ 1:04am 
Hi, the texture choice work for leafless and immature textures ?
Imperior 4 Aug @ 7:03pm 
Thanks, Enrico.
Enrico  [author] 4 Aug @ 6:49pm 
Just the linear render scale, no gameplay effects of course - or they'd be mentioned.
Imperior 4 Aug @ 6:48pm 
Scale is a bit ambiguous of a term, does it scale just the render or the wood amount and HP too?
If so, does this increase follow a square cube law or similar?
Enrico  [author] 4 Aug @ 6:24pm 
Update 5 Aug 2025:
- Fixed transparency controller still costing some performance when toggled off, is now zero.
ChoniclerVI 4 Aug @ 11:02am 
Would be interested in using this if that extra performance hit get fixed, currently using Djeeshka's CMT trees, but if this can do what that does better/more efficiently, I'd be down to swap
molo 4 Aug @ 9:56am 
I'm using Performance Analyzer, looking at the default Harmony patches view
Kivich 4 Aug @ 8:38am 
Wonderful mod! Paired with the other recommended mods, it makes the game feel so alive. Shut up and take my awards
Enrico  [author] 4 Aug @ 8:37am 
That's not desirable. What mod are you using to check calls per frame?
molo 4 Aug @ 8:25am 
Also, the method is running (a LOT) even when the transparency is disabled, at least on my modlist. No errors, just seeing something like 40-50 calls per frame at 360 speed. I would've expected no calls at all, if the feature was disabled, but maybe I'm not understanding how it's working.
molo 4 Aug @ 8:23am 
Thanks -- maybe worth mentioning in the description, or showing as a screenshot? I had *no* idea to look there lol
Enrico  [author] 4 Aug @ 8:21am 
Its in the bottom right when in-game, under the game speed controls.
molo 4 Aug @ 8:12am 
I feel like I might be going crazy -- I have downloaded, unsubbed, and resubbed the mod and I do not see any controls for transparency at all, but the method is running in perf analyzer.

What's going on? Was the setting removed?
FotisP68n 4 Aug @ 3:29am 
Realistic Trees and Mountains? On my RimWorld game?? Can't believe it
VitaKaninen 3 Aug @ 3:33pm 
I see, Thanks!
Enrico  [author] 3 Aug @ 3:19pm 
> I have a weird issue. Smashed stumps are rendering much larger than normal. They are larger than some small trees.

As far as I can tell, you have a 3x global multiplier, and the smashed variant of trees don't have a Djeeshka retexture. Djeeshka's tree trunks are always incredibly thin, while vanilla textures are thick. Either a new texture should be created dedicated for Djeeshka pack, or you need to downscale your stumps. Hope that helps!

> Also, is there any way to have the trees go over the fogged areas, instead of under them?
I think I could, but then trees would sadly render over weather. In which case, I could possibly also re-order the weather to be rendered above tree and fog, but at that point this mod becomes quite a heavy modification I think, and I'm not entirely sure what the full consequences are of rendering weather above fog...
VitaKaninen 3 Aug @ 3:03pm 
I have a weird issue. Smashed stumps are rendering much larger than normal. They are larger than some small trees.
https://imgur.com/a/3563lYm

Also, is there any way to have the trees go over the fogged areas, instead of under them?
https://imgur.com/a/pC9J8Wx
Maal 3 Aug @ 1:58pm 
It's fine with MO, but its Dark Forest already has massive trees, I'd suggest users to downsize them a bit if you use the default 2x.
Enrico  [author] 3 Aug @ 8:24am 
Should be @Lemon caro
Lemon caro 3 Aug @ 6:18am 
is this compatible with medieval overhaul?
and CE
VitaKaninen 3 Aug @ 12:22am 
I really appreciate all the hard work you have put into it! It keeps getting better, and better!

I am afraid to ask for more features, though, since I don't want to make a nuisance of myself. Thanks again for a great mod!
Enrico  [author] 2 Aug @ 9:35pm 
Functionally mostly the same, just better. I made Better Trees because I already made Better Mountains, and then realized the tree community would also appreciate a similar clean framework.
Enrico  [author] 2 Aug @ 9:32pm 
Allows for mix and matching of texture packs, allows for the user to adjust texture packs, no XML extension requirement, easier for modders and users, etc etc
Eclipse 2 Aug @ 9:26pm 
What is the difference from majestic trees framework?
Enrico  [author] 2 Aug @ 7:53pm 
Awesome, glad that works for you!
Dizzy Ioeuy 2 Aug @ 7:52pm 
Setting every 20 frames for the transparency almost completely gets rid of any performance issue, and it's plenty fast as a tool that way. So great going on that!
Enrico  [author] 2 Aug @ 6:24pm 
Ah okay, yeah you can simply replace those colorful textures with another tree's texture using Better Trees.
Maal 2 Aug @ 6:02pm 
I didn't mean that it cause issue. I meant that some biomes like Regrowth Boiling by default have funny coloured tree, and being able to recollor these within Better Trees would save the trouble of making submods.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2981924439

Someone has done a recolor for it and some other mods for Djeeshka's trees in Majestic Tree, I guess that I could make a submod with these instead.
Enrico  [author] 2 Aug @ 5:29pm 
I'm not aware of any issues due to lack of regrowth causing trees with funny colors. If it does, then regrowth should fix that, not me.

Another reason why Better Mountains has a color picker and this doesnt, is because A) the game already works with grayscale textures for rocks and ores and just uses colors to overlay them, and B) foliage is always green essentially, so no need for color pickers.
Maal 2 Aug @ 5:25pm 
While regrowth is not updated, it and several biomes mod have trees with funny colors. Is it possible to have a toggle next to each tree to show a color change slider like the better mountain mod?
GetUrAssToMars 2 Aug @ 3:46pm 
Smooth and super modular. Love this.
Enrico  [author] 2 Aug @ 1:14pm 
Update 2 Aug 2025:
- Fixed trees rendering over rain
VitaKaninen 2 Aug @ 1:11pm 
Thanks so much!
Enrico  [author] 2 Aug @ 12:55pm 
Update 2 Aug 2025:
- Fixed autumn colors not being applied.
Enrico  [author] 2 Aug @ 12:27pm 
Update 2 Aug 2025:
- Added transparency toggle settings by RIGHT-CLICKING the toggle, which includes radius, opacity %, and update rate.
- Fixed transparency toggle being off-center.
VitaKaninen 2 Aug @ 8:55am 
I notice that when I use Majestic Framework, I get lots of variation in the tree textures, but when I change over to Better Trees, they all use the same graphic.

Also, the shadows are not scaling up with the tree size. Is there anything you can do to make them larger?

Here is a comparison: https://imgur.com/a/dwUzoYN
Enrico  [author] 2 Aug @ 7:50am 
Update 2 Aug 2025:
- Increased max size scalar cap to 12.5x (this should hopefully encompass all tree mods out there)
- Did another optimization pass for the transparency toggle, should be good now?
VitaKaninen 2 Aug @ 5:15am 
Here are some more images showing a comparison between Better Trees and Majestic Framework. https://imgur.com/a/TEnkJfy

Specifically, the shadow sizes and positions seem off. I am using Realistic Lighting and Shadows in all the images.
tanyfilina 2 Aug @ 4:31am 
By the way, if you are going to make a mod option for the size of transparency area, let it be a bit smaller than now too
VitaKaninen 2 Aug @ 3:50am 
Thanks so much!
Enrico  [author] 2 Aug @ 3:45am 
Appreciate the feedback, will see what I can do.
VitaKaninen 2 Aug @ 2:01am 
One more thing I noticed is that the shadows under the trees are extremely small with this mod active only covering a 1x1 square. With the Majestic framework active, they are roughly 5x15 for my Redwood trees, which matches the area of the tree.

I am using Realistic Lighting and Shadows mod, but I am not sure if that matters or not. It seems to be affecting all trees.

Here is a comparison with Majestic active, and then with your mod active: https://imgur.com/a/JWhmUHu
VitaKaninen 2 Aug @ 1:25am 
Great mod, I love it! I have a few requests though.

I am using the Redwood Trees from Nature's Pretty Sweet, and they need to be very large trees. This causes a few problems.

I can not scale them up large enough, since the size caps out at 5. Can you increase the max size to 10?

The other issue is that because they are so big, when I need to make them transparent, I can't make all the trees transparent at the same time in the area I need to look at. Here is what it looks like in-game: https://youtu.be/0dqXdT0JByE

Can you give options to increase the area that the mouseover transparency covers?

Also, I use mods to significantly increase the number of trees, so that if I am looking through 10 transparent trees at once, it is still opaque enough to obscure what I am trying to see, since all the textures add together and each one makes it darker.

Can you add an adjustment for the transparency amount in the settings?

Overall, I love the mod, and it is so easy to use!
Dizzy Ioeuy 1 Aug @ 9:24pm 
It did, I checked the new dates on the files. But yes, it can be toggled off, so nbd.
Enrico  [author] 1 Aug @ 9:20pm 
Yeah, I guess dynamic texture changes will always cost more than not having dynamic texture changes. That said, I'm not entirely sure if your mod has updated, so let's give it some time. I might try more ideas if it's desired. Either way, it can be toggled off ;)