Blender Git Loki

Kaikki Blender Git kommitit.

Page: 4900 / 8462

April 22, 2015, 07:18 (GMT)
Merge branch 'cycles_memory_experiments' into gooseberry
April 22, 2015, 07:17 (GMT)
Cycles: Typo in triangle storage tooltip
April 22, 2015, 06:59 (GMT)
reduce VRAM usage for flat normals

Reduce number of GL verts from (3 * tess_tri_ct) to (1 * loop_ct).
Attribute data formats unchanged.

stock Suzanne mesh
507 verts, 1005 edges, 500 polys, 500 faces, 1968 loops

mode = NORMAL_DRAW_FLAT

(3 * tri_ct) verts, vec3s normals (+padding)
GPUx batch size: 63886 bytes

(3 * tri_ct) verts, vec3s normals (no padding)
GPUx batch size: 58080 bytes

loop_ct verts, vec3s normals (+padding)
GPUx batch size: 45166 bytes

loop_ct verts, vec3s normals (no padding)
GPUx batch size: 41232 bytes
April 22, 2015, 06:26 (GMT)
Cleanup: pep8, spelling
April 22, 2015, 06:15 (GMT)
Fix T44470: File Selection sometimes surpresses last Character.

Tweak hack of `file_draw_string()` (there may be better solution, but not worth
spending time on this, the whole filebrowser drawing code is to be rewritten anyway).
April 22, 2015, 06:13 (GMT)
reduce VRAM usage for loop normals

Use GL_SHORT instead of GL_FLOAT for normal attribute. Savings scale
proportional to loop count.

stock Suzanne mesh
507 verts, 1005 edges, 500 polys, 500 faces, 1968 loops

mode = NORMAL_DRAW_LOOP

vec3f normals
GPUx batch size: 53040 bytes

vec3s normals (+padding)
GPUx batch size: 45166 bytes

vec3s normals (no padding)
GPUx batch size: 41232 bytes
April 22, 2015, 05:54 (GMT)
Fix T44475: Merge option of Mirror Modifier behavior reversed.

Glitch in rB57d9badc.
April 22, 2015, 05:23 (GMT)
determine normal draw mode better

based on auto smooth, how many faces are flat vs. smooth, and viewport
overrides.
April 22, 2015, 02:01 (GMT)
fix compiler warnings (gcc 4.9)
April 21, 2015, 21:33 (GMT)
Logic Editor: Buttons for moving game properties up/down

D1163 by @panzergame, with minor edits by me (@Severin)
April 21, 2015, 21:17 (GMT)
Mesh drawing: loop normals

Looks good, matches existing viewport.

Still room for size optimization here and with flat shading.
April 21, 2015, 21:10 (GMT)
Tracking: Add missing plane track remapping when joining two point tracks
April 21, 2015, 21:10 (GMT)
Tracking: Cleanup, move some plane tracks code to utility functions
April 21, 2015, 20:41 (GMT)
BGE: scene.pre_draw_setup[] callback

This callback allows the user to change the camera data right before the
rendering calculations.

scene.pre_draw[] is not enough here, because if you want to change the
camera matrices (projection/modelview) the culling test is done before
that (after pre_draw_setup[] though).

Reviewers: moguri, campbellbarton

Differential Revision: https://developer.blender.org/D1251

Python sample code using this. The sample scene would need a default
camera (not used for rendering), a dummy camera ('Camera.VR'), and two
cameras ('Camera.Left', 'Camera.Right') that will be used for the actual
rendering.

```
import bge

def callback():
scene = bge.logic.getCurrentScene()
objects = scene.objects

vr_camera = objects.get('Camera.VR')

if bge.render.getStereoEye() == bge.render.LEFT_EYE:
camera = objects.get('Camera.Left')
else:
camera = objects.get('Camera.Right')

vr_camera.worldOrientation = camera.worldOrientation
vr_camera.worldPosition = camera.worldPosition

def init():
scene = bge.logic.getCurrentScene()
main_camera = scene.active_camera
main_camera.useViewport = True

scene.pre_draw_setup.append(callback)

objects = scene.objects
vr_camera = objects.get('Camera.VR')
vr_camera.useViewport = True
vr_camera.setViewport(
0,
0,
bge.render.getWindowWidth(),
bge.render.getWindowHeight() )
```
April 21, 2015, 20:36 (GMT)
Tracking: Fix over-allocation in plane track's point tracks pointers when removing point track
April 21, 2015, 19:55 (GMT)
Fix T44474: Rotation manipulator not hidden completely with all axes
locked

Really doesn't look like a bug on a first glance but the line of code
that was there previously seemed to be there to prevent the manipulator
from drawing in this case.
April 21, 2015, 19:37 (GMT)
BLI_string: add BLI_snprintf_rlen

use when the length of the destination string is needed.
April 21, 2015, 19:10 (GMT)
Revert "bge: scene.pre_cull[] callback, test build"

This reverts commit a31773c7316d6e7644c019246c17887e28addb88.
April 21, 2015, 19:10 (GMT)
bge: scene.pre_cull[] callback, test build
April 21, 2015, 19:10 (GMT)
Merge remote-tracking branch 'origin/master' into experimental-build
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021