Kester Maddock
85a8203cbc
Set the default physics tic rate to 90 Hz
2004-12-06 11:01:42 +00:00
Kester Maddock
88e435a52a
Don't try to interpolate from prop ipo actuators
2004-12-06 10:58:38 +00:00
Kester Maddock
ef971de66d
Fix Action & IPO actuators: (Bugs #1921 & #1920 )
2004-12-05 02:50:57 +00:00
Kester Maddock
10e64fe4b4
Only do event processing for ipo actuators on frames.
2004-12-01 08:43:58 +00:00
Chris Want
12307b358d
Making the C++ stuff work for the MipsPro 7.3 compiler.
...
Kester might want to check this for correctness
Kent might want to test if this breaks the Sun compile.
2004-11-23 23:04:30 +00:00
Kester Maddock
f8c2ce93b9
Fix for bug 1800: mouse over sensor doesn't work for ortho cameras.
...
The camera -> world transform wasn't being calculated properly for 'ortho' cameras: getOrigin()[2] should be scaled by 100 (like the render transform in KX_KetsjiEngine)
2004-11-23 10:10:21 +00:00
Kester Maddock
1092b98337
Fix for bug 1600: alpha sort doesn't work on linked (alt-d) objects
2004-11-22 11:49:35 +00:00
Kester Maddock
46fbe6b01e
Fix for bugs: 1788 (forces) and 1799 (python delattr on game objects)
...
Use Polytope collision for faster mesh intersection tests, so SOLID can actually use that qhull lib now.
2004-11-22 10:19:19 +00:00
Kester Maddock
f4efd433fa
Fix fixed time (enable all frames)
2004-11-06 22:10:58 +00:00
Kester Maddock
cf407da719
Reorder update: do physics before logic, so logic doesn't get stale position data (eg for camera actuator)
2004-11-06 12:31:56 +00:00
Kester Maddock
38b993f787
Speed up the physics engine: hook the SOLID broad phase, so we can either reject the test or request the penetration depth test as necessary. Previously we were doing the penetration depth test, as well as SOLID's intersection test.
2004-11-06 04:58:10 +00:00
Kester Maddock
318fb94c4b
Fix IPO actuator (Bug #1694 )
2004-11-03 10:48:02 +00:00
Kester Maddock
657eff7ed7
Port stereo stuff from tuhopuu2: anaglyph, vinterlace
2004-10-24 11:03:18 +00:00
Nathan Letwory
6c8d048773
remove std:: to please msvc6
2004-10-16 18:50:23 +00:00
Kester Maddock
7b2567924b
Switch fixed time system. Logic updates should now happen at 30Hz, physics at 60Hz. (By default, use Python to set.) Some actuators still run at framerate (IPO, Action) for nice smooth animation, and an excuse to buy high end hardware.
...
Keyboard sensors can now hook escape key. Ctrl-Break can be used from within blender if you've forgotten an end game actuator.
Fixed a stupid bug preventing some actuators working (like TrackTo).
2004-10-16 11:41:50 +00:00
Kent Mein
d5e1d1844a
removed 3 unused vars.
...
Kent
2004-10-06 14:35:08 +00:00
Kester Maddock
fd5f3e13d2
Convert and use actuators with no target object set.
...
Certain actuators (Add Object/Replace Mesh/Scene/Track To) used to always require a target, or they would not influence the scene. If the actuator target is always set from Python, this could be annoying.
2004-09-19 01:33:08 +00:00
Kester Maddock
3d8a485fb9
Fixed PyObject_IsMT_Matrix
2004-09-18 06:03:15 +00:00
Kester Maddock
9bbc1e9c0a
Clear the Python error flag between 'overloaded' Python methods.
2004-08-10 11:35:38 +00:00
Kester Maddock
b453cd0715
Fix bug #1460 : Camera IPOs Broken (Gameengine)
...
The camera IPO was not invalidating the cached projection matrix.
2004-07-22 00:26:34 +00:00
Kester Maddock
b6e0899607
Added support for cameras in Blender's Ortho mode.
2004-07-20 12:07:06 +00:00
Kester Maddock
baa2f99f07
Port Python updates from Tuhopuu2:
...
getType/setType to action/sound actuator (sgefant)
Use a more generic python -> math conversion.
2004-07-17 05:28:23 +00:00
Kester Maddock
c9b4585618
Switch to using floats instead of shorts for normal data - they're supposed to be faster.
...
Also use shorts instead of ints for the index data, since index arrays are limited anyhow.
2004-06-30 13:41:19 +00:00
Kester Maddock
4c53f38756
Minor Fixes:
...
Better use of booleans for python
#include fixes for Windows
Python Doc fixes
Use the farthest vertex as the face position when z sorting faces. (Camera is on -z axis!)
2004-06-26 09:15:41 +00:00
Kester Maddock
c16444e624
Python updates:
...
Added scene module
2004-06-07 11:03:12 +00:00
Kester Maddock
b468bf726c
Lighting updates:
...
Added specular after texture.
Added Light properties: Negative, No Diffuse, No Specular, Quad, Quad2
2004-06-07 11:01:31 +00:00
Kester Maddock
44f45894c2
Miscellaneous Fixes:
...
Add Python Mapping method to CListValue
Fix Bernoulli bool distribution python method for random actuator
Fix Python IpoActuator methods setProperty and force acts local
Make data objects private
Better sort method for polygon materials - much easier to understand
2004-06-04 03:00:13 +00:00
Kester Maddock
d38329b5aa
Added Python module for Lights.
...
Added attributes to the vertex class.
2004-05-30 11:09:46 +00:00
Kester Maddock
b97c77df2b
Check for zero normal vectors in the clip planes (if eg Python has set a strange projection matrix)
...
Fix the transformation of the frustum bound sphere to world coordinates.
2004-05-30 11:04:26 +00:00
Kester Maddock
8253d3e041
Python fixes:
...
Reenabled the setScript/getScript methods for python controller bricks.
Set the ray source point to MouseFocusSensor.getRaySource works.
Added: Python -> MT_Quaternion
MT_Matrix4x4, MT_Matrix3x3, MT_Vector3, MT_Point3 -> Python
Correct transform of frustum bound sphere centre point to world coordinates
2004-05-26 12:09:17 +00:00
Kester Maddock
3dd18c5c34
Added an UpdateTransform callback from SceneGraph -> Physics.
...
Profiling revealed that the SceneGraph updated every physics object, whether it moved or not, even though the physics object was at the right place. This would cause SOLID to go and update its bounding boxes, overlap tests etc.
This callback handles the special case (parented objects) where the physics scene needs to be informed of changes to the scenegraph.
Added Python attributes (mass, parent, visible, position, orientation, scaling) to the KX_GameObject module.
Make KX_GameObject use the KX_PyMath Python <-> Moto conversion.
2004-05-26 12:06:41 +00:00
Kester Maddock
e5cc9abceb
Fix Bug #1309 Disabling Actor leaves Ghost, Dynamic and Rigid Body etc enabled.
...
Depth sorting for Transparent polygons. Use ZTransp in Material buttons to enable.
This will cause an object's polygons to be sorted (back to front for alpha polygons, front to back for solid polygons.)
2004-05-26 12:01:08 +00:00
Kester Maddock
4551490dd4
near & far are reserved words on MSVC. Don't use them as variable names.
2004-05-21 14:09:18 +00:00
Kester Maddock
e957b12f0e
Frustum sphere culling.
...
Do a sphere<->camera sphere and a sphere<->frustum before the box<->frustum test.
2004-05-21 09:21:15 +00:00
Kester Maddock
1217928e66
Fixes for Camera objects and python:
...
Normalise clip planes for sphere testing.
Do a frustum-sphere <-> sphere test
Reference count all python objects (!)
2004-05-21 09:18:42 +00:00
Kester Maddock
bab6e5ce36
Cleanup unused/commented out code, compiler warnings, coding standards etc.
2004-05-16 13:10:10 +00:00
Kester Maddock
d5fde6c48b
Added #!/usr/bin/python standard script identifier to the start of SConscript files.
...
Makes text editors identify SConscripts as Python, and syntax highlight properly.
2004-05-16 13:07:20 +00:00
Kester Maddock
2fd6e72851
Changed Python _getattr/_setattr methods to use const STR_String& instead of char* - makes using these methods much nicer.
2004-05-16 13:05:15 +00:00
Kester Maddock
3e6b05f607
Python utils for Python <-> MT_Vector, MT_Point & MT_Matrix
2004-05-16 12:53:54 +00:00
Kester Maddock
0a27ae972e
Don't overwrite camera's projection matrix every frame.
2004-05-16 12:53:39 +00:00
Kester Maddock
d162882e3a
Frustum culling
...
New Python Hooks for cameras.
2004-05-16 12:53:22 +00:00
Kester Maddock
3b63bbe90c
Don't touch protected KX_GameObject members.
...
Protect KX_GameObject - Py_Header unprotects!
2004-05-16 12:52:54 +00:00
Kester Maddock
979e242657
Frustum Culling.
...
- tests every object against the view frustum.
- Tree based culling is there, need to build tree.
2004-05-16 12:52:30 +00:00
Kester Maddock
bd50d2f9cd
Delete all SOLID shapes at the end of the game engine. They were all being leaked!
2004-05-08 00:25:20 +00:00
Kester Maddock
83b17b9f4d
Fix: Setting objects Dynamic, then unsetting Actor would leave an object dynamic.
...
Check for Actor && Dynamic to enable dynamic.
2004-04-28 09:08:42 +00:00
Kester Maddock
5df9926f49
Fix MouseFocus Sensor objects for dynamic cameras. (Bug 1165)
2004-04-26 07:19:18 +00:00
Kester Maddock
63048b6cf4
Synchronise game engine with Tuhopuu2 tree.
2004-04-24 06:40:15 +00:00
Kester Maddock
a46f456e92
Fixes for MouseFocusSensor: (bug 1165)
...
1. Do the ray cast properly (from the near plane to the far clip plane)
2. Loop over invisible objects (sensors)
2004-04-24 06:36:55 +00:00
Nathan Letwory
892720ffad
[SCONS] Optimisation flags for msvc
2004-04-22 04:50:41 +00:00
Kester Maddock
4e2f7baff2
Improved rigid body handling for non spherical bounds type.
...
Polyheder dynamic objects are now converted properly.
2004-04-16 06:26:33 +00:00