Image Synthesis Technology

Modeling & Perspective Projection Project



Input format

input a parallelepiped:cubelxlylz
input a m-column:columrhz
input a m-pyramid:pyramrhz
translation:tranntxtytz
rotation:rotanaxisang
scaling:scalnsxsysz
set a window:windxwlywlxwhywh
set a viewport:viewxvlyvlxvhyvh
set a viewpoint:eyepxvyvzv
set a view reference point:refpxfyfzf
perspective projection:proj
display:disp(fn)
quit:quit



n:object number(numbering in order of input sequences n = 1, 2, ... )
tx, ty, tz:translation toward x, y, z-axes
axis:axis of rotation(x, y, z)
ang:angle of rotation [degree]
sx, sy, sz:scaling factors of x, y, z-axes
xv, yv, zv:coordinates of a viewpoint
xf, yf, zf:coordinates of a view reference point
fn:output file name(line segment data)


Sample data

input data file in text format

Example of drawing


output file of line segment data


seg2eps

Conversion of line segment data into an EPS file
shell script (UNIX) : seg2eps
header file: seg2eps.head
footer file: seg2eps.tail


How to display a PS file to screen

Ghostscript


JAVA documents
(By courtesy of Prof. Nishita at University of Tokyo)

グラフィックスに関係するJAVAの文法
JAVAの例題
JAVA関連リンク


Submit your work to the following email address.
提出・質問は下記のメールアドレスへ

d319@eml.hiroshima-u.ac.jp

Up to the IST Class page.