Waitrud Weber’s blog

things and reminders for memories

3d: WindowsAPI: Windows-make: Step to Photon:

(Photon: Prepared: 20200220)
mode_rails = 3;
int photon_dDisplayControls_wmpaint_display_threeD_proc_003 ( HWND hWnd, HDC hDC, PAINTSTRUCT* ps, UINT uMsg, WPARAM wParam, LPARAM lParam ) ;
int photon_initialization () ;

Simply, we could created the above.

 

*

Triangle: 1

Photon : 10

*

function refrection

input:

 cross point: 1 (inside Triangle)

 input vector: 1

 

output(return)

 output vectior, which is refrection.

 

 

(20200302)
1. Calculation of local axises : calculation_local_axis :
2. A triangle patch : normal vector, we've already has:
3. So, we can calculate refrect from 1 and 2.