Commit Graph

29617 Commits

Author SHA1 Message Date
Brecht Van Lommel
2996f08f84 Cycles: first batch of windows build fixes, not quite there yet. 2011-05-03 18:29:11 +00:00
Brecht Van Lommel
170f8c8c41 Cycles: build without GLUT test app by default. 2011-05-01 10:00:21 +00:00
Brecht Van Lommel
e5d7a38a25 Cycles: fix build issue with Blender includes. 2011-05-01 09:19:45 +00:00
Brecht Van Lommel
774584d7e8 Cycles: hook up the CMake build system.
New build instructions for Ubuntu Linux in the wiki:
http://wiki.blender.org/index.php/Dev:2.5/Source/Cycles
2011-04-28 13:47:27 +00:00
Brecht Van Lommel
d263fee952 Cycles: fix for incompatible boost filesystem version, provided by "ornitorrincos" on IRC. 2011-04-28 11:53:29 +00:00
Brecht Van Lommel
791f6c94fb Cycles: fix for vector math node by Lukas Toenne, thanks. 2011-04-28 11:45:06 +00:00
Brecht Van Lommel
1484169c2f Cycles: another build fix. 2011-04-27 17:23:37 +00:00
Brecht Van Lommel
7b2a13aced Temporary build fix. 2011-04-27 16:56:06 +00:00
Brecht Van Lommel
4e235c184b Blender modifications for Cycles integration.
Some notes about code status:

* The Blender modifications were fairly quickly put together, much more code
  polish and work is needed to get this to a state where it can be committed
  to trunk. Files created with this version may not work in future versions.

* Only simple path tracing is supported currently, but we intend to provide
  finer control, and more options where it makes sense.

* For GPU rendering, only CUDA works currently. The intention is to have the
  same kernel code compile for C++/OpenCL/CUDA, some more work is needed to
  get OpenCL functional.

* There are two shading backends: GPU compatible and Open Shading Language.
  Unfortunately, OSL only runs on the CPU currently, getting this to run on
  the GPU would be a major undertaking, and is unlikely to be supported soon.
  Additionally, it's not possible yet to write custom OSL shaders.

* There is some code for adaptive subdivision and displacement, but it's far
  from finished. The intention is to eventually have a nice unified bump and
  displacement system.

* The code currently has a number of fairly heavy dependencies: Boost,
  OpenImageIO, GLEW, GLUT, and optionally OSL, Partio. This makes it difficult
  to compile, we'll try to eliminate some, it may take a while before it
  becomes easy to compile this.
2011-04-27 14:36:02 +00:00
Ton Roosendaal
da376e0237 Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later.
Cycles uses code from some great open source projects, many thanks them:

* BVH building and traversal code from NVidia's "Understanding the Efficiency of Ray Traversal on GPUs":
http://code.google.com/p/understanding-the-efficiency-of-ray-traversal-on-gpus/
* Open Shading Language for a large part of the shading system:
http://code.google.com/p/openshadinglanguage/
* Blender for procedural textures and a few other nodes.
* Approximate Catmull Clark subdivision from NVidia Mesh tools:
http://code.google.com/p/nvidia-mesh-tools/
* Sobol direction vectors from:
http://web.maths.unsw.edu.au/~fkuo/sobol/
* Film response functions from:
http://www.cs.columbia.edu/CAVE/software/softlib/dorf.php
2011-04-27 11:58:34 +00:00
Ton Roosendaal
6937800743 Initial branch for 'cycles' 2011-04-27 11:48:17 +00:00
Sergey Sharybin
da9d559f36 Fix #27176: Creating a new UV layer in edit mode fails to copy previous one
Implemented copying data from active MTFACE layer to newly created.
Also, fixed the same bug with vertex colors layer.
2011-04-27 08:35:03 +00:00
Campbell Barton
bc6828426d fix [#27174] World Starfield Generation causes crash
allow escaping from render if generating stars takes too long.
2011-04-27 08:32:20 +00:00
Campbell Barton
7a44c65ce3 fix [#27164] uv unwrap stretching 2011-04-27 07:36:34 +00:00
Campbell Barton
6e35c08356 comment regarding bug [#27175] UV faces show incorrect image in object mode (VBO's) 2011-04-27 05:12:07 +00:00
Campbell Barton
ee2ddfc58a remove normalize call in derived mesh GetNormal, its not done anywhere else. 2011-04-27 04:57:57 +00:00
Nicholas Bishop
1860c0c565 Fix for bug #26590, `Texture preview fails when path to custom brush
icon is set'

* Main problem was calling BKE_icon_changed too much, blocked previews
  from updating
* Also fixed clearing the icon when it's not a valid image path

Review link: http://codereview.appspot.com/4356045/
2011-04-27 01:16:24 +00:00
M.G. Kishalmi
f9cb8f80e7 fixed some issues with the new "shadow only + shading" code.
patch from MiikaH.
2011-04-26 15:29:12 +00:00
Joshua Leung
64a37fadf0 Adding support for adding copies of existing drivers to other animdata
blocks via PyAPI/RNA

For example:
ob = bpy.context.active_object # assumes default cube has some drivers
added already before running script
dst = bpy.data.objects["Camera"]

adt = dst.animation_data_create()
for driver in ob.animation_data.drivers:
    new_driver = adt.drivers.from_existing(driver)
2011-04-26 13:49:40 +00:00
Nathan Letwory
481aed1d0e Bump version for imminent 2.57b tag. 2011-04-26 12:24:08 +00:00
Campbell Barton
b12d46f73e - fix for player linking
- added notes to release todo's.
- renamed view3d view transform matching functions.
- added assert in edge split modifier to make a certain bug easier to spot.
2011-04-26 10:38:18 +00:00
Campbell Barton
e4cc1c3f2c fix [#27178] Material links lost when making mesh data local
- making local object data - Curve/Mesh/MBall lost references to linked materials.
- joining a linked mesh object into a local one lost the link.

As well as these reported bugs, checked all local functions for consistency/correctness and found other cases which would also fail.
- making local metaball didn't ensure unique ID name.
- make_local_armature() was missing check for object users - main body of code would never run.
- local particles didn't set the dupli-group or textures to extern.

checked all local functions for consistency/correctness.
2011-04-26 07:17:21 +00:00
Campbell Barton
461a7c5c81 fix [#26993] Edge Split Crash 2011-04-25 16:24:38 +00:00
Campbell Barton
7bedbde536 indentation changes only. 2011-04-25 16:02:53 +00:00
Thomas Dinges
d6e03d2c56 2.5 Interface:
* Implemented a new operator "WM_OT_properties_context_change" to switch to a different tab inside the properties window.
* This is used now inside the Modifier tab for Simulation Modifiers. Based on a mockup by Janne Karhu:
http://www.pasteall.org/pic/11261
http://www.pasteall.org/pic/11262

Rather than having a delete button there anymore, the button changes the context to Physics/Particles, where you can edit the settings and delete the actual simulation.
2011-04-25 13:47:15 +00:00
Campbell Barton
70d059161b workaround/fix [#27162] Running commands in python console crashes blender 2011-04-25 12:39:53 +00:00
Janne Karhu
739359faab Fix for [#27112] Boid Particles get Z clamped to 0.0 when "Allow Flighting"
* Boids that can only fly shouldn't care about ground unless there's actually a collision object below them.
2011-04-25 12:26:33 +00:00
Campbell Barton
f5ed60016c fix [#27139] Value Slider, some colours are two coloured 2011-04-25 11:52:42 +00:00
Campbell Barton
dd00e1f4c6 fix [#27121] Normals always recalculated when adding a mesh in Edit mode 2011-04-25 10:04:07 +00:00
Campbell Barton
16ba377026 fix for a crash with the following steps.
- open file sel
- save user defaults
- new file
- ctrl+u (crash)

wasn't type checking the space file, passed info space to ED_fileselect_exit().
2011-04-25 09:28:52 +00:00
Campbell Barton
bd80f19c22 fix [#27140] Negative Subdiv level in the operator panel.
when relative option is disabled, don't allow setting the subdiv value to a negative number.
2011-04-25 06:44:43 +00:00
Joshua Leung
8fec90e220 Displace Modifier - Optimisation Tweaks for jpbouza and ZanQdo
- When strength is 0, there's no need to perform any of the
calculations at all
- When the vertexgroup weight for a vert is set to 0, skip evaluating
the modifier for that vertex as it should result in no-change to the
final result
2011-04-25 06:27:32 +00:00
Campbell Barton
bdbf0abe60 rna api
- allow RegionView3D.view_matrix to be set.
- RegionView3D.view_rotation was inverted.
- add C function view3d_settings_from_mat()
note, intentionally removed NULL checks, double checked this is ok with callers.
2011-04-25 03:02:26 +00:00
Thomas Dinges
262eec84cd 2.5 UI scripts:
* Small cleanup of code and descriptions.
2011-04-24 20:59:19 +00:00
Campbell Barton
fd45310dfe fix crash [#27158] Appending crash with preview. 2011-04-24 14:45:49 +00:00
Campbell Barton
8fdebf24f4 harmless changes to quiet clang static check warnings.
- made EXPANDED_AGRP take bAnimContext as an argument.
- remove unneeded NULL check drawFacesColored functions.
- comment some vars which are set but not used.
2011-04-24 10:51:45 +00:00
Lukas Toenne
5c4743b9ee Another fix for node groups: Internal socket stack did not get complete initialization of the sockettype value, leading to wrong b/w outputs. 2011-04-24 05:13:35 +00:00
Sergey Sharybin
040a049fb1 Fix #27048: text + SimpleDeform modifier = weird render result!
It's not real fix, just patch which makes things better by using average
normal for each displist separately. There are still some artifacts with
quite highly deformed letters "O" or "g", but correct fix would need
to calculate derivative of modifiers, which isn't implemented yet.
2011-04-23 15:27:35 +00:00
Campbell Barton
d6d2f09dd9 quiet some clang warnings & fix for bugs in exceptional cases.
- ghost C api, BLI_get_folder_version() could assign garbage values.
- pointcache ptcache_find_frames_around() had a superfluous NULL check which would have crashed anyway if actually NULL.
2011-04-23 12:57:03 +00:00
Joshua Leung
7f56023e9b Bugfix [#27126] Ctrl 0/1/2/3/4 not working in edit mode
Keymaps for subdivision_set operator were only added for Object mode.
Since this is useful for meshes in particular, added these in EditMode
keymap for mesh editing too.
2011-04-23 11:20:30 +00:00
Joshua Leung
2060a26139 Bugfix [#27134] Minor bug in the name: property Constraint.is_valid
has label "Disabled"

"is_valid" RNA property for constraints had the property name
inverted, but the displayed name and tooltips were not inverted too
2011-04-23 11:13:36 +00:00
Joshua Leung
855a3e6ce3 Small type-tweaks (int being returned as float) 2011-04-23 11:09:24 +00:00
Sergey Sharybin
d730610457 Fix #26959: change selection of shapekeys in edit mode causes mesh deformity of a key
Vertex offset, which was used to update referenced keys was calculating between
editmesh (which represents shapekey data) and base mesh (ob->mesh) which represents
Bases key.

This commit fixes bug with incorrect ofsset calculation for case when some keys
got other (not Basis) keys as relative key by calculating offset using EditMesh
(new shapekey data) and keyblock data (which was used to create EditMesh when
entering edit mode).

This commit shouldn't lead to regressions, but maybe there's something else
which should be fixed for such kinda complicated cases -- more testing would
be welcome.
2011-04-23 09:25:34 +00:00
Sergey Sharybin
ef14d310a0 Sculpting on shapekeys
======================

All this work with sculpting on armatured/deformed mesh allowed to
implement sculpting on non-locked keys very easy -- just use the same
approach of propagating offsets from deformed PBVH to "sculpting layer".

- If key is locked, then old logic would be used.
- If there's multires modifier enabled, sculpting would happen on multires.
2011-04-23 09:07:46 +00:00
Sergey Sharybin
8ca9dc3cfe Send NA_EDITED notifier when changing tab width in text space properties
Now text editor refresh correct and there's no more glitches with messed up
syntax highlighting.
2011-04-23 08:52:27 +00:00
Lukas Toenne
f69825e8e8 Color info in node editor backdrop now supports color management. 2011-04-23 08:30:28 +00:00
Campbell Barton
176e45f88e fix for possible (but unlikely) crash.
added NULL check in case nodeAddNodeType() is given an invalid type or the dynamic node cant be found.
2011-04-23 08:02:29 +00:00
Campbell Barton
7faa531a62 fix for possible crash using an un-initialized pointer when getting a vertex weight from a non-mesh/lattice object. 2011-04-23 07:28:30 +00:00
Lukas Toenne
6b4cecc466 Fix for group output memory leak, bug #27104. This happens when an internal node in a group has multiple output buffers, but only some of them are used. Then all the buffers would be created, but the unlinked outputs were not correctly tagged for freeing after group execution. 2011-04-23 07:21:10 +00:00
Campbell Barton
25974319db skip pose slide if the RNA value isn't found. 2011-04-23 07:04:50 +00:00