Results 1 to 2 of 2

Thread: Seamless textured VBO triangle strip

  1. #1
    Senior Member Regular Contributor
    Join Date
    Jun 2006
    Location
    Edinburgh - Scotland
    Posts
    146

    Seamless textured VBO triangle strip

    Hi,
    I have a very long shape made up of 3 triangle strips to form a "triangluar tube". The strips are stored a VBO and take up several meg.

    I want to texture the 3 triangle strips using a seamless texture. Is there any way to do this without having to store texture coords for every vertex on the strips? The reason is I want to avoid using more VBO memory.

    I see there is a glTexGen function, but I don't understand what it does exactly.

    If there isn't a way to do this then is there anything that can be done with shaders? (I know NOTHING about shaders).

    Or maybe something with procedural textures? I'm not overlay fussed about the actual texture, so long as it makes the sides look like a material instead of just painted a single color.

    Cheers,

    Stuart.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Dec 2002
    Location
    Silicon Valley
    Posts
    234

    Re: Seamless textured VBO triangle strip

    You could use glTexGen to planar project a texture onto your geometry, but it would look very stretched in some places. If you want a your shape to look like it has a consistent material with no stretching you might want to try a 3D texture.

    You can also use glTexGen to do environment mapping (make your tube look shiny).

Similar Threads

  1. Triangle Strip - Per Triangle color
    By Aliii in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-27-2013, 10:14 AM
  2. Help with Triangle strip
    By Jeffg in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-30-2010, 09:52 AM
  3. triangle strip with a LINE triangle display error
    By Samme in forum OpenGL: Windows
    Replies: 22
    Last Post: 11-20-2008, 07:50 PM
  4. Triangle Strip!
    By golgoth13 in forum OpenGL: Basic Coding
    Replies: 14
    Last Post: 03-08-2006, 06:14 AM
  5. How To Triangle Strip?
    By imported_nomad in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 05-20-2002, 10:24 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