Replicate TerrainData.GetInterpolatedHeight
Hey all!!
I have a procedural World made by terrain tile chunks, Im generating all the data in other thread but when I need to create the objects of the terrain (out of terrain trees, rocks, bushes, etcs) I have a problem to determine the height to place the object, I achieve to emulate the slope calculation, and the world coords for my objects, but I tried and fail to emulate the TerrainData.GetInterpolatedHeight to get the "Y" position of my objects out of the Mainthread, I can not call the GetInterpolatedHeight outside the unity Mainthread.
Right now I´m performing the calculations in a coroutine and synchronizing the calculations with my building object thread, but its a nightmare to sync with the dynamic distance load of the objects, and I think its posible to perform that calculation in my building object thread, Can you help me or guide me with this? How can I achieve to emulate that function?
I have all the terrainData information outside the Mainnthread, heightmap, slopemap, etc etc.
Thanks all in Advance for your time and efforts!!
Your answer
 
             Follow this Question
Related Questions
Creating ridged perlin noise 0 Answers
How do I get better Perlin Noise? 2 Answers
Why is my terrain jagged? 0 Answers
Terrain tool not ROUNDY 0 Answers
How can I use animation to control the material colors of terrain? 0 Answers