Anteworld - Outerra Game > Modding: Importer, Tools & Utilities

getting info on terrain material from world position

<< < (2/2)

cameni:
The resolution gets gradually worse the farther you are, and that applies to the query API as well, unless you perform some asynchronous terrain data requests ... it can get ugly.

Besides, new road format will allow enabling "features" generated along the roads, such as guard rails, poles, lamps etc, which will be able to place them precisely (and automatically).

fly77:
Thanks cameni. In fact I was already abandonding the idea as for the moment it is good enough to enjoy outerra villages by night by placing manually streetlamps in the editor as vehicles and lighting them one by one passing by each of them entering and exiting each "vehicle"-streetlamp. So I am waiting for the new update of outerra including also active streetlamps..which i found contribute a lot to enjoy outerra by night. Thanks once again and keep on your great work! Outerra is fantastic!

KW71:
Hi, fly77!
For the time being, if you still want to have some fun, you could create models with different amount of lamps: 1, 2, 4, 8, 16... and the script to activate all the lamps on the model at once...

fly77:
Hi KW71. In fact i tried that but for the moment gave up because I could't manage to place a vehicle that supports a row of poles of say 4 or 6 streetlamps  all at the right height with respect to their local terrain level. Indeed as their positions are rigidly linked to the "base" vehicle their height above terrain depends also on the heading pitch and roll of the "base vehicle" and of course on the terrain and the farther you go from the base point the more difficult it is to keep all lamps at the correct height unless the terrain is perfectly level - which of course is the case in planes but not in mountains or hills even small ones. As in the end I found it is relatively fast to run from one lamp to the other to switch it on for the moment I am satisfied also because using individual lamps keeps things simple. Eventually it is computationally more intensive as more instances of lamps need to be placed, i guess. Anyway maybe I can still make a row of lamps controlled from a single "base vehicle" by using the move_joints command attaching bones to the lamp meshes and by probing the terrain level under the lamps...which I know how to do ..then adjust the individual lamp heights as needed. I'll give it a try when I have time. Thanks for keeping my interest alive on this aspect which I had for the moment set aside.

Navigation

[0] Message Index

[*] Previous page

Go to full version