Diffraction optical elements (DOE) are important elements of systems for images displaying and processing. The DOE materials with both positive and negative birefringence enhance performances and functionality of such systems. We have calculated diffraction of rays passing through (OAGSM) by using our original Exedeep software. At the first time the diffraction parameters for both transmitted and reflected TEand TM-waves are calculated for materials with both positive and negative optical anisotropy. The simulation results are to be used to create DOE for visible, IR and THz range.