Results 1 to 3 of 3

Thread: Heightmaps

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    5

    Heightmaps

    The heightmaps are using in the WebGl???


  2. #2
    Senior Member
    Join Date
    May 2010
    Posts
    207

    Re: Heightmaps

    As with OpenGL, there is no specific support for heightmaps - that's what you write shader code for.

    The tricky part is that most heightmap implementations require either geometry shader support (which WebGL does not have) - or at the very least, the ability to use vertex textures.

    Vertex textures are supported by WebGL - but the specification allows implementations to specify a maximum number of supported maps - which can legally be zero. Hence, at least a couple of drivers that I've seen do not support even vertex texturing.

    Without that, you'll have to do your height mapping on the CPU side - or fall back to bump-mapping or normal-mapping on machines without vertex texture support.

  3. #3
    Junior Member
    Join Date
    Jun 2011
    Posts
    5

    Re: Heightmaps

    Ok, so I'll investigate this type of mapping.

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •