Re: [Plib-devel] ssgaSpheres?
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2005-02-02 15:50:57
|
Bram Stolk wrote: > As I said, the spheres are also visually wrong. > If you render both styles, they have different sizes. > And both sizes are also a mismatch against a sgSphere > with radius 1, judging from the hits I get from sgIsect() > (although this latter problem could be a bug in my isect program). Ah - OK. So it looks like there is a radius/diameter screwup somewhere in ssgaSphere. > This is clearly wrong. Changing topology of the sphere should > not affect size. I also expect the mismatch against sgSphere. Indeed. > Also, you have to make a decision on the definition of ssgaSphere > of size 1: do you want its radius to be 1, or its diameter? The size of all of the ssgaShape's is supposed to be the overall size - so it *should* be the diameter. I have committed a fix for the sphere (there was also a problem with the colour of the teapot that needed fixing). I've added an example program for the ssgaShapes in examples/src/ssg/shapes > From what I'm seeing: neither sphere style has neither radius 1 nor > diameter 1, judging from isects with sgSphere radius 1. I don't know about the isect results - I have not checked that. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |