Search:

Type: Posts; User: Voodoo

Search: Search took 0.08 seconds.

  1. Replies
    10
    Views
    1,691

    Re: Doesnt render in 3D with Bitwise Operator '&'

    Edin,
    I assume that you misunderstand the & and the shifting operation << or >>
    Shift left 5 positions: int xx = (int) (xDepth) << 5 (or multiply by 32)
    Shift right 5 positions: int xx = (int)...
  2. Replies
    10
    Views
    1,691

    Re: Doesnt render in 3D with Bitwise Operator '&'

    frankly, I don't understand what you mean. You got whatever xDepth is one of the 4 above mentioned values.
  3. Replies
    10
    Views
    1,691

    Re: Doesnt render in 3D with Bitwise Operator '&'

    Edin....5 in binary is 101. Your operation int xx = (int) (xDepth) & 5; delivers only 4 values: 101 or 5, 100 or 4, 1 and 0. Is that what you want?
Results 1 to 3 of 3