New topic: 

OpenGL Bezier Surface

<http://forums.realsoftware.com/viewtopic.php?t=47311>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        openk3          Post subject: OpenGL Bezier SurfacePosted: Sun 
Mar 17, 2013 5:37 am                         
Joined: Sun Mar 17, 2013 5:00 am
Posts: 1                Hello,
I'm blocked with the glMap2f OpenGL implementation, I get an 1281 
(GL_INVALID_VALUE) after calling glMap2f. With glMap1f the same process works 
correctly and I tested different combinations of values and on this latest 
exemples there is only 4 evaluators points (glEvalCoord2f), max is 8 on most 
graphic cards. Does somebody have a Bezier surface OpenGL experience ?
Thanks

  dim pointControl as MemoryBlock
  dim point(3*8) as Double
 
  point = Array( _
  -10.0,0,0,_
  10.0,0,0,_
  10,10,0,_
  -10,10,0 _
  )
 
  pointControl = ArrayToMemoryBlock(point)
 
  glMap2f(GL_MAP2_VERTEX_3, _
  0.0, _ // u min
  1.0, _ // u max
  3, _ // u stride
  2, _ // u order
  0.0, _ // v min
  1.0, _ // v max
  6, _ // v stride
  2, _ // v order
  pointControl)
 
  e = glGetError // 1281 => GL_INVALID_VALUE // A numeric argument is out of 
range   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to