SlideShare a Scribd company logo
1 of 30
Download to read offline
UE4 の『 Bone の回転バグ』を直して
プルリク投げた話
らりほま
2016/10/21 第 6 回 UE4 よちよち勉強会
2
Boneの回転バグとは?
3
https://issues.unrealengine.com/issue/UE-15388
4
バグの概要
●
FBX を
●
Skeletal Mesh として Import する際に
●
Scale を変更すると
●
Persona で Bone を回したときに
●
回転量がおかしくなる
5
バグの概要
●
FBX を
6
バグの概要
●
Skeletal Mesh として Import する際に
7
バグの概要
●
Scale を変更すると
8
バグの概要
●
Persona で Bone を回したときに
9
バグの概要
●
回転量がおかしくなる
10
バグの概要
●
回転量がおかしくなる
11
バグの概要
●
Scale を増加させるほど回転量が減少する
●
ぶっちゃけそんなに困るバグではない
– Blueprint での回転処理は正常
– 困るのはリターゲット基底ポーズ調整時のみ
●
でも気になる
– UE4.7 のときには既に存在
12
直そう!
13
エンジンの
ソースコードのどこで
回転処理を行っている?
14
それっぽいところに
ブレークポイントを
仕掛けて探そう!
15
エンジンデバッグの注意点
●
ソリューション構成を
Debug Editor にしてビルドする
16
エンジンデバッグの注意点
●
ブレークポイントは
プロジェクトのソリューションに置く
( エンジンのソリューションではない )
17
エンジンデバッグの注意点
エンジン
プロジェクト ( ブレークポイントはこっちに置く )
( ここでエンジンの起動が終了 )
18
エンジンデバッグの注意点
●
参考: alwei さんのブログ記事
– UE4 VisualStudio を使ってエンジンをデバッグする -
Let's Enjoy Unreal Engine
http://unrealengine.hatenablog.com/entry/2
014/08/22/215802
19
回転処理を行う
コードを見つけた!
20
問題の回転処理
●
Engine/Source/Editor/Persona/Private/EditModes
/SkeletonSelectionEditMode.cpp
21
Scaleに応じて
回転量が変化する
というバグなので…
22
Scaleを考慮した計算に
なってしまっている
部分を探そう!
23
問題の回転処理
●
Engine/Source/Editor/Persona/Private/EditModes
/SkeletonSelectionEditMode.cpp
24
問題の回転処理
●
EngineSourceRuntimeCorePublicMathTransf
ormVectorized.h
25
Scaleを考慮しない
計算にするには…
26
問題の回転処理
●
EngineSourceRuntimeCorePublicMathTransf
ormVectorized.h
– TransformVector 定義の下に
TransformVectorNoScale
( Scale を考慮しない版 ) の定義が存在
27
TransformVector
↓
TransformVectorNoScale
28
たった 7 文字 (“Noscale”)
追加するだけで (たぶん) 解決!
ボキッ
29
pull request の流れ
●
fork→clone→pull request 用 blanch 作成
→ ( 修正 )→add→commit→push
→pull request
30
取り込まれるといいな…
ここまで書いておいて reject されたら恥ずかしい (*ノ▽ノ)

More Related Content

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

UE4 の『Bone の回転バグ』を直してプルリク投げた話