Hi, i exported some trees from blender to my scene, but i have some problems with lights.
I don’t know if i did something worng during exporting or it’s an Urho3D bug.
Video:
https://vid.me/asiI
Anyone know how fix it?
Thanks.
Problem with lights


I had similar problem when my Zone component was too small.

I changed the zone bounds to 1000 but it still happens

Does the bounding box look correct? Does changing light range change the distance of the popping effect? Are the normals exported?
Looks like there is some z-fighting when you rotated the camera, that seems strange too.

Does the bounding box look correct? Yes
Does changing light range change the distance of the popping effect? Yes
Are the normals exported? Yes i think, i follow the same steps to export all models of scene.
I noticed that if I use Diff.xml instead of VegetationDiff.xml the light works correctly.
It seems a VegetationDiff.xml bug.

I found the problem, I was using a material only with the technique VegetationDiff.xml, when i add a new technique Diff.xml to the material the problem disappeared.
It’s an issue or an noob error?

Pls show your material (xml file)

What are your setup of near and far in camera? It looks like you set some large amount like 1000000 to far parameter.
Edit: Ah ok you already solved the issue:)

Working material:
http://pastebin.com/JahVsMYm

material should contain only one technique with same lod
EDIT: https://urho3d.github.io/documentation/HEAD/_materials.html

Apparently, the second material only worked because Diff.xml was overwriting VegetationDiff.xml
Is there something wrong with the first material? (which only contains VegetationDiff.xml)

Vegetation should animate vertices of model, but I do not see it on video. So need more info about exporting settings

I realized that VegetationUnlit.xml works
I tried to export using .blend, .dae, .fbx formats but none worked.
I also tried using the urho plugin but i get the same problem.

Well I think I have spotted a typo or error in vegetation shader. Simple test, turn off dynamic instancing-- does the issue still occur?

No, everything works well (:

Offending line is:
if anyone wants to confirm. Replacing cModel with modelMatrix seems to work.

Works for me, ty
I think you should commit.