Results 1 to 2 of 2

Thread: Dynamic texture problem

  1. #1
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    San Diego, CA, USA

    Dynamic texture problem

    I've been working on a simple OpenGL game under Linux (TNT2) for about three months now, when I get time. I use a transparent texture-mapped cone for thrust on my ships. The texture map is algorithmically generated, and replaced once per frame when it is on with glTexSubImage. Unfortunately, this texture SOMETIMES appears garbled. I will see if inserting HTML works here, to show you the pictures. If not I hope the tag will at least appear as text. Here is the way it looks when garbled:

    And here is how it should look:

    Does anyone know why this might happen? I wanted to ask here before I rip the code up, since I've tried a lot of things with no definitive answer. It is affected by the dimensions I make the texture map, whether the ship's shield is on or not (that's the variable in the pictures), which ship is drawn first, etc. I have tried pushing and popping all lighting attributes, but that didn't seem to help. Any ideas would be greatly appreciated


  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000

    Re: Dynamic texture problem

    might be something else, but are you real sure that your texture map is ALWAYS correctly created?

Similar Threads

  1. Dynamic OpenGl Texture
    By Oisha in forum OpenCL
    Replies: 6
    Last Post: 09-16-2010, 09:09 AM
  2. Dynamic lighting with a 3D texture?
    By halo in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 02-15-2007, 03:46 PM
  3. problem in dynamic loop
    By tgbt in forum OpenGL: GLSL
    Replies: 3
    Last Post: 10-20-2005, 05:40 AM
  4. dynamic texture
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-28-2004, 01:45 AM
  5. Dynamic Cube Map Problem?
    By duhroach in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 05-15-2003, 06:52 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