Graphics 版 (精华区)
发信人: jun (☆子夜☆), 信区: Graphics
标 题: 怎么设置xy的范围?
发信站: 哈工大紫丁香 (Sat Jan 9 11:30:50 1999), 转信
在视口设置以后,怎么才能将我实际的数值与视口的范围对应起来?
--
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 166.111.33.119]
--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: sunup.bbs@bbs.net.ts]
发信人: jun (☆子夜☆), 信区: Graphics
标 题: Re: 怎么设置xy的范围?
发信站: 哈工大紫丁香 (Sat Jan 9 11:33:12 1999), 转信
【 在 airneed (空谷) 的大作中提到: 】
: 在视口设置以后,怎么才能将我实际的数值与视口的范围对应起来?
In common case, the viewport size is same as the window size,
you needn't care how to transform the projected image into viewport
, you must make sure that the aspect ratio of the viewport is the
same as the view area. That is, the height/width=constant.
--
Am I wrong to be hurt
Am I wrong to feel pain
Am I wrong to be in the rain
Am I wrong to wish the night won't end
Am I wrong to cry
But I know It's not worng to sing the last song
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 166.111.68.229]
--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: sunup.bbs@bbs.net.ts]
发信人: jun (☆子夜☆), 信区: Graphics
标 题: Re: 怎么设置xy的范围?
发信站: 哈工大紫丁香 (Sat Jan 9 11:33:47 1999), 转信
【 在 elnino (乌鸦嘴) 的大作中提到: 】
: In common case, the viewport size is same as the window size,
: you needn't care how to transform the projected image into viewport
: , you must make sure that the aspect ratio of the viewport is the
: same as the view area. That is, the height/width=constant.
Thanks for having done me so much help.
but ihave to say i must have made u misunderstood.
i meant that the fact data of mine,for example,the motion range of my
object is [0,3],how can i map this range that we can see the orbit of
the object,just like the reality?
but i do not think it is a difficult question now.
i have made my project run well,but i still have many questions
about the model_view and projection.how wonderful if i can talk with u.
about the advice u have given,i think if i do not consider the abnomal
effect of the object,i do not have to adjust the viewport ratio about the
view area.of course if i adjust,it will get good effect.
and could u spare some time to study the function gluLookAt?
it is a good function i think.but i do not understand it well enough to
use it .
--
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 166.111.33.119]
--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: sunup.bbs@bbs.net.ts]
发信人: jun (☆子夜☆), 信区: Graphics
标 题: Re: 怎么设置xy的范围?
发信站: 哈工大紫丁香 (Sat Jan 9 11:34:39 1999), 转信
【 在 airneed (空谷) 的大作中提到: 】
:
: Thanks for having done me so much help.
: but ihave to say i must have made u misunderstood.
: i meant that the fact data of mine,for example,the motion range of my
: object is [0,3],how can i map this range that we can see the orbit of
: the object,just like the reality?
: but i do not think it is a difficult question now.
: i have made my project run well,but i still have many questions
: about the model_view and projection.how wonderful if i can talk with u.
: about the advice u have given,i think if i do not consider the abnomal
: effect of the object,i do not have to adjust the viewport ratio about the
: view area.of course if i adjust,it will get good effect.
: and could u spare some time to study the function gluLookAt?
: it is a good function i think.but i do not understand it well enough to
: use it .
I have sent a demo program and a explaination of the
gluLookat to you by mail.
Haven't you recevied it?
--
Am I wrong to be hurt
Am I wrong to feel pain
Am I wrong to be in the rain
Am I wrong to wish the night won't end
Am I wrong to cry
But I know It's not worng to sing the last song
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 166.111.68.72]
--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: sunup.bbs@bbs.net.ts]
发信人: jun (☆子夜☆), 信区: Graphics
标 题: Re: 怎么设置xy的范围?
发信站: 哈工大紫丁香 (Sat Jan 9 11:34:41 1999), 转信
of course i ahve got it,and before u wrote
demo to me,i have use it working well,but i do
not know the exact meaning of the parameter of the function..
thanks.
【 在 elnino (乌鸦嘴) 的大作中提到: 】
: I have sent a demo program and a explaination of the
: gluLookat to you by mail.
: Haven't you recevied it?
--
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 166.111.33.119]
--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: sunup.bbs@bbs.net.ts]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:4.792毫秒