[osg-users] TangentSpaceGenerator giving null normal vector...
Hi, I'm using the TangentSpaceGenerator on a sphere geometry (one primitiveset in Triangle_strip), and I added a small part of the result to the end of this mail : is it correct that some points have a null normal (0,0,0) regards, Emmanuel. 10:58:37: INFO: The normal is: (-0.102244,0.021733,0.994522) 10:58:37: INFO: The normal is: (-0.207912,-0.00,0.978148) 10:58:37: INFO: The normal is: (-0.104528,0.00,0.994522) 10:58:37: INFO: The normal is: (-0.102244,-0.021733,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.095492,-0.042516,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.084565,-0.061440,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.069943,-0.077680,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.052264,-0.090524,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.032301,-0.099412,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.010926,-0.103956,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.010926,-0.103956,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.032301,-0.099412,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.052264,-0.090524,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.069943,-0.077680,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.084565,-0.061440,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.095492,-0.042516,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.102244,-0.021733,0.994522) 10:58:37: INFO: The normal is: (-0.00,0.00,1.00) 10:58:37: INFO: The normal is: (0.104528,-0.00,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.102244,0.021733,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.095492,0.042516,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.084565,0.061440,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.069943,0.077680,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.052264,0.090524,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.032301,0.099412,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.010926,0.103956,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.010926,0.103956,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.032301,0.099412,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.052264,0.090524,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.069943,0.077680,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.084565,0.061440,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.095492,0.042516,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.102244,0.021733,0.994522) 10:58:37: INFO: The normal is: (0.00,-0.00,1.00) 10:58:37: INFO: The normal is: (-0.104528,-0.00,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,1.00) ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
Re: [osg-users] TangentSpaceGenerator giving null normal vector...
Hi Emmanuel, My guess is that there are some zero area triangles in the geometry. The TangentSpaceGenerator will have a hard time handling these - the tangent space is undefined. Robert. On 4/11/07, Emmanuel Roche [EMAIL PROTECTED] wrote: Hi, I'm using the TangentSpaceGenerator on a sphere geometry (one primitiveset in Triangle_strip), and I added a small part of the result to the end of this mail : is it correct that some points have a null normal (0,0,0) regards, Emmanuel. 10:58:37: INFO: The normal is: (-0.102244,0.021733,0.994522) 10:58:37: INFO: The normal is: (-0.207912,-0.00,0.978148) 10:58:37: INFO: The normal is: (-0.104528,0.00,0.994522) 10:58:37: INFO: The normal is: (-0.102244,-0.021733,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.095492,-0.042516,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.084565,-0.061440,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.069943,-0.077680,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.052264,-0.090524,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.032301,-0.099412,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.010926,-0.103956,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.010926,-0.103956,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.032301,-0.099412,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.052264,-0.090524,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.069943,-0.077680,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.084565,-0.061440,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.095492,-0.042516,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.102244,-0.021733,0.994522) 10:58:37: INFO: The normal is: (-0.00,0.00,1.00) 10:58:37: INFO: The normal is: (0.104528,-0.00,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.102244,0.021733,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.095492,0.042516,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.084565,0.061440,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.069943,0.077680,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.052264,0.090524,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.032301,0.099412,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.010926,0.103956,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.010926,0.103956,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.032301,0.099412,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.052264,0.090524,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.069943,0.077680,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.084565,0.061440,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.095492,0.042516,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.102244,0.021733,0.994522) 10:58:37: INFO: The normal is: (0.00,-0.00,1.00) 10:58:37: INFO: The normal is: (-0.104528,-0.00,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,1.00) ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
Re: [osg-users] TangentSpaceGenerator giving null normal vector...
Yes :-) Indeed, this would be a good explanation. Thanks Robert ! Emmanuel. 2007/4/11, Robert Osfield [EMAIL PROTECTED]: Hi Emmanuel, My guess is that there are some zero area triangles in the geometry. The TangentSpaceGenerator will have a hard time handling these - the tangent space is undefined. Robert. On 4/11/07, Emmanuel Roche [EMAIL PROTECTED] wrote: Hi, I'm using the TangentSpaceGenerator on a sphere geometry (one primitiveset in Triangle_strip), and I added a small part of the result to the end of this mail : is it correct that some points have a null normal (0,0,0) regards, Emmanuel. 10:58:37: INFO: The normal is: (-0.102244,0.021733,0.994522) 10:58:37: INFO: The normal is: (-0.207912,-0.00,0.978148) 10:58:37: INFO: The normal is: (-0.104528,0.00,0.994522) 10:58:37: INFO: The normal is: (-0.102244,-0.021733,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.095492,-0.042516,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.084565,-0.061440,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.069943,-0.077680,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.052264,-0.090524,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.032301,-0.099412,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.010926,-0.103956,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.010926,-0.103956,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.032301,-0.099412,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.052264,-0.090524,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.069943,-0.077680,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.084565,-0.061440,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.095492,-0.042516,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.102244,-0.021733,0.994522) 10:58:37: INFO: The normal is: (-0.00,0.00,1.00) 10:58:37: INFO: The normal is: (0.104528,-0.00,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.102244,0.021733,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.095492,0.042516,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.084565,0.061440,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.069943,0.077680,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.052264,0.090524,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.032301,0.099412,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (0.010926,0.103956,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.010926,0.103956,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.032301,0.099412,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.052264,0.090524,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.069943,0.077680,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.084565,0.061440,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.095492,0.042516,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,0.00) 10:58:37: INFO: The normal is: (-0.102244,0.021733,0.994522) 10:58:37: INFO: The normal is: (0.00,-0.00,1.00) 10:58:37: INFO: The normal is: (-0.104528,-0.00,0.994522) 10:58:37: INFO: The normal is: (0.00,0.00,1.00) ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ ___