708
edits
(Two questions.) |
No edit summary |
||
Line 66: | Line 66: | ||
: | : | ||
[[User:Ssg|Ssg]] 15:31, 20 April 2007 (CEST) | [[User:Ssg|Ssg]] 15:31, 20 April 2007 (CEST) | ||
Yes to both questions. | |||
:*First one: | |||
::For the size and position you must note that the maximum position of the octree node is stored. This leads to the fact that the maximum values must all be 511 because this is the size of the octtree and no nodes can be missing. This leaves as with just to cases to consider: 7, 127, 127, 127 and 28, 508, 508, 508. | |||
::Now the size of an octtree node is always a power of 2 so 28 or 7 are not sizes but powers and 28 will be a huge size for an octtree node (in fact you need to add 4 to this value to get the power, that means 28 ends up as 32 which is even bigger...). | |||
:*Second one: | |||
::As for 12/20 bits vs. 8/24 bits: well, there must be a reason for "*) You have to devide the offset by 4 to get the correct offset." :). Of course 4 means only a 2 bit difference but there is another 2 bit difference from the fact that it's a index and not an offset. There is no file in Oni where an array offset is used instead of an array index as far as I know. | |||
[[User:Neo|Neo]] |
edits