Commit Graph

58616 Commits

Author SHA1 Message Date
Bastien Montagne 7a76b1a003 Fix T41661: Added to main repo graph, science_lab and softimage themes. 2014-10-08 12:03:38 +02:00
Campbell Barton efee3be1d3 Cycles: enable double promotion warning /w gcc 2014-10-08 10:58:40 +02:00
Campbell Barton a550d913bc Fix Python ray-cast failing to check hit direction 2014-10-08 09:47:41 +02:00
Sergey Sharybin 47b8bf591c Fix more issues after recent context commit 2014-10-08 04:15:51 +06:00
Campbell Barton be3a6d78e8 Cycles: reduce float/double conversions 2014-10-08 00:13:26 +02:00
Campbell Barton e2522b4a29 Cycles: correct math wrappers
include the parens around value before cast,
in some cases was causing double/float promotion by only casting the left value.
2014-10-08 00:13:26 +02:00
Sergey Sharybin 9245e1aeb8 Fix compilation error after recent commit 2014-10-08 04:11:23 +06:00
jens verwiebe 05e26297bf OSX: adapt fs_menue to modern entries handling 2014-10-07 23:45:09 +02:00
Bastien Montagne e36cc29a69 Fix T42137: Keymap editing is broken
Own mistake in previous fix here, was too greedy in finding an existing kmi of UserPref add diff kmi, we only want
to ignore exact same kmi's here.
2014-10-07 23:39:56 +02:00
Bastien Montagne 8f1cdc1949 Fix bplayer linking after recent addition of glew_mx. 2014-10-07 23:28:28 +02:00
Bastien Montagne 32b5fb351a We need libglewmx too, now. 2014-10-07 23:14:43 +02:00
Jason Wilkins 8d084e8c8f Ghost Context Refactor
https://developer.blender.org/D643
Separates graphics context creation from window code in Ghost so that they can vary separately.
2014-10-07 15:47:32 -05:00
Campbell Barton a8705e99ee Sculpt: minor speedup for dyntopo
Add retake to range-tree to avoid double lookup.
2014-10-07 21:02:08 +02:00
Campbell Barton 37474e50ce Cleanup: use bool 2014-10-07 20:40:11 +02:00
Campbell Barton 22e9f4f838 Sculpt: dyntopo, avoid redundant gset remove calls 2014-10-07 20:26:17 +02:00
Campbell Barton d5e300e14d Paint: add debug print to time strokes 2014-10-07 20:20:19 +02:00
Sergey Sharybin 26083d5de5 Partial fix of T42052: Clip editor does not support Continue zoom style 2014-10-07 17:24:48 +02:00
Campbell Barton 1519b6a23e Icons: were relicensed to GPL2+ metadata was CC-NC 2014-10-07 16:59:27 +02:00
Campbell Barton 0259864c15 Call python3 explicitly from tgz util 2014-10-07 16:49:22 +02:00
Sergey Sharybin 409b3c9c9c Fix T42106: Box image mapping shows black triangles if they point to a corner and blend is 0
After discussion with cambo here we decided it's better to choose arbitrary side of the box
(in this case it's X-axis) and use image from it. That's better than doing a blackness.

P.S. This is literally a corner case anyway.
2014-10-07 15:48:39 +02:00
Sergey Sharybin 1a7b7bb74e Allow render engine to declare whether it's capable of the texture rendering or not
If render engine has bl_use_texture_preview set to truth blender wouldn't fallback to
the blender internal rendering for previews.
2014-10-07 14:22:37 +02:00
Campbell Barton 2d83108f93 Cleanup: redundant casts 2014-10-07 14:20:33 +02:00
Campbell Barton 7880f75e87 Cleanup: use bool 2014-10-07 14:04:39 +02:00
Sergey Sharybin 025955e549 Fix T41957: Shadow color texture mapping was using wrong factor 2014-10-07 12:30:54 +02:00
Antonis Ryakiotakis d7a1b09f85 Cleanup to previous commit, we can reuse set_rgb instead of new function 2014-10-07 11:12:00 +02:00
Antonis Ryakiotakis 14c57b6c78 Fix T42074, textured lamps influncing other layers
The solution is to do the multiplication with the energy in the shader
after texture application.

We might be able to avoid setting dyncol completely, but this needs
better investigation. Some shader paths also look a bit redundant.

Also, texture mapping is not supported very well for light lamps, might
also need investigation.
2014-10-07 11:06:53 +02:00
Campbell Barton 5e809c45ed Fix T4199: Knife holes in concave ngons failed
BM_face_point_inside_test assumed the face center was inside the face.
2014-10-07 10:09:19 +02:00
Campbell Barton 4c60aae66c Cleanup: warnings 2014-10-06 23:19:07 +02:00
Campbell Barton cc02f929f9 Cleanup: style 2014-10-06 23:19:07 +02:00
Campbell Barton 15d2ab6812 RNA: id enum was incomplete 2014-10-06 23:19:07 +02:00
Bastien Montagne 0d8a007c69 Fix T42088: Creating new keybinds can cause duplicates when saving key config profile
When patching a keymap with a 'UserPref' diff one, do not add keymap items from diff
if they already exists in patched keymap.
2014-10-06 22:08:37 +02:00
Bastien Montagne b4860de6f1 One more bplayer infamous stub fix! 2014-10-06 20:28:21 +02:00
Antonis Ryakiotakis c03951da14 Texture painting:
Do not generate materials/images/UVs if they are missing.

Now we spawn a panel ("Missing Data") with operators to generate the missing data and
pop a warning if user tries to paint without them.

The reason we have reverted this is that it is too easy to end up with more textures
than we wanted. It was impossible to enter texture paint without having textures added,
and code makes too many assumptions about what user may want.

Discussed during Sunday's meeting.

This might be a candidate for 2.72a but I'm not sure how other artists will take this
(and how refined and crash-free it is), better make a few iterations first.

And for interested parties...test please, don't wait until after a release to poke with such issues.

Also, add slot operator now adds a new unconnected image node in cycles. Only
used in the "Missing Data" panel. This should be a separate commit but I am squashing it into the same commit because
it relies too much on changes done here and can be reverted easily if complainstorm occurs again.
2014-10-06 20:10:12 +02:00
Campbell Barton 1f4915e290 Cleanup: avoid alloc for each knife-project vector 2014-10-06 18:23:44 +02:00
Sergey Sharybin 4a763e1c68 Compositor; Explicitly specify inline function 2014-10-06 22:15:35 +06:00
Bastien Montagne 29bb5f9a69 Fix Cycles crashing with previous own commit.
Behavior with NULL context was wrong.
2014-10-06 18:00:56 +02:00
Bastien Montagne 8cb1b35bee Fix T40350: Some texture prop did not have visual feedback they were driven.
This is only a (hacky) partial fix, actually, since `RNA_property_animated()` will still
not work in those cases... Better that than nothing, though.

Thanks to Campbell for review.
2014-10-06 17:08:24 +02:00
Campbell Barton 0e7d4a828a Fix T4201: AVI Broken when width not multiple of 4 2014-10-06 16:41:15 +02:00
Campbell Barton c0e3540898 Fix in-between mouse events getting assign to keys 2014-10-06 16:41:15 +02:00
Sergey Sharybin 247b869967 Compositor: implement OpenCL backend for gaussian blur
Pretty much straightforward change which gives around 30%
speedup on my laptop and around 2x speedup on desktop in
the BI (which uses gts580). Tested with huge blurs (like
10% of blur) which was rather common during Caminandes.

For now OpenCL is only limited for blur size more than
100 pixels.

This is a bit experimental still, feedback is welcome.

Reviewers: jbakker, lukastoenne

Subscribers: ton

Differential Revision: https://developer.blender.org/D576
2014-10-06 16:21:37 +02:00
Sergey Sharybin a9521c428e Correction for wrong ifdef in creator 2014-10-06 14:54:58 +02:00
Campbell Barton 81c4c29504 Fix T42075: DnD Material not updating render view 2014-10-06 14:08:47 +02:00
Campbell Barton 471a011122 Cleanup: remove old preview code 2014-10-06 14:08:41 +02:00
Sergey Sharybin 939fa6759c Cycles: Fix for camera-in-volume detection
Ray actually should have infinite length, so we can detect camera in a volume
which is bigger that the far clipping of the camera.

This might also give some speedup (wouldn't expect much tho) because we don't
need to re-calculate ray direction and length after every bounce now.
2014-10-06 12:36:46 +02:00
Sergey Sharybin 233de800e2 Cycles: Optimize of volume stack update when sampling SSS
basically we skip all non-volume objects now in the volume stack function.
Depending on the show it might give some percent of speedup.

Most of the speedup would be gained in the scenes when having SSS object
intersecting the volume and taking a reasonable amount of frame space.
2014-10-06 12:36:46 +02:00
Sergey Sharybin b36eb51d37 Cycles: Fix for viewport rendering with debug enabled 2014-10-06 12:36:46 +02:00
Sergey Sharybin cd6129d1ff Cycles: Workaround dead-slow expf() on 64bit linux
Single precision exponent on 64bit linux tends to be order of magnitude slower
than double precision version even with single<->double precision conversion.

Some feedback in the mailing lists also suggests that logf() is also slow, but
this i didn't confirm here in the studio yet.

Depending on the shader setup it gives ~3% with the secret agent shot and up to
around 15% with the bmw scene here.
2014-10-06 12:36:46 +02:00
Sergey Sharybin 1f1dcdfd76 Cycles: Move system headers include to the top of the files
This is a good practice to do anyway, plus it'll help with the upcoming change.
2014-10-06 12:36:46 +02:00
Campbell Barton b15d9ecb6d Cleanup: remove paranoid NULL checks 2014-10-06 12:23:47 +02:00
Campbell Barton 9cfcddc8f4 Dyntopo: minor speedup collapsing edges 2014-10-06 12:16:06 +02:00