Results 1 to 5 of 5

Thread: Terrain - Texture Coordinates / Shadow Map

  1. #1
    Andrew Jameson
    Guest

    Terrain - Texture Coordinates / Shadow Map

    I used multitexturing to provide a fairly standard terrain where height / slope related texturing can be applied.

    I wanted to cater for those without any multitexturing support and to provide a minimal rendered terrain - just a single texture plus a shadowmap.

    The multitextured version uses vertex arrays but for single textured, I decided to use a display list.

    The problem ... how do I apply the shadow map ... the display list texture coordinates correspond to the actual grid whereas the shadow map must be applied to the whole terrain.

    At the moment, I came up with two terrain lists each with different texture coordinates.

    Thanks

    Andrew

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jan 2004
    Posts
    314

    Re: Terrain - Texture Coordinates / Shadow Map

    To be honest, I doubt you'll find many people who don't have multitexturing available, but since it sounds like you're having a linear mapping, how about just using the texture matrix? I'm pretty sure that's been in before multitexturing arrived.

  3. #3
    Andrew Jameson
    Guest

    Re: Terrain - Texture Coordinates / Shadow Map

    Thanks ... like so much in life it's only easy when you know ! Yes, I just rescaled the texture and it looks very nice ... still puzzled as to why the shadow map orientation had been flipped over ... it was OK using multitexturing ... anyway flipped it over whilst rescaling it !

    I am always wary as to what the 'base' level of graphics card actually is and I know of a few friends whose systems do not support multitexturing ... maybe they're in the minority !

    (Is there any reference guide that describes such design strategies for what OpenGL extensions might not be common ?)

    Thanks again,

    Andrew

  4. #4
    Senior Member Frequent Contributor
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    744

    Re: Terrain - Texture Coordinates / Shadow Map

    Systems who do not support multitexturing are few and far between, we are talking basically everything since the voodoo3 which was introduced in early 1999.
    Here is a list of cards that support it
    http://www.delphi3d.net/

    The base level today would probably be something like a geforce 6800, but you have to choose yourself at what level are you going to work from, because there will always be people who cant run it.

  5. #5
    Senior Member Regular Contributor
    Join Date
    Jan 2004
    Posts
    314

    Re: Terrain - Texture Coordinates / Shadow Map

    I'm using an EeePC (7", using the default Linux OS and using the default MesaGL version) as a development environment and it certainly supports multitexturing and texture combiners.
    Of course it does not offer shaders, but the fixed function stuff seems to be fine.
    It reports GL 1.3 (multitexturing was introduced as standard in 1.2), and it's far from the most recent Intel chipset.
    For casual gamers something like this is probably quite common.

    Your friends certainly seem to be in the minority. Maybe they need to upgrade their drivers?

Similar Threads

  1. Shadow Mapping UV coordinates
    By SwitchMan92 in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 12-24-2013, 05:05 PM
  2. Terrain 3D position from mouse coordinates
    By glararan in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 08-12-2013, 07:59 AM
  3. shadow mapping problem on large terrain
    By casper sky in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 11-11-2009, 06:18 AM
  4. Wrong shadow map coordinates
    By dletozeun in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-05-2008, 07:40 AM
  5. Terrain Shadow Maps ?
    By pocketmoon in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 05-23-2001, 04:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean