Make scene background color as default instead of current blue color (0,
0, 255). Very useful for mirrors setups.
Details
- Reviewers
Sybren A. Stüvel (sybren) Benoit Bolsee (ben2610) Porteries Tristan (panzergame) Thomas Szepe (hg1) Mitchell Stokes (moguri) - Commits
- rBSdc95ca92ca22: BGE: Fix T43822 Videotexture does not use sky color for off-screen rendering
rBdc95ca92ca22: BGE: Fix T43822 Videotexture does not use sky color for off-screen rendering
Diff Detail
- Repository
- rB Blender
Event Timeline
| source/gameengine/VideoTexture/ImageRender.cpp | ||
|---|---|---|
| 80 | It's only for python getter at initialization ? | |
| source/gameengine/VideoTexture/ImageRender.cpp | ||
|---|---|---|
| 80 | yes, it is. | |
| source/gameengine/VideoTexture/ImageRender.cpp | ||
|---|---|---|
| 80 | This is a dupli code, can you write a function like "SetBackroundFromWorldColor" ? which take as argument the scene or the world info. | |
| source/gameengine/Ketsji/KX_WorldInfo.h | ||
|---|---|---|
| 91 | How you want to write this methode as private ? it used in ImageRender, if you want safety the best is : | |
| source/gameengine/VideoTexture/ImageRender.h | ||
|---|---|---|
| 61 | Maybe, I can reuse the SetBackGround(KX_WorldInfo* wi); that it is not used? | |
| source/gameengine/VideoTexture/ImageRender.h | ||
|---|---|---|
| 61 | I think SetBackGround() and SetWorldSettings() are relict's, and should be delete with the next cleanup. | |
- move setBackground to SetBackGround reusing unused function that it seemed destined for this purpose
Looks good to me.
| source/gameengine/VideoTexture/ImageRender.h | ||
|---|---|---|
| 103 | New style would be void SetBackGround(KX_Scene *scene); | |