Street in Terrain :-(

Blitz3D Forums/Blitz3D Programming/Street in Terrain :-(

Markus Rauch(Posted 2003) [#1]
Hello ,
i have my own Terrain as some quadmeshes ,
each quadmesh has many smaller quads and each has
2 triangles .
this terrain is build by many waypoints from my
gps receiver .
with this waypoints i will make a street and this is
interpolated with bezier over 2 or 4 points in curves .

Now the problem is that the street goes under the
terrain and there are overlapped triangles because
the terrain has only a few points and the road cross
the terrain . i think that i must split the terrain
in more triangles where a vertex is near from street mesh
but i don't know how i can do it .
The road is more than 20 Miles and each 2 or 4 waypoints
i used a new mesh .
Has someone any idears for me ? PLEASE :-)






Dirk Krause(Posted 2003) [#2]
Have you tried to draw the street after the terrain by setting the appropriate EntityOrder?


Markus Rauch(Posted 2003) [#3]
No, but i will try it :-)

In the Moment i try a intersection test triangle street
in triangle terrain and move the terrain down ,
but if the street under the terrain sometimes
i have no intersection .

EDIT:
EntityOrder dosn't work :-(
because the terrain is build with many quadmeshes and
then it have all the same Z Order but this is wrong .


Dirk Krause(Posted 2003) [#4]
Hmm ... isn't the terrain one entity and the street another? then it should work. If not I would handle them seperately.


fredborg(Posted 2003) [#5]
Why not just push the street up a few notches? Otherwise playing with CameraRange might help!

Fredborg


RexRhino(Posted 2003) [#6]
You application makes me curious... there has got to be hundreds of waypoints on that grid (I am assuming the dots are waypoints?)... did you really go by hand and plot each and every point? And what is your application for?


sswift(Posted 2003) [#7]
yeah I was thinking the same thing. That would be nuts if he walked that whole grid, and I don't see how the GPS could possibly be that accurate either! :-) I mean is a GPS really accurate to a few meters in altitutde?


Tracer(Posted 2003) [#8]
Sswift, yes... the GPS i have on my boat is accurate to a meter.

Tracer


skidracer(Posted 2003) [#9]
For altitude? You got a flying boat???


Tracer(Posted 2003) [#10]
LOL.. well, as a matter of speaking.. yes .. i can use my GPS to determine the depth of the water below the boat.. in some cases you don't want to scare a particular species of fish away by using the depth sounder, in that case, my GPS can give me the depth at a certain location, at an accuracy of one meter.

Also, on a more "normal" topic then, the jets my boss builds, determine altitudes just fine, with the latest and greatest GPS system, up to 25 to 50 cm accurate. And that goes for every direction.

Basically, the more GPS sats you can contact in one go, the more accurate you get. I believe the maximum for a high altitude airplane is 12. I think my boat's GPS uses 8. My car uses 3 or 4.

Tracer


Markus Rauch(Posted 2003) [#11]
@Dirk Krause
The Terrain are 720 Meshes and the Road are 1000 Meshes .

@Fredborg
If i move the Street up it must be min. one meter+
and i must use walls around the Road and i will drive
on terrain and the street without hills.
The CameraRange take not effect .
For the Terrain and Street Meshes i have a Auto Show/Hide
Function to speed up the program .

@RexRhino
the waypoints are from the activelog from gps receiver
and can exported as ascii file and this i read into
my prog.

@sswift
yes my GPS is accurate to 3 meters and it have
a sensor for the altitude to find the right height .
the waypoints i have sampled by driving around with my car
and some differences are no problem .

@all
next i will try to make the terrain a little bit
different
|/|/|
|/|/|
|/|/|
|/|/|
to this
|\|/|
|/|\|
|\|/|
|/|\|


RexRhino(Posted 2003) [#12]
Also, isn't there other tricks that a GPS reciever can do?? Like it can also recieved signals from certain communications satalites, and then use that to get a more accurate reading than if it was JUST using GPS. Or, if you enter in the exact known coordinates (like of a landmark or something), then it can be more accurate a certain distance away from that landmark.


Robin Hossain(Posted 2003) [#13]
Markus, I am trying a similar thing, albeit with some difference...
I am trying to use some commercially available database of street networks...And while travelling, will synchronize it with the data received form GPS receiver...
Is there a way you can help me or vice versa?