Results 1 to 4 of 4

Thread: Generating univeral UV coords

  1. #1
    Senior Member Regular Contributor
    Join Date
    Jan 2001
    Location
    Israel
    Posts
    140

    Generating univeral UV coords

    I am trying to write an algo that will map UV coords to brushes in my engine, in a universal way, so the UV coordinates will be continuous and smooth.

    For instance, if you put two brushes one aside the other, you will not be able to see when one brush is ending and the other begins, because the UV should be continuous.

    Another example:
    The texture should repeat on a big brush, not to strech on all of it.

    I have tried to project the polygons into the y plane. That works fine only for polygons parallel to the X, Y, or Z planes,
    otherwise the UVs look shifted.

    Any suggestions?

    [This message has been edited by Quaternion (edited 01-16-2002).]

  2. #2
    Junior Member Newbie
    Join Date
    Sep 2001
    Posts
    4

    Re: Generating univeral UV coords

    What you're asking for is a topic of "on going research"...

    Depending upon what you're trying to achieve, you could have an arbitary plane that you project to- but that will stretch as any surface pulls away from that plane. Some modeling packages allow for "guide splnes" to be specified that are used to generate UV coords along a complex surface. But I believe that to really make a "univeral" texture coordinate mapper, you need to go into 3D textures- the result is sorta like carving your model out of a cube of marble (or whatever your 3D texture looks like).

  3. #3
    Senior Member Regular Contributor
    Join Date
    Jan 2001
    Location
    Israel
    Posts
    140

    Re: Generating univeral UV coords

    How do the recent games' engines do the UV coords?

  4. #4
    Senior Member Frequent Contributor
    Join Date
    Sep 2000
    Location
    SWEDEN
    Posts
    601

    Re: Generating univeral UV coords

    The 3d-artists apply them by hand when modelling. Or rather, that use e.g. cube or planar mapping and then tweak the results.

Similar Threads

  1. generating tex coords & GL_OBJECT_PLANE
    By GameMaker in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-21-2002, 06:54 PM
  2. Algorithms for generating texture coords.
    By oswaldo in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 05-31-2002, 02:10 PM
  3. Generating env mapping tex coords
    By smanar in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-19-2001, 08:12 AM
  4. generating tex coords
    By imported_unknown in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 01-24-2001, 02:21 AM
  5. Generating own UV coords. How?
    By cc246 in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 02-09-2000, 09:23 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