Commit Graph

15771 Commits

Author SHA1 Message Date
Dalai Felinto
b8a13162cf BGE: negative lamp fix for GLSL mode.
The files I used for test are here: http://blenderecia.orgfree.com/blender/tmp/neg_light.zip
2009-12-31 18:52:06 +00:00
Campbell Barton
b5c250c729 New Version for 2.49b
From Jimmy Hazevoet
i have updated my A.N.T.Landscape script,
new functions are:
_Thermal erosion
_Generate new grid mesh with Triangle faces
_Select Verts/Faces by slope angle ( for making vertexgroups
for particlesystems )
_VertexColour Slope Map, ( for use with MaterialNodes )

This will be the last update for this script in this form (if
no major bugs are found)... with blender 2.5 this script will
need a complete rewrite,
i have plans for it, but i need a lot of time to do it, so i
gues a new version will not come before blender 2.6
So, next year or so i will spend time rewriting my ant script,
also i have plans for a "ANTLandscape" website with
docs and tuts.
The new script will be fully documented, and with some tutorials
on landscape rendering in blender.
2009-11-18 10:41:03 +00:00
Chris Want
6c1a7a9a2d == Blender 2.4x ==
Removed highly annoying "recalc data OBxxxx" debug print.
2009-11-12 18:35:26 +00:00
Campbell Barton
bc3eff97c4 2.4x fix for Blender.Load()
only bother checking script spaces when loading a blend file

Should be able to load a STL or DXF when script spaces are open now
2009-11-10 15:34:27 +00:00
Campbell Barton
624d26e0a8 fix for [#19013] Projection Paint Mask is failing (for campbell)
- flush face selection to the derived mesh where possible (if CD_ORIGINDEX is available).

- fixed border-select while painting which rarely worked.
- painting on a mesh with no UV's didn't free the derived mesh.
2009-10-02 06:06:09 +00:00
Campbell Barton
9f23a0c081 Bugfix for curve deform, would result in applying curve modifier inverting the normals for -Z.
Incorrect comparison with the 'axis' and OB_NEG#, the axis matches MOD_CURVE_NEG# which is from 1-6, not 0-5.
2009-09-30 18:55:59 +00:00
Campbell Barton
db430c7c4f comparing float values with the property sensor didnt work 2009-09-30 13:19:42 +00:00
Campbell Barton
273544fbf0 svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r23427:23428
[#8358] Performance regression with raytraced refraction (from Matt Ebb)
2009-09-28 09:59:21 +00:00
Campbell Barton
6a14408664 use functions to detect stylus and eraser from the wine project, supposed to work with non-wacom tablets too (searches for wizardpen & acecad as well as 'stylus').
2.4x did an exact check on the name, 2.5 does a case insensitive search on the type.

This does a case insensitive check on both the name and type.

close the devices on exit too.
2009-09-18 02:36:23 +00:00
Campbell Barton
77446c59e9 backport Nicholas Bishop's 2.5 commit from r22581, stylus fails on ubuntu 9.10 without this. 2009-09-17 16:17:32 +00:00
Campbell Barton
064569c52e building scons blenderlite would fail when building the player 2009-09-17 15:35:25 +00:00
Remigiusz Fiedler
00f9bf51d6 bugfix for LineIntersectLine()
- was imperfect calculation for points marking shortest distance for non-crossing lines in 3d
2009-09-16 22:13:48 +00:00
Guillermo S. Romero
aa8163e399 Revert endianess test to 2.49 style.
Reported by jms.
2009-09-14 23:00:58 +00:00
Benoit Bolsee
529e021a1f BGE bug #19294: applying torque on a dynamic object turns it into a rigid body. 2009-09-13 19:39:04 +00:00
Peter Schlaile
334fefc12a == FFMPEG ==
fixes 2.4-branch according to trunk:

update anim->curposition even if video frame decoding failed.
Fixes nasty issues with DV-decoding on broken frames.

Also: cleans up color conversion a little bit.
2009-09-13 19:22:36 +00:00
Benoit Bolsee
4c92ca02f7 Update project files 2009-09-13 15:23:50 +00:00
Campbell Barton
a917abee89 [#19290] Blender.Load(filename) -> FILE_MAXDIR to FILE_MAXDIR + FILE_MAXFILE and unused argument removed
only changed the FILE_MAXDIR -> FILE_MAXDIR + FILE_MAXFILE part
since its possible scripts use this undocumented arg.
2009-09-13 08:41:13 +00:00
Campbell Barton
3a62892a95 Patch [#19293] NearSensor: Changing distance and resetDistance from Python did not take effect immediately
from Frank Papenmeier (hodka)
 --- from the submission
Changing the distance and resetDistance Properties of a NearSensor from Python did only take effect, once there was
a collision within the old radius.

Reason:
The radius of the PHY_IPhysicsController was not set to the new values.

Solution:
It is set at the end of the CheckResetDistance function. I moved the relevant code snippet from the Evaluate function
into a new function called SetPhysCtrlRadius in order to avoid duplicating code doing the same thing.
2009-09-13 08:17:22 +00:00
Campbell Barton
2951a845b1 Patch [#19315], Fix for Jpeg2000 alpha channel bug [#19280]
thanks to Albertas Vyšniauskas (thezbyg)
2009-09-13 08:07:15 +00:00
Campbell Barton
90ea3964fd remove minimal twist from 2.4x, is too much in development which changed in 2.5, better keep in 2.5x then try have them in sync. 2009-09-13 07:35:31 +00:00
Martin Poirier
9f893cbe9c moving trunk to branch 2009-09-12 12:58:01 +00:00
Campbell Barton
2fc4ee3545 Curve cleanup
Renamed BevPoint's members
* x,y,z -> vec[3]; compatible with other functions.
* f1 -> split_tag; used by displist to set the splitting flag.
* f2 -> dupe_tag; used in curve.c to remove duplicates.

BevList
* flag -> dupe_nr; was being used as a counter for duplicate points.

* use arithb.c functions where possible.

* arrays for coords, tilt and radius were being allocated, then copied into the BevPoint's, now write directly into the values without allocing/freeing arrays.
2009-09-10 02:57:25 +00:00
Brecht Van Lommel
4cb53d91ea Small code cleanup related to curves, to avoid cryptic names:
renamed set_four_ipo -> key_curve_position_weights
renamed set_afgeleide_four_ipo -> key_curve_tangent_weights
added key_curve_normal_weights
2009-09-09 18:09:03 +00:00
Campbell Barton
183c8e0a0a no functional changes, use hole rather then dutch 'gat' for bevel lists and made some comments English. 2009-09-07 07:42:12 +00:00
Dalai Felinto
7064f6c5d8 Mathutils fix: Vector.reflect
* correct function for reflection and moving it to arithb.c
* note: 2.5 has an already more elegant solution for it (still wrong, but the code is cleaner).
Therefore the merge may need to be manual in that case.

Specifically in 2.5 we are doing:
if(!BaseMath_ReadCallback(self) || !BaseMath_ReadCallback(value)) return NULL;
And there we don't need to create a VectorObject *mirrvec; only to get the values.

Code used to test it:
http://www.pasteall.org/7654/python

* YoFrankie script probably needs to be fixed too.
2009-09-06 19:51:57 +00:00
Martin Poirier
a46beac3f8 Rename Vec3ToTangent VecBisect3, since that's what it does. 2009-09-06 01:11:47 +00:00
Campbell Barton
c9dd69c11a remove MTC_ functions, (don't merge)
replacements...
MTC_cross3Float -> Crossf
MTC_diff3Float -> VecSubf
MTC_dot3Float -> Inpf
MTC_Mat3CpyMat4 -> Mat3CpyMat4
MTC_Mat3MulVecd -> Mat3MulVecd
MTC_Mat3MulVecfl -> Mat3MulVecfl
MTC_Mat4CpyMat4 -> Mat4CpyMat4
MTC_Mat4Invert -> Mat4Invert
MTC_Mat4Mul3Vecfl -> Mat4Mul3Vecfl
MTC_Mat4MulMat4 -> Mat4MulMat4
MTC_Mat4MulSerie -> Mat4MulSerie
MTC_Mat4MulVec4fl -> Mat4MulVec4fl
MTC_Mat4MulVecfl -> Mat4MulVecfl
MTC_Mat4One -> Mat4One
MTC_Mat4Ortho -> Mat4Ortho
MTC_Mat4SwapMat4 -> Mat4SwapMat4
2009-09-06 00:19:15 +00:00
Campbell Barton
3b743ac556 Option to correct for 3D curve twist error. example before and after.
http://www.graphicall.org/ftp/ideasman42/curve_auto_twist.png
Access next to the "3D" edit button.

details...
- open curves use the first points orientation and minimize twist for each new segment.
- cyclic curves calculate the least twist in both directions and blend between them
- AxisAngleToQuat replaced inline code.
- Notice the model on the right now has more even corners. added Vec3ToTangent to arithb.c.
2009-09-05 09:54:01 +00:00
Ton Roosendaal
959757c2d7 Part 2 of the 2.49b commit.
We now should freeze and tag!
2009-08-31 18:17:06 +00:00
Ton Roosendaal
15f81f4b03 Part 1 of the 2.49b commit 2009-08-31 18:16:18 +00:00
Benoit Bolsee
7fccc53fc6 More MSVC project file update (don't propagate those changes to 2.5). 2009-08-31 17:00:03 +00:00
Benoit Bolsee
0b968bcbd9 BGE bug #19020: The GE Torque actuator x -& y-axis do not work in 2.49a (winxp) 2009-08-31 15:54:56 +00:00
Benoit Bolsee
0795d8237d BGE bug #18963: obj.sendMessage() with 4 arguments crashes Blender. 2009-08-31 15:28:43 +00:00
Benoit Bolsee
dfef0746e4 Update MSVC project files. 2009-08-31 14:25:39 +00:00
Campbell Barton
043641de72 corrections to epydocs 2009-08-31 13:03:38 +00:00
Campbell Barton
6b3351c327 bugfix [#19254] KX_PolyProxy returns improper VertexIndex with triangles, using .getVertexIndex() and .v1, .v2, etc.
Surprising this wasn't noticed before. Any mix of quads/tris caused the face verts of either quads/tries (whichever comes last).

Tested by exporting the KX_MeshProxy and re-importing as an OBJ.

This fix assumes there are only 2 m_darray's per face array which is currently true, but wont be if edge support is added back.
2009-08-31 03:36:02 +00:00
Peter Schlaile
ca96a75af4 == Sequencer ==
Fixed hddaudio for sample formats other than 16 bit (8 bit e.g.)
2009-08-30 19:38:22 +00:00
Campbell Barton
d7bf9688ac fix for crash when a parent compound object didn't get a physics controller.
also show this in the UI.
2009-08-27 23:29:07 +00:00
Campbell Barton
324b3fbe74 - BGE crash fix when casting a ray to the same location as the object from python.
- Incorrect Mathutils vector docstrings.
- last rayshade commit had an incomplete comment.
2009-08-27 06:55:54 +00:00
Campbell Barton
0db2975ff6 [#18837] if a sunlamp is set to a too high energy, speculars turn black
shr->spec values could be greater then 1.0, causing negative color when using (1.0-shr->spec[i]) as a blending factor.

When shr->spec[i] is 1.0 the mircol is ignored, so only mix the mircol when needed (like clamping the spec).
2009-08-26 16:05:01 +00:00
Campbell Barton
33e2d118bc removing GameLogic.EvalExpression(),
unlikely anyone will miss it, was only accessible in 2.49, invalid expressions would crash, valid ones leak memory.
2009-08-25 12:43:25 +00:00
Guillermo S. Romero
9dff2ad3d0 SVN maintenance. 2009-08-24 23:09:35 +00:00
Campbell Barton
819a0d2f77 EDL importer for the sequencer.
supports...
- audio and video edits
- fades, wipes, speed changes (video only)
- importing from multiple reels

example import from final cut pro.
http://www.graphicall.org/ftp/ideasman42/edl_in_blender_px.png
http://www.graphicall.org/ftp/ideasman42/edl_import_ui.png
2009-08-24 11:34:48 +00:00
Campbell Barton
9261efa4d6 [#18936] Particle Related Patch
from Alberto Santos (dnakhain)

This also adds the option to duplicate a particle system with an object.

 --- description from the patch submission.

This patch includes my latest additions to the Python API developed for my Degree's Project.

It includes:
 - Particle
    - Vertex group dictionary in doc (to use with setvertexgroup/getvertexgroup)
    - Particle.New return psys (not specified in doc)
    - Draw As variable and dict
    - Strand render toggle
 - Object
   - psys variable in duplicate
 - Material
   - Strand render variables
 - Texture
   - Use colorbands
 - Lamp
   - Spot buffer type selection
2009-08-24 10:37:39 +00:00
Campbell Barton
9967037e92 [#19029] Baking selected to active with nearby dupliframes objects crashes blender
from Jorge Hodge (watcom)

Confirmed the crash. baking didn't account for RE_RAY_TRANSFORM_OFFS in R.objectinstance.
2009-08-24 10:16:39 +00:00
Nathan Letwory
5e9e6df2a2 * changes to work with updated FFMPEG libs. Mainly build system. CMake files may need changing too.
NOTE: remember to svn up in lib/windows!
2009-08-24 02:49:57 +00:00
Campbell Barton
4a4a3b4989 Option for MouseFocus sensor. only used when 'Mouse over any' type is set.
Previously the only way to detect if the mouse moved over a different object was to enable true-level-triggering and have a python script detect the change.

When the Pulse option is set, focusing on a different object pulses true.
Python attribute is focusSensor.usePulseFocus.

This is similar to the collision sensors pulse option where changes in the set of collision objects generates an event too.

Found this functionality missing when trying to make a logic demo that used mouse-over with overlapping objects.
2009-08-23 06:17:59 +00:00
Campbell Barton
f08a4c9719 missed this in last commit. keyboard event manager was stored twice. 2009-08-22 14:19:27 +00:00
Campbell Barton
a4f3f5c23c - BGE, Some sensors, stored the event manager in 2 places (became confusing to do changes in this area)
- Change compiler warnings for linux/scons/C++
2009-08-22 10:51:21 +00:00
Jens Ole Wund
93dd95b6c2 bug fix #18982
non mesh objects missing initializers
2009-08-21 12:49:21 +00:00