Problem drawing a sphere in OPENGL ES

后端 未结 2 1086
后悔当初
后悔当初 2020-12-24 09:16

I\'ve been trying to create my own sphere using OpenGL ES and I followed the math described here http://www.math.montana.edu/frankw/ccp/multiworld/multipleIVP/spherical/lear

2条回答
  •  眼角桃花
    2020-12-24 09:58

    Change this

    for(double phi = -(Math.PI/2); phi <= Math.PI/2; phi+=dPhi)
    

    to this

    for(double phi = -(Math.PI); phi <= Math.PI; phi+=dPhi)
    

提交回复
热议问题