Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > OpenGL Nurbs/Bezier Help?

OpenGL Nurbs/Bezier Help?
Thread Tools
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
Dec 20, 2003, 08:48 PM
 
Hi,
I have an openGL question:

Code:
const int numControlPoints = 10; GLfloat controlPoints[10][3]; glMap1f(GL_MAP1_VERTEX_3, 0.0, 1.0, 3, numControlPoints, &controlPoints[0][0]);
This is all for using Bezier Splines. So, I have two questions. 1) If I make the number of control points greater than 10, I get no line. I have no idea why. I've read the "Red Book" and can't figure it out. 2) Is there a way to get information about the curve that it's displaying? For instance, a combination of sin waves that makes the curve?

thanks!
gabe
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:34 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2