From: Scooter (ptgrunner++at++earthlink.net)
Date: 09/20/2000 19:24:24
X-No-Archive: yes
Hello all,
I have a problem for which the simplest solution seems to be
using the Draw Mask for a Node and the Channel Draw Mask to
eliminate unwanted visual elements as they are approached but
before they are seen.
The application is Driving Simulation and a roadway has been
developed using MultiGen Pro. The curves in the roadway
(separated by sections of straight roadway) were randomized.
Unfortunately, in doing so it turns out that the roadway
overlaps itself in several places. One has to drive some
distance before encountering these overlaps. And the overlaps
are not intersections in the normal sense of road
intersections--one section of road simply lies on top of
another, usually at angle of 45 degrees or more.
Each section of roadway (and surrounding environment) lies below
it's own parent node. My question is whether the following
solution is feasible and reasonable, or if there is a simpler
way to do this.
1) Load the entire MultiGen Database as usual.
2) Assign to each parent node for a road section a Node Draw
Mask as appropriate.
3) As the road is driven, dynamically modify the Channel Draw
Mask so that the overlapping sections of roads are not drawn
since the nodes associated with those road sections are pruned
in the Cull process.
Does anyone have exmaple code for doing this sort of thing?
Thanks,
Peter T. Goodman/MiTech, Inc.
This archive was generated by hypermail 2b29 : Wed Sep 20 2000 - 19:20:21 PDT