Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 4826 / 5574

Revision ecde558 by Matt Ebb
November 19, 2008, 03:15 (GMT)
Started work on an updated UI theme
November 19, 2008, 02:07 (GMT)
bicubic_interpolation - dont use pow(val, 3.0f) at all, do (val*val*val) instead,
Tested overall speedup is about 5x when scaling 4096x4096 -> 4000x4000 in the sequencer.

There were some artifacts in the resulting image but double checked and the old code gives the same problems.
Added back old code with #if 0's since its a bit more readable.
November 18, 2008, 13:51 (GMT)
Some improvements brecht suggested, only noticable change is faster multithreading

General optimizations
* Precompute 1/x when dividing by x multiple times.
* Use float constants like 0.0f instead of 0.0, avoids conversions from float to doubles and back.

ProjectPixel
* make pixel (and similar pointers elsewhere) a union with a float and unsigned int pointer to reduce the number of casts a little. generally there are a lot of casts going on in the code, makes it hard to read.

project_paint_begin()
* the perspective case checks with (*projScreenCo)[3] > 0.001) for faces behind the view. - Changed to use the clip start from get_view3d_viewplane
* removed arbitrary check for brush size to disable threads.

imapaint_paint_sub_stroke_project()
* Make clone tool use IMB_blend_color to reduce the code and support blend modes.

imapaint_paint_sub_stroke_project_mt()
* Make threaded and non threaded mode use same function (just dont start threads when its set to 1)
* removed PIL_sleep_ms, was not needed and slowed down threading (my bad!, was copied from bake code).


November 18, 2008, 13:51 (GMT)
Cleanup of area-rip operator

- moved from WM to Screen code (it uses active area)
- less code :) result of cleaning some calls
- added WM_window_open() to WM API for this
- now opens new window on top of area, and leaves old screen unaffected
(simple, atomic, the 'do not think for user' convention :)

November 18, 2008, 10:57 (GMT)

RNA minor changes
* Added start of lamp wrapping (code by Michael Fox).
* Add back Object.data, was crashing with unknown data type.
* Added support for using consecutive variables like float r, g, b;
as an array without writing a manual get/set function.
* Also note the RNA documentation is updated now to be more
about how to define RNA and use it, including some diagrams.

http://wiki.blender.org/index.php/BlenderDev/Blender2.5/RNA

November 18, 2008, 05:47 (GMT)
some scons command line args were not working since recent changes-
scons CCFLAGS="-O0 -ggdp3"
for example would pass on the args including the "'s to scons, causing the build to fail.
November 18, 2008, 03:28 (GMT)
Added option to use another UV layer as a clone source, to paint from one uv layer's image and UVs into the active layer.
Revision e5b5110 by Matt Ebb
November 18, 2008, 01:53 (GMT)
* Exclude volume materials from AO
November 18, 2008, 00:17 (GMT)
* Added buttons for accessing options "occlude", "backface cull" and "bleed", note that bleed is 0.0 by default, before it was always 2.0;
* use a faster method of getting a pixels screenspace location.
* check if its possible to break out of pixel to bucket/face intersection early - ~7% overall speedup (ignoring redraw time).
* removed scanline intersection function (added back incase they were needed but it looks like there not)
* speedup for painting with only 1 image (use a loop without context switching checks)
* more commenting + cleanup
November 17, 2008, 23:02 (GMT)
Fix leak on exit (it's not a real fix, still uses silly global mem)
November 17, 2008, 22:19 (GMT)
merging trunk 17457:17485
November 17, 2008, 22:13 (GMT)
QuatOne was so wrong is would make Hamilton cry.

Thankfully, very little code used it, the only exception being the retarget code in etch-a-ton.
November 17, 2008, 21:11 (GMT)
Template retarget now works with normal conversion (not in Quick mode that is).
November 17, 2008, 21:03 (GMT)
Use grease pencil manhattan distance threshold for strokes.
November 17, 2008, 20:38 (GMT)
New option for roll correction.

Calculate new roll based on the angle to the normal of the joint (cross produce of the two bones).

This works best in some cases but not in others, so it's an option for now.

I'll have to see if I can iron the left over kinks, then it can be made the default (with Align to view an added option).
November 17, 2008, 18:54 (GMT)
2.5 getting-back-into-coding commit :)

- cleaned up join and split operations. Most noticable is operator callback
design, which should make a design based on user-less exec() first, then
wrap invoke() and modal() around it. The exec() should be callable with
only Context and properties.

- split now works again; and inversed as previously, if you drag from a
triangle (action zone) inside area it subdivides area as expected.

- dragging from triangle outside area, over an edge, joins areas

- split has been simplified, it had too many options... it could just work
simpler (now)

- 'action zone' now is an operator itself, a widget sending an ACTIONZONE event,
which can be handled by others (so other gestures can be added in action zone
too)


Still evaluating:
- context gets set where?
- code structure confuses... what are proper functions for operators?
- what is WM... should low level screen stuff more there?
- when do you send event, notifier?
- files grow to large, will clean


Oh yeah and docs, docs, docs. Coming! :)

November 17, 2008, 18:44 (GMT)

RNA
* Added support for ID properties, mapped as follows:
* IDP Int = RNA Int
* IDP Float, Double = RNA Float
* IDP_String = RNA String
* IDP Group = RNA IDPropertyGroup Struct
* IDP_Array = RNA Array

* PropertyRNA and StructRNA are now defined private for the module,
to force external code to always use accessor functions.

November 17, 2008, 10:43 (GMT)
Added BF_PROFILE_LINKFLAGS, Compiling with BF_PROFILE=1 was also throwing a python error.
November 17, 2008, 00:54 (GMT)
Fix compilation on OS X

Patch by dfelinto
November 16, 2008, 23:52 (GMT)
DXF-Importer: updated version v1.12 - 2008.11.16 by migius
- remove try_finally: cause not supported in python <2.5
- add Bezier curves bevel radius support (default 1.0)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021