Commit Graph

1594 Commits

Author SHA1 Message Date
a96869198b Rigid body physics for non spherical bounding objects.
If your simulation becomes unstable, crank up the 'Form' control.

Removed Solid from class SumoPhysicsEnvironment (since it wasn't actually used.)
2004-04-14 05:57:24 +00:00
e0ea7a230a - reversion to 1.5 2004-04-13 18:11:10 +00:00
8e3579d355 - fix for bug 62
I found it was an easy one to fix after all... the stars system is still
old and very cumbersome code, but for parts it now just works too, by
just disabling clipping in advance (as for panorama).
2004-04-13 15:23:24 +00:00
56f3fbb715 - Fix for compiler error regarding overloaded binary equality operator not defined on MSVC 2004-04-13 02:14:05 +00:00
bb2a34c60b Bug fix 1148
In do_versions() the new texture parameters were always initialized,
whilst we didn't go for a new release number yet.
Now it checks for a value==0.0
2004-04-12 20:27:48 +00:00
61091cb30b Alternative for abusing enter/exit editmode after doing an import.
mesh_add_normals_flags()

Basically this abuse was only for normals and draw flags. For huge imports
the editmode hack is far too slow.

Now added to vrml importer. Hos can check for his stl work!
2004-04-12 19:29:52 +00:00
ff5c159730 Just code cleanup here. I tried to check if a replacement of malloc() and
friends with a group-malloc system would speedup. That wasn't...
While doing this I noticed such mess... so spent a while cleaning things
a bit:

- all malloc() replaced with MEM_mallocN()
  (this except for vertices/edges/faces, for speed)
- unified free_xx names, this was too confusing! so now we have:

  free_editvert()
  free_editedge()
  free_editvlak()

  free_vertlist()
  free_edgelist()
  free_vlaklist()

  and only very few calls to free() and alloc() themselves.
2004-04-12 17:32:29 +00:00
c2526dc922 More AO fun to play with:
- AO energy slider to control amount
- option "Use sky color" for colored AO. The horizon color will define
  bottom diffuse color, the zenith works on top
- option "Use sky texture" will do a full sky render to define AO color

Please note that AO energy and color only is found when a ray does not
intersect. So for interior scenes make sure 'Dist' value is sufficient
low.

New also is:

- World "Map input" allows "Ang Map" (Angular mapping) which can be used
for 360 degree spherical maps, aka as Light Probes. Check samples here:
http://www.debevec.org/Probes/
Note that Blender doesn't support HDRI images yet, but option "Use sky tex"
already gives intersting results with such images

- World sky rendering with Image Textures now correctly filters and uses
antialiasing. Also noticable for raytrace mirror reflections

- World preview render for sky type "Real" now gives correct view as
defined by current used camera.

I tried to speed up AO tracing with coherence systems, none of it really
worked yet... time to tackle octree itself i guess!
2004-04-12 14:53:17 +00:00
450fdbfd82 SCons updates
* Updates to the cygwin build.
  the dna.c file used to be generated with a full path. Cygwin doesn't like
  this. The problem was with some cflags and linkflags that are used to build
  makesdna.exe
  Hos nicely pointed this out and proposed a solution.
  Now, these flags are only added to the command when the platform != 'cygwin'.
* Updated some variables in SConstruct.
2004-04-11 21:11:18 +00:00
Chris Want
585ea4df06 Fix for Bug #620.
Selection in the NLA window was often offset due to bad handling of
constraint channels (whatever the heck they are) and such.

Thanks to malefico and slikdigit for example blends.
2004-04-11 15:18:39 +00:00
c31b44b670 Bug fix 1130
In buttons_object panels, there was an old check for used library data
that evaluated data linked on objects, instead of object.
Restored it to checking for ob->id.lib only.

BTW: the setButLock() is persistant, and should be reset after.
2004-04-11 13:54:47 +00:00
c9a7e7e392 Fix bug: adding Armature as parent for object, which is not Mesh, crashes blender. Menu item "Use Armature" is present only for Mesh object. 2004-04-11 10:32:14 +00:00
149fad4be6 BPython: cleaning some bug tracker entries:
(excuse me for doing all in a single commit, but they are tiny
fixes and it's bpython, that dark corner ...)

#1025 - FileSelector SEGV on dynamic callback Category:

  Can't reproduce with current cvs, I'd say recent changes to fix
another crash related to FileSelector in gui-less scripts solved this
one, too.

#1028 - Reserved button event number:

  Menu choices generate two events, one extra related to the menu
itself, with value=4.  Made bpython ignore this extra event.

#1068 - FileSelector No file extension support:

  As Ton wrote there, Blender itself doesn't support this yet.  But the
requester also wanted Window.File/ImageSelector to accept a pathname.  Done.  Also updated doc.

#959 - Segfault on background rendering:

  This happened in bg mode (blender -b filename -a, for example) when
a script with the line "Blender.Redraw()" was linked to FRAMECHANGED events.  As reported in the bug page, it was because curarea is NULL in bg mode.  Made Redraw() check for this and not call functions that expected curarea in Redraw, like one to swap buffers.

#1072 - Blender.Redraw() Segfault:

  Good catch : ). Scripts called from the scripts win that called
Blender.Redraw() or Blender.Window.Redraw() would crash Blender because of a dirty pointer in Spacescript->script.  Fixed.
2004-04-11 04:41:33 +00:00
ae9233a5b0 1. Check material names passed to the physics engine (for collision sensors.)
Consider:
gameobj->getClientInfo()->m_auxilary_info = (matname ? (void*)(matname+2) : NULL);
It works if matname is "MAblah", but not if matname is "".

2. Added constructor for struct RAS_CameraData.
3. Added initializers to the struct KX_ClientObjectInfo constructor
4. Collision sensors won't detect near sensors.
5. A stack of minor tweaks, adjusting whitespace, using ++it for stl stuff.
2004-04-11 02:50:02 +00:00
1039d15f57 Fix for bug #1145 bevel numbutton not changing when clicking on the sides
http://projects.blender.org/tracker/index.php?func=detail&aid=1145&group_id=9&atid=125

I changed the fbutton function to give the possibility to control the a1 and a2 parameters of the button.

This commit also fixes two things in the bevel function:
- The numbut didn't do anything because it wasn't recalculating the proper variable
- The display wasn't recalculated when pressing Ctrl or Shift (it's now done by recalculating after every keyboard event. I've done it this way since the event loops seems to skip CTRL and SHIFT events)
2004-04-11 00:23:06 +00:00
Chris Want
337f98f04b Fix for a bug where changing frames would not update some blend's
using nla.
2004-04-10 18:02:26 +00:00
c8cadcd557 Bug 729
When more than 30 scenes are in a scene, the sequencer "Add" option didnt
show a databrowse window.
This was a nasty one, because databrowse facilities are more-of tied to
having a header. The fix is that I added option to IDnames_to_pupstring()
to not limit the menu (by passing NULL for menu short pointer).

Also noticed a bug with pupmenu_col(), which did return on a val==0 event
(mouse release) which shouldn't be, this makes sequences of menus not
possible.
2004-04-10 15:13:28 +00:00
2a0bc1ee26 Bug 1136
Saving images from UV editing window was confused... initially I thought
it only used the same format as input image, but it did use the same
as F10 buttons specified, sorta. Fixes include:

- BIF_write_ibuf() now uses current Scene renderdata to check for
  image type (it checked the global R struct instead, which is only
  set correct after render)
- Fileselector now gives correct title in bar (like "SAVE TARGA")
- Pulldown menu in UV window now always gives the "Save" option
- removed the weird usage of BTST() to check for flags, and made it
  using the #defines instead for readability
2004-04-10 14:24:57 +00:00
71abd64437 Bug fix 1139
Weight Painting didn't work with (Paint Panel) option "Soft". This due
to a wrong check for normals in displaylists.
2004-04-10 12:41:19 +00:00
e74a3b4166 Bug 1142
In Mesh editmode, with option "draw faces", hiding 1 vertex of a quad
doesn't always result in not drawing the face. Only 3 out of 4 vertices
were tested.
2004-04-10 11:33:01 +00:00
Chris Want
76a177a9b9 A fix for bug #1060 (crashes in armature editmode after IK children are
grabbed in pose mode).

Bug fix by pidhash (a.k.a Joilnen). Thanks!
2004-04-09 15:10:47 +00:00
a7354ea007 Fix for bug #1100
Under Windows, Quicktime images with a depth < 32 didn't
show up in the sequence editor. To fix this a non transparent layer was added to them. (bf227-bf232)

I now have disabled this trick for GIF images, so the transparency is preserved. But this is a quick fix and
should be replaced by a transparency check function.
2004-04-09 14:09:56 +00:00
c9d7d11215 Bug #1141
When choosing 'International fonts' this variable was not reset
when loading .B.blend again with CTRL+X.

Move the check for this to read_homefile() instead of init() call.
2004-04-09 13:51:48 +00:00
Nathan Letwory
1c3a1ba361 Tell the user he is trying to do a boolean op with a faceless mesh, instead of spewing a meaningless "An internal error occurred -- sorry" message. 2004-04-09 07:42:43 +00:00
0e9e6bdc72 Fix bug #1126: Ray sensor detects a near sensor attached to the same object and then goes into an endless loop trying to ignore it. 2004-04-09 03:48:17 +00:00
10eebdbd78 Fix for bug #1134 Numpad "." key broken for num entry
http://projects.blender.org/tracker/index.php?func=detail&aid=1134&group_id=9&atid=125

Thanks to jesterking for saving me the time to look for the proper spelling for the event ;)
2004-04-08 23:20:25 +00:00
Nathan Letwory
235c93e714 Fix for bug #1065: boolean ops with meshes containing 0 faces crashed on Linux and OSX.
Check first if meshes have faces, otherwise don't do boolean op.

(see: http://projects.blender.org/tracker/index.php?func=detail&aid=1065&group_id=9&atid=125)
2004-04-08 18:58:32 +00:00
a9b1cd6a0e Bug 1016
When you use arrow keys to activate items in a menu (like IKEY for Ipos)
the selected items were not correctly choosen when mousepointer was over
an item, only when mousepointer over title.

Fixed by catching 'RETKEY' event in buttons event subloop.
2004-04-08 13:18:46 +00:00
4a86586ea8 Reenable the "Save Runtime..." file menu option 2004-04-08 12:57:03 +00:00
da26d4bf3b bug fix 1003
When no object active (after delete) a Panel in IpoWindow drawed wrong.
Solved by disabling drawing panels in such situations
2004-04-08 12:22:41 +00:00
30c8bc33ef Fix SConscript for GamePlayer. 2004-04-08 12:10:09 +00:00
eede1399f3 Missed this one! :-( 2004-04-08 12:01:48 +00:00
039719f3a1 Bug fix 823
Animated metaballs didn't update correctly when changing frame, this when
they were parented (for example) to an object with Ipo.
The fix consists of three things:

- the test_displist() call doesn't remake displist anymore, but frees it.
  this works, because when drawing an mball object it checks for a displist
  and creates one when needed
- the main drawing routine drawview3d() now has a separate loop where first
  all objects are updated with where_is_object(), then they're drawn.
  This effectively solves lag for mballs. Might improve other lags too!
- included in NumPad-9 call to test_displist() too, to force a full upgraded
  3d view
2004-04-08 12:00:58 +00:00
27c7048b9f Don't import Blender python module into the gameengine. It causes link problems for blenderplayer.
Added a python function for MT_Vector4s
2004-04-08 11:43:41 +00:00
80485c2926 In NaN times I suggested a python function to get the subject of a
Message using a python function of the MessageSensor.

Thats a nice thing if you want complex message handling in one python
script. Just get all messages, check the subject and do what you
want. In the current situation you end up with several MessageSensors
connected to the python script, instead of one Sensor and a smart
script.

Some developer (cant remember who) did implement that function, but
however not the way I wanted (maybe I was not clear enough) ;-) So the
getSubject() function will return whats entered in the "Subject:"
filter field of the MessageSensor. Quite useless IMHO.

So I added a new function getSubjects() which is similar to
getBodies(), in fact I stole the code from there ;-)

I left the getSubject() alone, because of backward compatibility
(never saw someone using that function, but...)


The future:

In conjunction with a wildcard subject: filter field the getSubjects()
function will be even more usefull.

i.e. Player* will filter for PlayerScore, PlayerKill etc.

-- Carsten Wartmann
2004-04-08 11:36:22 +00:00
5398f1ba77 Added resolveCombinedVelocities()
Fixed drot actuator.  The rotation matrix was being mutilated by passing a float[9] instead of float[12].
2004-04-08 11:34:50 +00:00
Nathan Letwory
fc080d30d6 Added preliminary support for GamePlayer building with SCons. GPG_ghost and GPC_common are now being built. These will be built by setting BUILD_BLENDER_PLAYER to true in config.opts. BUILD_GAMEENGINE must be set to true, too. 2004-04-08 10:40:12 +00:00
Stephen Swaney
9cabf31ebc fix for bug #1115
This was a problem with the BezTriple type.
Write access to BezTriple via 'pt' member did not work.

Preferred method to access BPy type members, especially for
write access, is via get*/set* methods.

BezTriple.setPoints() will accept x,y coordinates as either
a tuple or a list.

Updated BezTriple section of Ipo module doc.
2004-04-07 22:42:02 +00:00
a93a6966b7 bug fix 799
Solved by Styken, thanks dude!

the winqreadtextspace() function wants CTRL/ALT events, but also should
accept special characters that are sometimes behind an ALT on certain
keyboards (like [ ] in sweden).

In the old code all ALT events caused ascii to set on zero. Now it
checks first for ispunct() chars.
2004-04-07 21:08:28 +00:00
6710a87b5a - normals in previewrender showed bumpmap inverted (a bump became a hole)
just added a flip!
2004-04-07 20:45:47 +00:00
c0d1177ade bug fix #1127
Quads in radiositizer got normals calculated using 3 vertices only. this
can go wrong in occasions... and made blender hang.
Used CalcNormFloat4() instead!
2004-04-07 18:19:30 +00:00
5c1331f081 bug fix #953
This more of a quality issue... changes now are:

- in (ortho) 3d view, changing window aspect keeps zooming
  level (it zoomed out with extreme portrait aspect)
- pressing 'home' in 3d window now shows all with extreme aspect ratios too
2004-04-07 16:09:22 +00:00
1923c6f41b 'Replace Image' did not work in the Image Window, it worked as 'Load Image'.
Patch provided by Carsten Wartmann.

Got rid of a 'unused variable' warning too.
2004-04-07 15:13:06 +00:00
774297226b Bug #928
Logic buttons have not been Panelized (will be difficult, dont try!) so
the 'Home' and automatic view-limits didn't work it anymore.
This caused logic blocks not being accessible by scrolling window.

Fixed by updating the code that sets view limits.
2004-04-07 14:05:53 +00:00
69f2ff45cb bug fix 1064
Credits go to blendix! Well done!

Reported were errors in using procedural textures on "Map input" UV type.
It was due to un-initialized uv[2] members, which were actually still
used by texture.c for some coord flip magic.
2004-04-07 12:55:45 +00:00
d748c8c382 Bug fix #1073
CTRL+SHIFT+A (apply lattice deform) on a Bezier Curve object was not
implemented yet. Added this.

Little sidenote: when curves are 2D the result will remain 2D, disregarding
deformation in 3rd dimension.
2004-04-07 12:46:50 +00:00
4edae3b2c5 Bug fix #1093
When editing a Curve object, type Poly, some code still thought it was
a Nurbs instead, doing nasty stuff with knots arrays.
Also fixed redraw events for buttons while editing Curve, this wasn't
done properly at all, causing the UI showing non-existant data...
2004-04-07 11:35:11 +00:00
Stephen Swaney
c1e33eb1e7 fix for bug 1110.
Updated epydoc.  Function name is BezTriple.getTriple().
Set prototype to NOARGS in source.
2004-04-06 21:13:12 +00:00
d2f95ea72e bug fix 1009
Arrow keys to select items were flipped for button type MENU.
2004-04-06 20:31:11 +00:00
c8fadc65dc Bug #1003
Using Nkey in 3d window, you could create a parent-loop, which hangs
Blender.
Added here that it checks loops, as for normal CTRL+P parenting.
2004-04-06 19:16:14 +00:00