利用者:SaphireS/gsoc2016/notes

提供: wiki
< 利用者:SaphireS‎ | gsoc2016
2018年6月29日 (金) 06:16時点におけるYamyam (トーク | 投稿記録)による版 (1版 をインポートしました)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索

Notes

Papers/Articles - Bin Packing

We're looking for an algorithm for 2D nested bin packing of irregular shapes. Approaches to investigate include simulated annealing, genetic algorithms and lots of heuristics.

  • Also worth to take a look at 1bit bitmap based packing algorithms since with UVs you're dealing with pixel-based data most of the time anyway.

Coding Style

https://wiki.blender.org/index.php/Dev:Doc/Code_Style

Blender Developer Tools repository: https://developer.blender.org/diffusion/BDT/

Wiki page: https://wiki.blender.org/index.php/Dev:Doc/Tools/Blender_Tools_Repo

Python coding style checker, IRC snippet:

17:12:46 - howardt: there's a python program that checks if you followed the rules. not sure if it is mentioned on that page.
17:13:15 - howardt: in source/tools, run something like this:
17:13:27 - howardt: python3 tools/blender-dev-tools/check_source/check_style_c.py blender/editors/uvedit
17:13:56 - howardt: i'm not sure if the blender-dev-tools/check_source is in the main blender tree or is a separate git checkout
17:14:22 - howardt: that command checks all the files in the directory named as the last parameter
17:18:17 - howardt: i think there's a python package you may have to install on your computer in order to get that script to work
17:19:41 - howardt: yeah, it is called pygments (a parser)

General info

https://wiki.blender.org/index.php/Dev:Doc/New_Committer_Info https://wiki.blender.org/index.php/Dev:Doc/Tools/Git#How_to_push_changes

UV code tasks (outdated but still useful information in there): https://wiki.blender.org/index.php/Dev:Source/Textures/UV/Unwrapping

Faster Builds

To get Blender to build faster (especially faster incremental rebuilds) there is a make lite make target which can be used. This disables installing a lot of dependencies and also build Blender without physics & sims or Cycles rendering, so be aware of that if you intend to work in these areas!

It is mentioned in brief here: https://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Windows/msvc/CMake#Automatic_CMake_Setup

11:59:32 - SaphireS: I see there's a "lite" make target, is that recommended for faster builds? (I'm only working in uvedit area)
12:02:38 - ideasman42: SaphireS, yes, you can use for a lot of development
12:02:57 - ideasman42: OTOH. you can just disable options for your existing build too
12:03:51 - ideasman42: if you already have a dev env setup, disable all WITH_*, except for WITH_PYTHON
12:04:09 - ideasman42: WITH_SYSTEM_* you can leave on too