kbotnen
06-02-2007, 09:50 PM
I'am working on a realtime visualization project. I have this landscape / terrain mesh created in 3ds max and I want to implement a measuring feature in the application. That is, when the user klick point A and point B the application will calculate the distance between the two choosen points. The actual distances that the user might want to measure range from 1 - 1000 m, with an accuracy of about 1 m.
I have tought about building a database with [vertex pair, distance], and then do a lookup in this when the user access the feature. But I'am afraid that this database will be too big. (If 3ds max don't have a automatic tool to build such a database then it's certainly out of the question since building so many value pairs by hand is unpractical.) So I wondered if someone has some general thoughts about how to implement a feature like this? Maybe there is a way to convert screen distance into realworld distance? Or maybe there is another "trick of the trade" that I am not aware of?
PS! If this is the wrong forum for this kind of question, please let me know.
-K-
I have tought about building a database with [vertex pair, distance], and then do a lookup in this when the user access the feature. But I'am afraid that this database will be too big. (If 3ds max don't have a automatic tool to build such a database then it's certainly out of the question since building so many value pairs by hand is unpractical.) So I wondered if someone has some general thoughts about how to implement a feature like this? Maybe there is a way to convert screen distance into realworld distance? Or maybe there is another "trick of the trade" that I am not aware of?
PS! If this is the wrong forum for this kind of question, please let me know.
-K-
