Results 1 to 2 of 2

Thread: I need a height map algo. based on triangles

  1. #1
    Member Contributor
    Join Date
    Dec 2001
    Location
    Porto Velho
    Posts
    97

    I need a height map algo. based on triangles

    Hello,

    Im using a height map loader based on quads, but I got a strange problem... sometimes the vertices changes... in redraw(). So I divided this quad in 2 triangles and a I got the same problem, but now its diferent, everything is moving. so, do you guys have some example of a functional height map loader?

  2. #2
    Member Contributor
    Join Date
    Dec 2001
    Location
    Porto Velho
    Posts
    97

    Re: I need a height map algo. based on triangles

    HEY!!!!

    I think i found the problem! its on auto texture genetarion, I disabled then i had no problems, WHY???

    Code :
     
    	/*	glBindTexture(GL_TEXTURE_2D, texture[STerrain[QUAD_ID].texture_id]);
    		glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
     		glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
    		glTexGenfv(GL_S, GL_OBJECT_PLANE,sPlane);
    		glTexGenfv(GL_T, GL_OBJECT_PLANE, tPlane);*/

Similar Threads

  1. Dynamic Mesh with color gradient based on height
    By katja777 in forum OpenGL: User Software
    Replies: 0
    Last Post: 04-03-2016, 09:38 PM
  2. gl_PointSize - point size based on screen height?
    By Jeffg in forum OpenGL: GLSL
    Replies: 3
    Last Post: 02-24-2011, 07:31 AM
  3. how to implement z-buffer algo
    By bloggingzoom in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-17-2005, 01:47 PM
  4. 3d-movement algo?
    By as-man in forum OpenGL: General
    Replies: 3
    Last Post: 05-10-2004, 10:37 AM
  5. need an algo to move characters
    By romb in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 08-27-2002, 02:34 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