/***** FilterMeister 3D View Perspective Projection *****/ %ffp /************* Header *************/ //Filter Identification Category: "Hidetaka Filter" Title: "3D Perspective Projection" Filename:"FM_3D_Perspective.8bf" Author: "Hidetaka Hama" Copyright: "2001 Hidetaka Hama" //Dialog Modify //Control Defines ctl[0]:"X Rot",Range=(0,360) ctl[1]:"Y Rot",Range=(0,360) ctl[2]:"Z Rot",Range=(0,360) ctl[3]:"X Loc",Range=(0,1000) ctl[4]:"Y Loc",Range=(0,1000) ctl[5]:"View Distance",Range=(0,2000),Val=500 /******* Program Description *******/ ForEveryTile: { int file; int data_num; double p1, p2, p3; int myScaleFactor; double x0,y0,z0,x1,y1,z1,x2,y2,z2,x3,y3,z3; double l,m,n; double px,py,h,vp; double x_rot = -ctl(0)*3.141592/180.0; double y_rot = -ctl(1)*3.141592/180.0; double z_rot = -ctl(2)*3.141592/180.0; //for preview if (doingProxy) myScaleFactor = zoomFactor; else myScaleFactor = 1; //read data file = fopen("c:\\3d_data.txt", "r"); if (!file) { ErrorOk("File not found"); } else { fscanf(file, "%ld", &data_num);//num of data for (i=0; i 2d for(z=0; z