오유인페이지
개인차단 상태
닭장주인님의 개인페이지입니다
회원가입 : 11-09-16
방문횟수 : 4322회
닉네임 변경이력
일반
베스트
베오베
댓글
251 2015-06-01 23:56:58 8
층간소음, 내가 윗집으로부터 배운 것 [새창]
2015/06/01 04:57:06
와. 나도 저렇게 아이키우고 싶음
근데 결혼부터. 아니 여친부터 ㅠㅠ
난 않될거야. 아마 ㅠㅠ
250 2015-05-29 15:52:45 0
헐 꿀위키 없어졌어요 ㅜㅜ [새창]
2015/05/29 11:57:21
잡플래닛 사이트에서도 함 봐보세요.
249 2015-05-29 13:50:38 8
탈퇴가 무슨 벼슬인줄아나... [새창]
2015/05/29 13:33:22
에이.. 나눔인줄 알았잖아요. ㅋㅋ 죄송..
247 2015-05-20 15:50:05 0
게시글 옵션 기능이 추가되었습니다. [새창]
2015/05/20 08:50:26
항상 고맙습니다.
246 2015-05-18 10:18:29 0
여시 동정글이 여기저기 보이는 이유가 [새창]
2015/05/18 08:39:38
여기에 마법사들 모여 있다는 말 듣고 욌습니다.
245 2015-05-17 15:51:29 0
진짜 열불나는 게시물 보시져..ㅋㅋㅋ [새창]
2015/05/17 03:50:47
아오! 님 때문에 저 글 읽다보니 멘탈만 강해졌잖아요..ㅋㅋ
244 2015-05-17 13:54:36 0
흔한 베오베 실패 후 와이프와의 카톡 [새창]
2015/05/17 13:12:22
오! 가셨네요! ㅋㅋㅋㅋㅋ
243 2015-04-13 09:44:13 2
unity c# texture2d를 rotation된 값으로 저장하는 방법질문드려도 될까요?ㅠ [새창]
2015/04/12 02:23:29
private static float RotationY(float angle, float x, float y)
{
float cos = Mathf.Cos(angle / 180.0f * Mathf.PI);
float sin = Mathf.Sin(angle / 180.0f * Mathf.PI);

return (x * sin + y * cos);
}//RotationY()

private static float RotationX(float angle, float x, float y)
{
float cos = Mathf.Cos(angle / 180.0f * Mathf.PI);
float sin = Mathf.Sin(angle / 180.0f * Mathf.PI);

return (x * cos + y * (-sin));
}//RotationX()

RotateTexture로 넘겨주는 텍스처는 Read/Write 모드가 켜져 있어야 합니다.
아마도 시간이 지나서 해결하셨을듯 하지만 남겨봅니다..^^
242 2015-04-13 09:44:06 1
unity c# texture2d를 rotation된 값으로 저장하는 방법질문드려도 될까요?ㅠ [새창]
2015/04/12 02:23:29
public static Texture2D RotateTexture(Texture2D texture, float angle, FilterMode filterMode)
{
Point textureSize = new Point(texture.width, texture.height);

Texture2D resultTexture = new Texture2D(textureSize.x, textureSize.y, texture.format, false, false);
resultTexture.filterMode = filterMode;

Vector2 rotation = Vector2.zero;
rotation.x = RotationX(angle, -textureSize.x * 0.5f, -textureSize.y * 0.5f) + (textureSize.x * 0.5f + 0.5f);
rotation.y = RotationY(angle, -textureSize.x * 0.5f, -textureSize.y * 0.5f) + (textureSize.y * 0.5f - 1.0f);

for (float x = 0; x < textureSize.x; x++)
{
Vector2 temp = rotation;
for (float y = 0; y < textureSize.y; y++)
{
temp.x += RotationX(angle, 0.0f, 1.0f);
temp.y += RotationY(angle, 0.0f, 1.0f);

Color color = GetPixel(texture, temp.x, temp.y);
resultTexture.SetPixel((int)Mathf.Floor(x), (int)Mathf.Floor(y), color);
}//for(y)

rotation.x += RotationX(angle, 1.0f, 0.0f);
rotation.y += RotationY(angle, 1.0f, 0.0f);
}//for(x)
resultTexture.Apply();

return resultTexture;
}//Rotate()
240 2015-03-18 18:30:25 0
유니티3D와 WPF혹은 Winform을 연계하는 방법이 있나요. [새창]
2015/03/18 16:00:34
이건 예전에 스크랩 해놓은 링크라 검색어는 정확히 기억나지는 않습니다만
아마도 unity3d host wpf, unity3d host winform, unity3d in wpf, unity3d winform hwnd ... 등등등으로 검색하지 않았을까 싶네요..^^
239 2015-03-18 18:09:47 0
유니티3D와 WPF혹은 Winform을 연계하는 방법이 있나요. [새창]
2015/03/18 16:00:34
질문하실때 본삭금 걸어주시구요..
http://blog.naver.com/starqualia/220211393175 <- 이 방법은 Unity 4.6.1 이상에서 사용가능합니다. 5에서는 않된다는것 같구요..

http://blog.naver.com/PostView.nhn?blogId=ketaro1077&logNo=120194795145&categoryNo=0&parentCategoryNo=0&viewDate=¤tPage=2&postListTopCurrentPage=&userTopListOpen=true&userTopListCount=5&userTopListManageOpen=false&userTopListCurrentPage=2
이 방법도 있습니다.
238 2015-03-12 02:42:05 0
천문학도에게 선물하면 100퍼 성공할것같은 사탕 [새창]
2015/03/11 17:33:49
어.. 오른쪽 아래 사탕은 어렸을적 본 구슬같은데요?
237 2015-03-10 20:04:44 8
남편이랑 영작하는데 ㅋㅋㅋㅋㅋㅋ [새창]
2015/03/10 17:23:31
영작하다가 정의를 define이라고 해버린 경우도 있습니다..ㅎㅎ
< 이전페이지 다음페이지 >
1 2 3 4 5 >
◀뒤로가기
PC버전
맨위로▲
공지 운영 자료창고 청소년보호