Results 1 to 2 of 2

Thread: NURBS and GLSL

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2015
    Posts
    7

    NURBS and GLSL

    I achieved NURBS texture mapping and lighting using the OpenGL fixed function pipeline. I am wondering if anyone has hints on how I can do this using GLSL vertex and fragment shaders?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    3,104
    You can use a tessellation shader (OpenGL 4+), or a compute shader (OpenGL 4.3+), or you can render a tessellated mesh where the vertex attributes consist solely of parametric (UV) coordinates and calculate the actual attributes (position, normal, texture coordinates, etc) in a vertex shader.

Similar Threads

  1. Updating legacy GLSL shaders to modern GLSL
    By cappah78 in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 12-09-2016, 05:35 PM
  2. Last one on nurbs... sweeping a nurbs curve to draw a nurbs surface?
    By BigShooter in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-04-2003, 09:54 AM
  3. NURBS again!
    By sky-raven in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 09-05-2002, 05:49 AM
  4. NURBS
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-07-2002, 01:00 AM
  5. Nurbs
    By devchandc in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 01-11-2002, 01:31 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