[GRASSLIST:9312] Re: 3D blocks again
Hamish
hamish_nospam at yahoo.com
Mon Dec 5 16:28:46 EST 2005
> In regard of blocks creating we have changed following :
> float CubeVertices[8][3] = {
> {-1.0,-1.0,-1.0},
> {1.0,-1.0,-1.0},
> {1.0,1.0,-1.0},
> {-1.0,1.0,-1.0},
> {-1.0,-1.0,1.0},
> {1.0,-1.0,1.0},
> {1.0,1.0,1.0},
> {-1.0,1.0,1.0}
> };
>
> as
>
> float CubeVertices[8][3] = {
> {-2.0,-2.0,-1.0},
> {2.0,-2.0,-1.0},
> {2.0,2.0,-1.0},
> {-2.0,2.0,-1.0},
> {-2.0,-2.0,1.0},
> {2.0,-2.0,1.0},
> {2.0,2.0,1.0},
> {-2.0,2.0,1.0}
> };
>
>
> And now it is ok .
from the screenshots,
> http://www.minegis.com/temp/blok4.png
I take it this change gives you 1/2 cubes, and isn't needed for the
general case? (ie it is tweaking to get things the way you want it and
isn't a bug)
Hamish
More information about the grass-user
mailing list