Re: Forest Track
Posted: 03 Sep 2018, 21:59
The tress are lods so they are linked in STK. But the lod instance objects in blender aren't linked.
SvenAndreasBelting {l Wrote}:Thanks to everybody
@ Auria The file has a lot of textures and also I duplicated all trees with shift D (not linked) so every single tree has an own mesh.
At the moment I can't check the blend file because I have a login loop problem with linux mint.
When I can check the file again, I will take a look and see what I can do to get the file smaller.
<group name="_single_lod_bench">
<static-object lod_distance="120" lod_group="_single_lod_bench" model="bench.spm" xyz="209.57 44.45 439.37" hpr="0.0 17.5 0.0" scale="0.30 0.11 4.15" interaction="static" skeletal-animation="false"/>
<static-object lod_distance="120" lod_group="_single_lod_bench" model="bench.spm" xyz="59.69 -15.85 232.00" hpr="0.0 33.1 0.0" scale="0.30 0.11 4.15" interaction="static" skeletal-animation="false"/>
<static-object lod_distance="120" lod_group="_single_lod_bench" model="bench.spm" xyz="369.34 36.77 314.73" hpr="0.0 -73.5 0.0" scale="0.30 0.11 4.15" interaction="static" skeletal-animation="false"/>
<static-object lod_distance="120" lod_group="_single_lod_bench" model="bench.spm" xyz="441.35 55.59 384.43" hpr="-0.0 -160.5 -0.0" scale="0.30 0.11 4.15" interaction="static" skeletal-animation="false"/>
</group>
<group name="_single_lod_bench">
<static-object lod_distance="120" lod_group="_single_lod_bench" model="bench-hq.spm" xyz="209.57 44.45 439.37" hpr="0.0 17.5 0.0" scale="0.30 0.11 4.15" interaction="static" skeletal-animation="false"/>
<static-object lod_distance="240" lod_group="_single_lod_bench" model="bench-lq.spm" xyz="59.69 -15.85 232.00" hpr="0.0 33.1 0.0" scale="0.30 0.11 4.15" interaction="static" skeletal-animation="false"/>
</group>
samuncle {l Wrote}:Since we released STK with the new engine not many people took time to do this which saddened me a little bit, since I tried to make track creation as easy as possible.
samuncle {l Wrote}:* Use edge split to avoid weird shadowing especially for the lodges and wooden house. This will help to give a crispy look around the edges
deve {l Wrote}:Regarding to the "assertion failed" when starting the track, it seems that you incorrectly marked models as LOD objects. Looking at your scene.xml, there is a lot of objects with the same lod distance in single group, for example:
- {l Code}: {l Select All Code}
<group name="_single_lod_bench">
<static-object lod_distance="120" lod_group="_single_lod_bench" model="bench.spm" xyz="209.57 44.45 439.37" hpr="0.0 17.5 0.0" scale="0.30 0.11 4.15" interaction="static" skeletal-animation="false"/>
<static-object lod_distance="120" lod_group="_single_lod_bench" model="bench.spm" xyz="59.69 -15.85 232.00" hpr="0.0 33.1 0.0" scale="0.30 0.11 4.15" interaction="static" skeletal-animation="false"/>
<static-object lod_distance="120" lod_group="_single_lod_bench" model="bench.spm" xyz="369.34 36.77 314.73" hpr="0.0 -73.5 0.0" scale="0.30 0.11 4.15" interaction="static" skeletal-animation="false"/>
<static-object lod_distance="120" lod_group="_single_lod_bench" model="bench.spm" xyz="441.35 55.59 384.43" hpr="-0.0 -160.5 -0.0" scale="0.30 0.11 4.15" interaction="static" skeletal-animation="false"/>
</group>
If you want to use lod, it should be something like this (with different lod distance and different spm model):
- {l Code}: {l Select All Code}
<group name="_single_lod_bench">
<static-object lod_distance="120" lod_group="_single_lod_bench" model="bench-hq.spm" xyz="209.57 44.45 439.37" hpr="0.0 17.5 0.0" scale="0.30 0.11 4.15" interaction="static" skeletal-animation="false"/>
<static-object lod_distance="240" lod_group="_single_lod_bench" model="bench-lq.spm" xyz="59.69 -15.85 232.00" hpr="0.0 33.1 0.0" scale="0.30 0.11 4.15" interaction="static" skeletal-animation="false"/>
</group>
And for single lod probably each model needs its own group.
Actually maybe we could just ignore objects with the same lod distance rather than crash whole game...
QwertyChouskie {l Wrote}:Any updates on getting a source file published?
Alayan {l Wrote}:After some testing, I can say that the monastery path is faster than the normal path even if hitting one banana - it takes two bananas to make them about equal (it depends on what the banana yields). It is possible to not hit any banana while not slowing down, but it is highly unlikely even for a good player.
I expect that for most players who'd have trouble hitting only two bananas and skidding without accident, the hierarchy "harder but faster" roughly stands, though the bottom path itself isn't entirely trivial for them either.
Still, I'd recommend not requiring such a razor-thin margin with the bananas : when the technique required is too precise, executing it starts to become too luck-based.
SvenAndreasBelting {l Wrote}:Yes. I think I will delete some bananas and give the monastery path a slight slowdown (hopefully not to be felt) by an alpha texture.
Thanks again for your support
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="158.11 23.92 445.02" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="163.50 27.29 444.82" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-140.65 26.77 191.99" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-134.51 28.39 195.55" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-135.92 27.14 193.53" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-138.10 28.31 194.66" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-138.27 27.10 193.00" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-144.31 26.44 190.29" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-145.99 26.70 190.06" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-145.14 25.14 188.02" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-146.68 25.66 188.22" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-147.60 26.62 189.33" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-149.15 27.21 189.72" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-148.33 25.30 187.05" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-156.77 25.48 183.00" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-158.43 26.50 183.76" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-158.08 27.46 185.73" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-160.63 27.21 183.63" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-160.75 26.64 182.45" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="-159.02 25.64 181.77" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="178.24 36.59 430.53" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="172.85 33.80 436.65" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="164.70 28.48 443.55" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="165.90 29.96 437.49" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="159.60 25.85 442.17" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="176.87 35.57 442.83" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
<static-object lod_distance="100" lod_group="_single_lod_flower_b" model="flower_b.spm" xyz="185.39 38.90 434.13" hpr="-0.1 0.0 3.3" scale="0.72 0.72 0.72" interaction="ghost" skeletal-animation="false"/>
</source>
IMO it's ok that the door texture has a high resolution, because the file size is really small.
<group name="_single_lod_small_table_a">
<static-object lod_distance="60" lod_group="_single_lod_small_table_a" model="small_table_a.spm" xyz="206.11 54.16 417.71" hpr="-0.0 24.3 -0.0" scale="1.00 0.11 1.00" interaction="static" skeletal-animation="false"/> <!-- Cube.000 -->
<static-object lod_distance="60" lod_group="_single_lod_small_table_a" model="small_table_a.spm" xyz="223.07 54.16 455.45" hpr="-0.0 4.8 -0.0" scale="1.00 0.11 1.00" interaction="static" skeletal-animation="false"/> <!-- Cube.030 -->
</group>
<group name="_single_lod_stones">
<static-object lod_distance="100" lod_group="_single_lod_stones" model="stones.spm" xyz="450.35 50.63 480.78" hpr="-24.8 -153.9 7.9" scale="1.35 1.35 1.35" interaction="static" skeletal-animation="false"/> <!-- stklib_stones_a_main.002 -->
<static-object lod_distance="100" lod_group="_single_lod_stones" model="stones.spm" xyz="423.93 50.23 482.15" hpr="25.4 2.5 4.9" scale="2.14 2.14 2.14" interaction="static" skeletal-animation="false"/> <!-- stklib_stones_a_main.003 -->
</group>