Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: procedure texture mapping

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2004
    Posts
    5

    procedure texture mapping

    I want to generate and map texture in different pattern to a model surface basing on different average light density of different regions. The input model is triangle mess. And I don't want to do this with the support of pixel shadder. How to do with this procedural texture mapping?

    Any source example code about procedural texture mapping is most helpful.Because I have no concept on the implementation of procedural texture mapping within OPENGL's rendering pipeline.(My case is 2 dimension procedural texture mapping region by region, not 1D pixel by pixel)

    Thanks a lot!!!

  2. #2
    Junior Member Regular Contributor
    Join Date
    Jan 2004
    Location
    Los Angeles, CA, USA
    Posts
    216

    Re: procedure texture mapping

    I can't think of a way to do what I think you are talking about. If you want a procedural texture, generated at run time, there are two ways to do it: generate the texture on the CPU and load it into a texture map, and to use a fragment shader.

    If you want to have a function of lighting, thefragment shader will probably be the easy way since you'll get stuff for free. However I'm not sure what you mean by "basing on different average light density of different regions".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •