Kester Maddock
0f447ac5a8
Fix for MSVC .NET, which can't handle static const declarations in classes.
...
Make it static, and define in SM_Object.cpp
2004-05-17 08:31:35 +00:00
Kester Maddock
6f4272a200
Fix for bug 1245: Vertex Colours are wrong in GameBlender. 2nd try.
...
http://projects.blender.org/tracker/index.php?func=detail&aid=1245&group_id=9&atid=125
The member names of MCol are wrong, so we will convert to unsigned char* like the rest of blender.
2004-05-17 00:42:07 +00:00
Ton Roosendaal
1adae69b5f
Rewind of change in MCol structure.
...
Kester: since this is in DNA, it backwards converts all R into B now,
which isn't the bug. On big endian systems (OSX) there engine colors
are OK, which indicates the conversion of MCol goes wrong on the
engine side, by using some endian-sensative approach.
The main confusement is, that the MCol struct isn't in use for read
or write in Blender, only for a save in files. The contents of that
struct is wrong, yes. See note in vpaint.c top.
2004-05-16 16:25:40 +00:00
Kester Maddock
a0d82b242f
Drawing cylinder & cone bounding objects according to how they will act in the physics simulation.
2004-05-16 13:23:59 +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
9827bf0cd7
Up the maximum triangles in a bucket.
...
GPUs can do more now.
2004-05-16 12:56:36 +00:00
Kester Maddock
9d147f52fd
Use safe_normalized instead of normalized in shadow cast.
...
Should fix crashes reported by Calli
2004-05-16 12:56:08 +00:00
Kester Maddock
52a835a179
Inline accessor methods used by armature deformation.
2004-05-16 12:55:37 +00:00
Kester Maddock
512c269a16
Use const for SetProjectionMatrix
...
Remove warning printf.
2004-05-16 12:55:21 +00:00
Kester Maddock
2144f20b04
Use bitset instead of mucking around with <<, | and &
2004-05-16 12:55:05 +00:00
Kester Maddock
c50055204d
SceneGraph support for bounding boxs
2004-05-16 12:54:44 +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
5659bedf34
Don't increment tface if tface == NULL
...
Generate bounding boxes for frustum culling
2004-05-16 12:52:08 +00:00
Kester Maddock
cfffc96ad8
Fix for bug 1245: Colours are wrong on GameBlender
...
http://projects.blender.org/tracker/index.php?func=detail&aid=1245&group_id=9&atid=125
The vertex paint routines were storing red in the blue channel, and blue in the red channel.
2004-05-16 12:50:16 +00:00
Stephen Swaney
ae20f7a95e
bugfix: #1206 Object.getBoundBox() was returning obdata coordinates.
...
fix memory leak in vector module. Memory allocated by vector constructor
was not being freed.
2004-05-15 23:10:37 +00:00
Ton Roosendaal
7b78a57c03
Adapted sconscript for removed file
2004-05-15 18:14:53 +00:00
Ton Roosendaal
1c93da1478
Removed obsolete file
2004-05-15 18:13:42 +00:00
Ton Roosendaal
a4861c37be
Assuming the freeze is over and we can head towards 2.34: this is the
...
first commit for review and improvements on OSA (anti aliasing) in
Blender.
http://www.blender3d.org/cms/Rendering_engine.320.0.html
Most relevant changes:
- full check on subpixel sample locations
- all subpixels are fully rendered (gives spec AA, procedural texture AA)
- also unified render uses it
- removed double-used code for unified render
Whether or not this will be optional (better pics, but in some cases slow)
is to further evaluate. For raytracing - for example - this cannot be simply
done, since the new sampling system made raytrace code much simpler.
2004-05-15 18:07:09 +00:00
Joseph Gilbert
b4ecf7d973
- added setBorder() to renderingContext to set border render rects from python.
...
- updated sizePreset() to deal with borders.
2004-05-15 14:32:21 +00:00
Joseph Gilbert
23637ccdd7
- bugfix #998 Object matrix incorrect
...
- object's matrix is not updated until redraw. pymatrix returned is updated to reflect current variables.
2004-05-15 03:09:27 +00:00
Joseph Gilbert
d00ad69b06
- spelling error and example fix
2004-05-15 03:02:11 +00:00
Johnny Matthews
95c546bd9d
Adds a 'paint' floating panel to the image window to control brush settings for texture paint mode.
...
Also adds paint and properties to the view menu in image window.
2004-05-15 02:28:03 +00:00
Wouter van Heyst
5d3629fdd8
- Small improvement, check ~/.blender/.bfont.ttf instead of .blender/.bfont.ttf in cwd.
2004-05-13 14:21:08 +00:00
Kester Maddock
81679446ba
Make game users happier.
...
Don't apply friction to external velocities. The means motion actuators that set linV will work, without having to be repeatedly triggered.
2004-05-13 13:07:38 +00:00
Simon Clitherow
e0e14665fa
quick fix -- bug #1217 (Unable to access AA fonts in Linux)
2004-05-12 20:30:18 +00:00
Ton Roosendaal
cf2aef1df9
Secured division by extreme values with a FLT_EPSILON. This might
...
prevent hanging on optimized windows build. That's going to be tested
now!
2004-05-12 19:17:00 +00:00
Matt Ebb
2825750330
A few fixes to the menus:
...
* Added the axis constraints (and fixed a bug) in the newly
added View3D transform menus, and in doing so removed
some duplicated code from toolbox.c
* Cleaned up text labelling
Hint:
Remember to use Title Case for menu labels, and only use
an ellipsis (...) when the menu opens up another new
dialog like a panel or a pupmenu(). The ellipsis indicates
"there is something more to come" and that no action,
mode-change, whatever will be executed immediately.
2004-05-12 16:53:11 +00:00
Stephen Swaney
e80a814360
bugfix from bpy mail list:
...
Object.setEuler() was not accepting old style args of 3 floats.
2004-05-12 08:06:15 +00:00
Ton Roosendaal
2713e9a7e4
2.33a splash
2004-05-11 21:54:44 +00:00
Ton Roosendaal
7a4e80b460
Little things pending for menus...
...
- grab/rot/scale sublevel in object pulldown (mostly as hotkey reminder)
- added missing hotkeys to 2 toolbox items
2004-05-11 21:40:39 +00:00
Ton Roosendaal
fc2171c37a
Added warning message on attempt to join 2 Meshes with vertex keys.
...
That feature is not available... and I doubt that'll be soon. :)
2004-05-11 19:08:02 +00:00
Ton Roosendaal
34d3b2c2e4
Changed printing an empty string to print "0" for files for zero size
...
in file selector.
Thanks Joilnen for pointing to this line.
2004-05-11 12:50:04 +00:00
Joseph Gilbert
f141aed9dc
- bugfix #1197 (New Bone.parent/child Access Destructive)
...
- a major redo of the Bone module
- BPy_Bone structs are separated into Bone data and python vars. This is necessary for the correct memory allocation of bone data between python and the global armature list.
2004-05-11 08:26:44 +00:00
Ton Roosendaal
404d9ab0a2
Tinsy error in undo for selection. Undo_push() was called too late.
...
Reported by Grogilius. Thanks!
2004-05-10 21:15:18 +00:00
Daniel Dunbar
00b44d4db2
- nasty memory corruption on windows for getting home directory
...
- check to make sure $HOME/.blender exists before returning that
as the home
2004-05-10 20:35:46 +00:00
Ton Roosendaal
208a2937f7
PATCH!
...
Bug 1258: selecting objects with text drawing (axis, or as draw extra)
causes crashes in IBM cards. Has been tested & verified. A crash on
selecting Empty is often reported... so I just disabled drawing of
text when in selecting-draw mode.
Added comments in code to note it clearly.
2004-05-10 20:14:21 +00:00
Ton Roosendaal
c4dc33f18e
Bug 1272
...
Normals for mball where flipped, when using displace mapping.
Fix is both flipping normals, and flipping flip flags.
2004-05-10 18:17:06 +00:00
Ton Roosendaal
0238900617
Bug fix for AO and Soft shadow:
...
When Traceable was off, and the rendered pixel outside Octree, the
intersection was going wrong. Due to the many samples taken not easy
to see, but certainly causing extra noise.
2004-05-09 21:52:23 +00:00
Ton Roosendaal
6c7747a6f1
Bug #1264
...
When in texture buttons, selecting Lamp, Camera or other Object didnt
update the shown texture correctly. Now it nicely switches.
2004-05-09 21:37:36 +00:00
Ton Roosendaal
366f58fca7
Added tooltips for Lattice editbuttons.
2004-05-09 21:26:43 +00:00
Ton Roosendaal
24a8327d25
fix for bug #1263
...
When zooming in extreme, scaling things outside of view caused dashed
line to be wrong... it used shorts for screencoords. Made it a float.
2004-05-09 21:15:05 +00:00
Ton Roosendaal
4d99961c0d
As we dutchies say: "Now breaks my clog!"
...
Apparently the 'sync' option for alt+a anim playback *can* run without
the sound_init_audio() being called, but it cannot play audio... o_O
(For who doesnt know, syncing was coded abusing audio timing)
Anyhoo. This also fixes #1267 , reporting that 'sync' option didnt work.
2004-05-09 20:40:21 +00:00
Willian Padovani Germano
fe89479036
BPython:
...
- Manuel from MakeHuman reported a memory leak in NMesh_getVertsFromGroup, should be fixed now. A pylist was not being decref'ed.
2004-05-09 02:18:51 +00:00
Ton Roosendaal
9c3607b1ff
Fixed little annoyance that caused previewrender not to clear sometimes.
...
For example when no Texture exists, and you switch from material to
texture buttons.
2004-05-08 09:42:33 +00:00