amrin

Members
  • Content count

    6
  • Joined

  • Last visited

Community Reputation

88 Neutral

About amrin

  • Rank
    Newbie
  1. how to draw threat dome

    [quote name='samoth' timestamp='1340023414' post='4950226'] If I understand correctly what you want, this is all but trivial. You basically want to construct a dome from the visible horizon from some arbitrary point. This is easy if you know the horizon (just extrude towards +Z and scale, repeat a few times, and there's your dome), but [i]finding [/i]the horizon line is not easy. Assuming a heightmap terrain (you didn't specify, but otherwise it is still a lot harder!) this means you have to ray-march over the terrain heightmap up to a maximum viewing distance and ignore everything that is less than your maximum value (because something that is below a higher elevation won't be visible). So basically, you only ever care about values that are higher than any ones (including the point you're standing on) you've seen before. Anything less isn't visible as long as the terrain isn't transparent and doesn't have holes. Eventually you will have reached a maximum distance (either practical because it's no longer of interest, or for effects like atmospheric attenuation, earth curvature, etc.). Do that for, say, a dozen cardinal directions. This is a very coarse approximation. If the terrain between two rays is sufficiently "similar", your estimate is good, the distance that you find on two sibling rays is identical or more or less the same. If it is not, then your estimate is not accurate, so shoot another ray at the half angle between the two, repeating this recursively until you are happy with the accuracy. [/quote] Thank You...
  2. [color=#000000][font=verdana, arial, helvetica][size=2][left]Hi [/left][/size][/font][/color] [color=#000000][font=verdana, arial, helvetica][size=2][left]I want to implement a threat dome.[/left][/size][/font][/color][color=#000000][font=verdana, arial, helvetica][size=2][left]So I am hoping some one could help me on this.[/left][/size][/font][/color] [color=#000000][font=verdana, arial, helvetica][size=2][left]Thanks in advance[/left][/size][/font][/color]
  3. Is Ztest is DEPTH_TEST? if yes i don't want see the lines behind a mountain.it should be over the terrain like flow path.
  4. I am trying draw lines over the terrain when i change my view position part of the lines will go under the terrain. I have attached a file please can anyone help me on this?[attachment=9443:terrain-line draw.bmp]