|
Post by kramar on Aug 26, 2015 20:48:44 GMT
Hi,
I am trying to customise my terrain in the terrain editor, but for some reason it doesn't accept the diffuse texture I select. That is, it appears to work, but if I reload the definitions the texture appears empty.
Is there something special about the diffuse texture that I am missing that could be causing this problem?
Thanks.
|
|
|
Post by khash on Sept 2, 2015 8:48:51 GMT
Hi!
Sorry for the delay (I was afk for 2 weeks) Please check that file HoneyFramework.MHTerrain.xml is generated in Streaming Assets when you do any change, and that it get updated accordingly to your texture update. It should happen automatically when you assign texture(or any other thing) in the terrain editor.
Cheers!
|
|
|
Post by kramar on Sept 3, 2015 18:49:34 GMT
Thanks Khash.
The HoneyFramework.MHTerrain.xml is getting updated, but it's not working. I think it is a path problem.
New file
<diffusePath>Assets/TerrainPackage/Textures/BasicDirt.png</diffusePath>
height map file
<heightPath>Terrain/Ground/Dirt1_h</heightPath>
It looks like it's setting a full path but the program is expecting a relative path. What do you think?
|
|
|
Post by khash on Sept 3, 2015 21:14:48 GMT
ah yes, you need to place your texture in Resource folder in a same way it is done for textures for the ground thats why it can load it in editor but cant at runtime as it is not included in assets if its not referenced
|
|
|
Post by kramar on Sept 8, 2015 20:42:17 GMT
Ah! That makes sense.
Thanks!
|
|