Results 1 to 3 of 3

Thread: textures and surfaces

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    gainesville, fla, usa
    Posts
    17

    textures and surfaces

    Hi,
    I have two surfaces that I would like to texture.The texture, however,
    needs to cover only half of the surface in width but the full height of
    each surface. I am not sure what is the best way to do this. Any help is
    appreciated...

  2. #2
    Member Newbie
    Join Date
    Mar 2000
    Location
    UK
    Posts
    36

    Re: textures and surfaces

    Your best bet might be just to draw four polygons instead of two. It might not be the fastest solution, but the simplest solutions are usually the best.

  3. #3
    Senior Member Regular Contributor fenris's Avatar
    Join Date
    Mar 2000
    Location
    Cincinnati, Ohio USA
    Posts
    129

    Re: textures and surfaces

    Map the first poly with the coords:
    (0,1),(0.5,1),(0.5,0),(0,0)
    and the second:
    (0.5,1),(1,1),(1,0),(0,0)

    Notice i've only used half the width of the texture on the U coords for each poly. That should do the trick.

Similar Threads

  1. Surfaces. Help..
    By hcrogma in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-01-2003, 01:44 PM
  2. Surfaces
    By Corrail in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 04-07-2002, 08:05 AM
  3. Help (Surfaces)
    By KurtCob in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-25-2001, 08:14 AM
  4. Textures on Nurb Surfaces
    By Steve Hollister in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 08-03-2000, 04:51 PM
  5. textures and surfaces
    By glguru in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-28-2000, 06:02 PM

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