Commit Graph

179 Commits

Author SHA1 Message Date
Martin Poirier
f3c0743b41 NetRender:
- multires cache files and image .tex cache support in dependency list
- Compare md5 of files before using a local copy (not one transfered by netrender). Could be changed to a simpler CRC if speed is an issue. The goal is not to have a strong crypto signature but just to detect outdated local files.
- Reduce slave timeout to 5 minutes (down from 30). Slaves should report at most every 30s, there's no reason for a value to be that high.
- Reorder the presentation tables on the main web page (job list is more important)
- Collapse dependency list by default on job page (only show main file and headers for other files, point cache and fluid cache)
- Slave option (default: True) to also output render log to the console (as well as the usual copy to the master)
2010-04-28 01:54:12 +00:00
Martin Poirier
061a306d66 NetRender tweaks by Brecht
* Client connection is made from panel poll functions even if
netrender is disabled
* Network render slave should print when it has connected to server,
now it says "node initiation", I initially thought this meant it was
not connected yet.
* Web interface should auto-refresh, I got confused if job and slaves
were actually found or not.
2010-04-27 03:14:40 +00:00
Campbell Barton
873d4a3f05 py api
- mathutils.Color.hsv attribute. eg. material.diffuse_color.hsv = 0.2, 0.8, 0.4
- Vector/Euler/Quaternion/Color now only take a single seq arg.
- internal function for parsing arrays. (cleanup messy internal list/vector/tuple/seq parsing)
- didnt update rigify yet.
2010-04-25 19:27:59 +00:00
Daniel Genrich
13e0d584c0 Python API fix: Add COMPAT_ENGINES to properties_data_camera 2010-04-19 11:24:22 +00:00
Daniel Genrich
6bc2eb1949 Python API fix: Make properties_texture compatible with COMPAT_ENGINES, also a little enhancement for data_mesh (thanks to Matt) 2010-04-19 00:39:46 +00:00
Daniel Genrich
6cdf29e1c9 Python API: Make properties_data_mesh compatible with COMPAT_ENGINES. (supervised by Matt ;) 2010-04-18 23:52:37 +00:00
Campbell Barton
67cfc427ee PyAPI
- added new mathutils.Color() type, use with rna so we can do for eg:
 material.diffuse_color.r = 1.0
 # also has hsv access
 material.diffuse_color.s = 0.6

 - made Mathutils and Geometry module names lowercase.
2010-04-11 14:22:27 +00:00
Brecht Van Lommel
9498121463 Object API changes so these functions now require a scene as first argument:
create_mesh, create_dupli_list, make_display_list and is_visible.

This is done in order to make these context independent as the RNA API should
be as much as possible, and to fix #21297 and #21719, where there was an
assumption from these functions that there is a scene in the context, which
does not work for external render engines exporting in a separate thread.

Also avoided using context in a number of other functions, ideally only UI/WM
type functions should use context.

I've updated the scripts in trunk, but the addons and external ones in
development will need updates too.
2010-04-06 01:28:39 +00:00
Matt Ebb
5478384761 Fix [#21886] OBJ export crashes if attempted while in edit mode
Didn't crash for me, but did export incorrectly since editmode changes weren't flushed.
Fixed this by setting all exporters to go back to object mode before exporting.

Also cleaned up some naming in exporter creator strings, it's "Blender" not "Blender3D".
2010-04-05 06:45:44 +00:00
Campbell Barton
bc149e0fbe pep8 cleanup 2010-04-04 14:52:15 +00:00
Daniel Salazar
8ab985a816 Patch #21892 by Ruslan M (luciofulci): Removing 16 materials per mesh
limit from OBJ import script. Also made split materials off by default
2010-04-03 05:20:58 +00:00
Campbell Barton
9105f6f0bd rna naming, *_frame --> frame_* 2010-04-01 21:44:56 +00:00
Campbell Barton
c19725b266 svn merge https://svn.blender.org/svnroot/bf-blender/branches/render25 -r27895:27901; svn merge https://svn.blender.org/svnroot/bf-blender/branches/render25 -r27902:27907, skipping 27902 2010-03-31 20:39:08 +00:00
Brecht Van Lommel
71446eea57 * Multiply for panorama cameras
* Some cases of struct name being set where it shouldnt have been.
* Spelling: wich --> which
* Copy and initialize uv modifier scale, remove unneeded enum.
* Ability to pin any object into the context.
* Update uv window while transforming (useful when used with UVProject modifier)
* Patch by Wahooney, so new template's are internal text and dont get saved over
  by mistake.
* Fix for https://bugzilla.redhat.com/show_bug.cgi?id=572186
  Bug 572186 - [abrt] crash in blender-2.49b-5.fc12: Process
  /usr/bin/blender.bin was killed by signal 6 (SIGABRT). Original fix submitted
  by Jochen Schmitt.
* [#21816] bpy.data.add_image has stopped working on Windows. moved to
  bpy.data.images.load(), missed this call.

(commits 27726,27825,27828,27831,27832,27833,27834,27836,27837,27838,27839,27858 by Campbell from render25 branch)
2010-03-30 12:15:16 +00:00
Martin Poirier
c4f0a07267 Netrender: Fix for API changes (it would be nice if people at least fixed built-in script when breaking things)
Also force post process off. 

This is a partial fix for Bug [#21410], there is still the problem that loading back multilayer exr as render results doesn't load the composited result correctly (bug is assigned to Brecht). The results are still ok when downloaded outside of the render engine, so there's a work around for now.
2010-03-28 20:46:25 +00:00
Brecht Van Lommel
17777e7cd1 Fix #21561: .ply exporter doesn't export normals. 2010-03-27 14:54:22 +00:00
Brecht Van Lommel
3d5954604d Fix #20716: using wavefront .obj exporter multiple times could crash
because references to materials from previous exports were not cleared.
2010-03-27 11:20:27 +00:00
Campbell Barton
391cc2d004 merge own commits into render branch into trunk since 27560
27562, 27570, 27571, 27574, 27576, 27577, 27579, 27590, 27591, 27594, 27595, 27596, 27599, 27605, 27611, 27612, 27613, 27614, 27623
2010-03-20 16:41:01 +00:00
Brecht Van Lommel
4a2efe0822 no need to include the setting names in enum items
(commit 27539 by Campbell from render25 branch)
2010-03-16 18:22:55 +00:00
Brecht Van Lommel
056972a97f minor changes to rna names for consistancy
(commit 27445 by Campbell from render25 branch)
2010-03-16 17:42:58 +00:00
Arystanbek Dyussenov
a44f9a6df4 Fix #21224, "FBX export has object translation issues".
Reversed the order of all matrix multiplications to confirm to API change.
2010-03-12 16:50:52 +00:00
Martin Poirier
4faedb3d91 netrender:
sensible timeout on connection attempt
fix for operator api change
2010-03-12 03:12:27 +00:00
Arystanbek Dyussenov
ce747a1c26 Fix #21550, "FBX Exporter doesn't make faces". Exporter incorrectly accessed vertex indices. 2010-03-11 15:28:22 +00:00
Campbell Barton
d0e0f6dea3 move render operators into their own files, render_internal.c & render_opengl.c, rather then have them in the screen module.
also rename render operators SCREEN_OT_ --> RENDER_OT_
2010-03-08 16:36:53 +00:00
Campbell Barton
7c0d2ffb64 pep8 cleanup 2010-03-06 01:40:29 +00:00
Campbell Barton
aec7174a42 fix for OBJ exporting Texface images 2010-03-02 14:57:28 +00:00
Martin Poirier
769eb45124 NetRender: Use threading mixin for master server. See if it solves latency issues that some people are having (always keep the stdout log from the master/client/slaves if you are reporting an issue). 2010-02-27 22:07:38 +00:00
Campbell Barton
bbf6dde277 rna/py api
rename image.save() --> image.save_render() because it uses render settings for saving.
added image.save() which is like pressing save in the image view, saving to the images path and removing the dirty flag.
2010-02-26 12:28:44 +00:00
Martin Poirier
d616286ffb Adding back decorator (metaclass registration not in trunk yet) 2010-02-26 12:15:15 +00:00
Campbell Barton
878d8b44ee remove rna functions image.get_export_path() and image.get_abs_filename(), filename functions should not be spesific to images.
rename BKE_get_image_export_path() to BKE_rebase_path() and take a filename arg rather then an image.

obj export file copy was also not working because of a missing import.
2010-02-26 11:50:59 +00:00
Martin Poirier
59e2fdbf31 Netrender: check if library and image files exist before adding as dependency. 2010-02-26 02:37:31 +00:00
Campbell Barton
de78240e1e [#21324] mdd import script ported to 2.5
2.4x port by Ivo Grigull (loolarge) 

from the tracker:

It should be working ok, but it does not have all options that the old script had. You can only specify the start frame
where to insert the animation, but not skip frames for have a different fps.

However, like the old script this will bloat the memory a bit, at some later point i would like to write a script that
only reads the current frame from the file when you move the timeline.
2010-02-24 11:03:22 +00:00
Campbell Barton
78bb45931c scene.render_data -> scene.render
bpy.types.SceneRenderData -> bpy.types.RenderSettings

better do these changes before there are too many scripts out.
2010-02-23 12:48:35 +00:00
Campbell Barton
97bdfe6f1b pep8 cleanup + correction for external player operator return value. 2010-02-22 23:32:58 +00:00
Campbell Barton
bc3d96678d bugfix [#21233] Crash in pyapi, with new object.
pass the obdata as an argument rather then assigning later so as not to allow an invalid state.
2010-02-22 00:07:46 +00:00
Campbell Barton
e3dba7d6f4 remove pep8 warnings 2010-02-21 10:56:14 +00:00
Campbell Barton
dd04e25a14 improved euler conversion, make sure new eulers are always compatible with the previous ones, means it doesnt result in bad interpolation. 2010-02-21 10:30:39 +00:00
Campbell Barton
5dd8d10336 [#20116] calculation problem in bvh_importer.py
from Martin K (martinbk)
2010-02-21 09:43:09 +00:00
Campbell Barton
8aa56414d2 BVH import working again.
- euler/quat rotation option
- scale, startframe options back.
- fix for adding an armature which used operators can could fail, use the data api instead.
- remove old junk
2010-02-20 22:51:36 +00:00
Campbell Barton
02e7871149 Mathutils API: Euler support for rotation order.
Examples.
 euler = Euler(1, 2, 3)
 euler.order = 'ZXY'
 
 euler = matrix.to_euler('XZY')


Still missing rna support. this still wont give the right order, defaulting to XYZ.
 eul = object.rotation_euler
2010-02-20 19:49:04 +00:00
Campbell Barton
780aa24dfe Netrender was reloading classes multiple times 2010-02-17 17:16:04 +00:00
Campbell Barton
23efeff6a9 [#21177] Text editor
Running scripts directly didnt call the register function, even though this is not essential its good to be able to run a script directly and see changes in the UI.
2010-02-16 09:55:07 +00:00
Daniel Salazar
957baf7d6a Inline tooltips and descriptions of export/import
Random fixes and tweaks in names and tooltips
2010-02-15 09:53:02 +00:00
Thomas Dinges
dbb6c54862 Netrender:
* Added File Path Button for the "path" property.
2010-02-15 02:53:36 +00:00
Campbell Barton
3fbc277093 mistake in register() commit, mixed up import and export 2010-02-14 12:45:03 +00:00
Campbell Barton
39c04315e2 change python scripts so modules which register with blender have a register() function rather then making import automatically run the register functions (generally considered bad practice by python people) 2010-02-14 11:21:21 +00:00
Campbell Barton
6f5988412a [#21109] export doesnt create *.3ds file when requested 2010-02-12 17:07:57 +00:00
Campbell Barton
081c1205a3 correct fsf address 2010-02-12 13:34:04 +00:00
Campbell Barton
a62d70c56f use a more direct way to get the active UV and VCol layer 2010-02-12 12:57:58 +00:00
Joshua Leung
aeda6078c4 3ds importer - fixed some warnings about various properties required for the fileselect operator stuff not being present 2010-02-10 09:18:49 +00:00