Get it on Google Play


Wm뮤 :: Wm뮤

블로그 이미지
가끔 그림그리거나 3D모델링하거나
취미로 로봇만드는
퇴직한 전자과 게임프로그래머
2020.3.48f1 , 2022.3.6f1 주로 사용
모카쨩
@Ahzkwid

Recent Comment

Archive


2024. 5. 11. 19:46 블렌더

 

 

나중에 UV 잘못편거 발견해서 뒤늦게 부랴부랴 수정하면 텍스처가 개박살나서 다시 구워야 할때가 있을것이다

 

 

 

먼저 기존 옷의 마테리얼은 이렇게 텍스처가 입혀져 있어야 한다

 

이렇게 설정하면 됨

 

근데 가끔 왠지 오류로 저렇게 해도 텍스처 안 입혀질때가 있는데 걍 마테리얼 하나 만들어서 하면 고쳐짐

 

 

 

 

그다음 쉬프트 누르고 UV가 고쳐진걸 누른다

몰론 고쳐진 대상의 UV의 텍스처는 비어있는 텍스처에 할당되어야함

 

 

 

 

이런식으로 ㅇㅇ

얘는 마테리얼 암거나 선택하면 된다

 

 

그다음 이런식으로 베이크 하면 된다

Margin은 당연히 높을수록 좋지만 블렌더가 UV처리는 못해서 중첩되기도 하니까 알아서 잘 설정하자

 

 

 

 

 

 

 

 

posted by 모카쨩
2024. 5. 9. 11:32 Unity/C#

 

 

 

 

원문링크 : 

https://forum.unity.com/threads/solved-how-to-start-draganddrop-action-so-that-sceneview-and-hierarchy-accept-it-like-with-prefabs.822531/

 

[Solved] How to start DragAndDrop action so that SceneView and Hierarchy accept it like with prefabs

Edit: Solution below. I'm building a level design tool which shows a list of prefabs in a custom editor window and lets users drag and drop these...

forum.unity.com

 

 

이 코드는 내가 만든게 아니고 위 링크에서 가져와 간소화 한것일뿐이다

 void OnEnable()
{
    SceneView.duringSceneGui += OnSceneGUI;
    EditorApplication.hierarchyWindowItemOnGUI += OnHierarchyGUI;
}

 void OnDisable()
{
    SceneView.duringSceneGui -= OnSceneGUI;
    EditorApplication.hierarchyWindowItemOnGUI -= OnHierarchyGUI;
}
 void OnSceneGUI(SceneView obj)
{
    HandleDragAndDropEvents();
}

 void OnHierarchyGUI(int instanceID, Rect selectionRect)
{
    HandleDragAndDropEvents();
}
 void HandleDragAndDropEvents()
{
    if (Event.current.type == EventType.DragUpdated)
    {
        OnDragUpdated();
    }
    if (Event.current.type == EventType.DragPerform)
    {
        OnDragPerform();
    }
}
void OnDragUpdated()
{
    Debug.Log("OnDragUpdated()");
}
void OnDragPerform()
{
    Debug.Log("OnDragPerform()");
}

 

 

 

아바타 툴 만들때 사용되었다

 

 

 

 

 

'Unity > C#' 카테고리의 다른 글

유니티 라이트 레졸루션 개별설정  (0) 2024.05.12
AutomaticShadowDistance  (0) 2024.04.18
c# Dictionary(딕셔너리) 관련  (0) 2024.03.19
posted by 모카쨩
2024. 4. 26. 06:54 블렌더

원통형 에지 섭디비전 먹이려 할때 Subdivide Smooth하면 아래처럼 지글지글하게 된다

 

 

이럴때

 

 

 

Subdivide Edge-Ring을 먹이면 깨끗하게 된다

'블렌더' 카테고리의 다른 글

블렌더 텍스처 베이크  (0) 2024.05.11
블렌더 텍스처링 관련  (0) 2024.04.06
블렌더 백그라운드 이미지  (0) 2024.03.29
posted by 모카쨩
2024. 4. 21. 19:46

 

 

 

 

 

Selenium.WebDriver입력후 설치

 

 

 

using OpenQA.Selenium.Chrome;
using OpenQA.Selenium;

public static class Crawling
{
    public static void Run()
    {
        driver = new ChromeDriver();

        driver.Url = "https://www.google.com";
        driver.FindElement(By.Name("q")).SendKeys("webdriver" + System.Windows.Forms.Keys.Return);
        Console.WriteLine(driver.Title);

        driver.Quit();
    }
}

 

그리고 코드 만들어서 실행하면 된다

이 코드는 아래 공식사이트의 기본 예제이다

https://www.nuget.org/packages/Selenium.WebDriver

 

Selenium.WebDriver 4.19.0

Selenium is a set of different software tools each with a different approach to supporting browser automation. These tools are highly flexible, allowing many options for locating and manipulating elements within a browser, and one of its key features is th

www.nuget.org

 

 

 

 

 

 

'' 카테고리의 다른 글

자주 쓰는 크롤링 관련 코드  (0) 2023.10.16
코레일 크롤링  (0) 2023.10.16
네이버 사전 크롤링  (0) 2023.05.19
posted by 모카쨩

  • total
  • today
  • yesterday

Recent Post

저사양 유저용 블로그 진입