Svetlec
Svetlec
2 / 0
26th Oct 2023
27th Oct 2023
"and" mode: A bitwise and is performed on PHOT's and FILT's spectrums and the result is stored in the PHOT particle, any wavelengths not present in FILT will be removed from PHOT. i need help...

Comments

  • Svetlec
    Svetlec
    27th Oct 2023
    ohhhh, thanks!
  • Jerehmia
    Jerehmia
    27th Oct 2023
    Typo: the BRAY has value of 14 after the first FILT, not 15. Sorry.
  • Jerehmia
    Jerehmia
    27th Oct 2023
    You start with and ARAY that shines a BRAY through 2 pixels of FILT, the first FILT in the normal set mode and a ctype 14 which gives the BRAY a value of 15, the second FILT with a tmp of 1 so it's in AND mode and a ctype of 13. If you spark the ARAY, the BRAY that comes out will have a ctype of 12. There are 30 wavelengths in total and each has a ctype value that's double that of the previous wavelength (so 1,2,4,8,16,32,64...). BRAYs and PHOTs must have at least 1 wavelength set or they die.
  • Svetlec
    Svetlec
    26th Oct 2023
    I GOT IT! so if i were to put 1px of filt first, then the AND filt pixel with the same wavelength, i get an output of bray, but if the first px of filt is red it wont output!
  • Svetlec
    Svetlec
    26th Oct 2023
    ...i dont even get what youre saying :(
  • Jerehmia
    Jerehmia
    26th Oct 2023
    AND means a resulting wavelength will only be set if it's also set in both the incoming BRAY/PHOT and the FILT. Suppose the BRAY has a value of 14 (so its 2 + 4 + 8 wavelengths are set) and the FILT has a value of 13 (so its 1 + 4 + 8 wavelengths are set) then only the 4 and 8 wavelengths are set in both so the resulting BRAY has only those and its value is 4 + 8 = 12
  • Svetlec
    Svetlec
    26th Oct 2023
    so if i put filt to be like 1 and phot to be 0 it wont exit?
  • Svetlec
    Svetlec
    26th Oct 2023
    im dumb... :(