RimWorld

RimWorld

Realistic Lighting and Shadows
Settings to make tall trees have longer shadows
I am using the Redwood trees from Nature's Pretty Sweet, and I have made them really tall in comparison the the vanilla trees. But the shadows don't really appear any taller than other buildings.

Is there something I can add to my def file to make the tree's shadows look taller and more accurately match the height of the trees?

Here is the mod I am using: Redwoods

Here is what they look like in-game: https://imgur.com/a/3UHigBg



Here is the entire Def file:

<?xml version="1.0" encoding="UTF-8"?>
<Defs>
<ThingDef ParentName="TreeBase">
<defName>RW_Plant_TreeRedwood</defName>
<label>redwood tree</label>
<description>A huge, very slow growing tree.</description>
<graphicData>
<texPath>Things/Plant/TreeRedwoods</texPath>
<graphicClass>Graphic_Random</graphicClass>
<shadowData>
<volume>(0.55, 0.2, 0.2)</volume>
<offset>(0,0,-0.25)</offset>
</shadowData>
</graphicData>
<altitudeLayer>Pawn</altitudeLayer>
<statBases>
<Beauty>15</Beauty>
<BeautyOutdoors>15</BeautyOutdoors>
</statBases>
<blockLight>true</blockLight>
<plant>
<sowTags />
<fertilityMin>0.8</fertilityMin>
<fertilitySensitivity>0.8</fertilitySensitivity>
<growDays>60</growDays>
<harvestWork>3000</harvestWork>
<harvestYield>225</harvestYield>
<wildClusterWeight>8</wildClusterWeight>
<wildClusterRadius>10</wildClusterRadius>
<visualSizeRange>24~32</visualSizeRange>
</plant>
</ThingDef>
</Defs>
Last edited by VitaKaninen; 2 Aug @ 3:30am
< >
Showing 1-4 of 4 comments
Sjaandi  [developer] 7 Aug @ 4:57pm 
Does the shadow change with the sun, or is it always set exactly to the dimensions set in <shadowData>?
The shadow does change with the sun, but it is a very small amount. The first image in the link above shows the shadow being shifted to the northwest. But since the tree is so large, I would want the shadow to be a lot longer. In the afternoon, the shadow should be the same length as the tree.
Here is kind of what I would like for it to look like: https://imgur.com/a/gToL9rU
Sjaandi  [developer] 7 Aug @ 5:33pm 
I would make a copy of the file (for backup purposes), and then change one of the numbers in <volume> to a large number like 1 or 2. If the look changes, just in the wrong direction, modify one of the other numbers until it works. If none of them look right, then I might try reducing the numbers until the shadow at least matches the tree trunk (right now the shadow is very large compared to the trunk - unless you are trying to model the leaves and branches). Then I would probably start playing with <offset> to see if that makes a difference.

Looking at the vanilla defs for trees, I don't see a "height" property - which makes me think that everything in the game is probably assumed to have a similar height. You could try bumping up the setting that makes the shadows longer. Even though this will effect everything, since the redwoods are the tallest and so big, ideally their shadows would overwhelm everything else so the effect wouldn't be that noticeable.
< >
Showing 1-4 of 4 comments
Per page: 1530 50