[Webpage]3D Object Intersection

3D Object Intersection

3차원 객체들의 교차(혹은 충돌)여부를 검사하는 것은 그래픽관련 프로그래밍할 때, 매우 빈번하게 접하는 문제이다.
이런 문제들을 한 자리에 일목요연하게 정리한 웹페이지이다.
위치 : http://www.realtimerendering.com/int/
자체 설명
This page gives a grid of intersection routines for various popular objects, pointing to resources in books and on the web. For a unified static and dynamic object intersection and distance library (non-commercial use only, though), see the TGS collision system. The most comprehensive books on the subject are Geometric Tools for Computer Graphics (GTCG) and Real-Time Collision Detection (RTCD); the former is all-encompassing, the latter more approachable and focused.

Posted by solarview

2008/05/23 04:51 2008/05/23 04:51
,
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/170

DoEvents함수를 효과적으로 사용하기

DoEvents함수는 CPU-intensive code를 예방하는 방법 중의 하나이다.
수치해석과 같이 CPU계산량이 많은 응용프로그램일 경우, 계산에만 몰두하느라 다른 응용프로그램을 사용할 수 없게 된다. 해당 프로그램도 응답이 없어 마치 죽은(?) 듯한 반응을 보인다. 이를 방지하기 위해서 다른 응용 프로그램에도 CPU사용을 허락하는 것이 DoEvents함수이다.
이렇듯 좋은 취지의 함수이지만, 이 함수를 남발할 경우 오히려 계산속도가 현저히 떨어지는 상황을 맞이할 수 있다. 그럼 어떻게 할 것인가?

1)DLL 함수 선언
[code]Public Declare Function GetInputState Lib "user32" () As Int32[/code]
2)함수 사용
[code]If Not GetInputState() = 0 Then Application.DoEvents()[/code]

이렇게 하면 입력값이 있을 때만, DoEvents 함수를 호출한다.
그냥 DoEvents함수를 사용하는 경우보다 계산속도가 빠르다.

Posted by solarview

2008/05/20 10:20 2008/05/20 10:20
, ,
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/175

Let no one ignorant of geometry enter

Plato said, "Let no one ignorant of geometry enter."
"기하학을 모르는 자는 들어오지 말라."

Posted by solarview

2008/05/09 03:56 2008/05/09 03:56
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/169