Results 1 to 2 of 2

Thread: Texturing

  1. #1
    Member Contributor
    Join Date
    Feb 2002
    Location
    Wiesbaden, Germany
    Posts
    95

    Texturing

    Hi,

    what I want to do is to calculate some deviations on a surface and then index them with colors. Is there a possibility to map this color information to a texture, so the computation has to be done only once for each model. The models are pretty big (150.000 - 250.000 verts, calculated in 5x5-matrices)so it takes a certain amount of time after loading the model. I'm looking for a solution for a pretty long time but there is nothing I could use on the web. The other problem is due to the way the data is arranged I always have only the upper point list and the next point list, meaning I can draw the model only in strips. You might imagine this looks crappy when the colors are interpolated.

    Regards,

    Martin

  2. #2
    Member Newbie
    Join Date
    Oct 2002
    Location
    Rijeka, Croatia
    Posts
    36

    Re: Texturing

    You can write directly to a texture by
    calculating the u, v coordinates interpolating max_u and max_v in 0.0 to 1.0
    numeric space. The question is how to
    calculate the interpolation information?
    Pretty difficult if your surface is not
    coplanar.
    Anyway, having the u and v coordinates, you can write directly in texture space with
    address of given pixel being the following:

    addr= u * max_u + v; where u=y, and v=x

    The only thing is that you would have to
    do this PRIOR to assigning a raw texture to
    OpenGL renderer.

    Hope this helps.

Similar Threads

  1. 3D texturing from C#
    By tareq91 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-15-2013, 04:12 AM
  2. Multi-Texturing and .... normal texturing?
    By Andy Gilbert in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 04-06-2010, 05:30 PM
  3. Texturing and Texturing (newbie)
    By Sudeepa in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 12-17-2008, 05:47 AM
  4. help please! (gf3 texturing)
    By tweakoz in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 02-14-2002, 09:25 AM
  5. texturing
    By littledevore in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-13-2001, 01:42 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