Commit Graph

47594 Commits

Author SHA1 Message Date
Yann Vernier
79c4e8a247 Changes Mathutils.Vector() to be less picky about its argument(s). 2005-01-23 17:04:02 +00:00
Yann Vernier
8d0ef2163d This should make the Texture stype attribute work for EnvMaps. 2005-01-23 16:32:51 +00:00
Kester Maddock
413e4f51a6 Make the KX_PolygonMaterial Python member variables writable. 2005-01-23 01:40:37 +00:00
Kester Maddock
d21b9be9a8 Don't delete the Python Controller's private dictionary between frames. 2005-01-23 01:38:41 +00:00
Kester Maddock
a1f0f165e4 Added Joystick sensor (from snailrose) 2005-01-23 01:36:29 +00:00
Kester Maddock
a572d196e6 Don't fail on mesh objects with no faces. 2005-01-22 23:46:54 +00:00
Willian Padovani Germano
1da3b9f517 BPython:
- Stephane Soppera added long missed support for edge data in Blender.NMesh + related doc;
- Michael Reimpell improved script registration (fixes bug report #2160) and the file and image selectors in Blender.Window (improved with suggestions from Yann Vernier).  They now suppport methods as callbacks;
- World.get/setMode were not registered, so could not be directly called (reported by Ken Hughes).  Still needs some work to improve things, including docs.

Scripts:
- Jean-Michel Soler updated his texture baker based on input from Appolux;
- Campbell and Jean-Michel improved the bvh importer: faster, better float units scaling (by Campbell); supports Poser 3.01 files (by jms).

Thanks guys!
2005-01-22 02:48:03 +00:00
Kent Mein
5822d4601d fixed animations using jpeg (bug # 2166)
Basically the deal was on the last fix (multiple opens/closes to a filehandle)
I changed the return values to match other image formats 0=fail and 1 = good
(was 1=fail 0=good before)
I Didn't update the animation code to see this so it was
thinking the first frame failed because it was looking for the old return code.

Kent
2005-01-21 17:50:11 +00:00
Rob Haarsma
136ecd4644 Modified interface texture font support, which should work nicely with the freshly added bFTGL library.
Also removed some redundant #include's on some files.
2005-01-21 14:48:03 +00:00
Kent Mein
64ef688695 Added some extra comments about creating a new image format.
Kent
2005-01-21 13:02:14 +00:00
Ton Roosendaal
1f394a8e0c Bug fix 2116
Area lights with "Noise" dithering only worked for first area light, the
other ones then used wrong table... bug since area lights are in blender.
2005-01-21 12:46:59 +00:00
Ton Roosendaal
8c271d7acb Bug 2162
Current cvs bug; the texture 'crop' lines were not drawn using correct
Panel/Window transform. Simple fix.
2005-01-21 11:07:35 +00:00
Ton Roosendaal
b561ca88cf Reading .blend from runtime closed file handle twice... seemed to crash in
windows? Weird, was a commit from april last year (Nathan) and nobody has
reported errors. (bug report 2155)
2005-01-20 10:33:11 +00:00
Rob Haarsma
9fddd2bdec Added experimental option to use GL textured interface fonts.
Set preferred method in userprefs->language & font.
Kinda requested by Kaito, i'm sure he regrets after seeing
my code changes.

This commit includes a patch provided by Jacques Baurain,
which seemed nescessary to handle font sizing properly.
Thank you !
2005-01-19 13:53:43 +00:00
Kent Mein
731c69d6ed Melchior FRANZ's patch to allow the normal +- to work with border select.
Currently it doesn't conflict with anything and I think it makes sense.

Kent
2005-01-19 13:01:49 +00:00
Kent Mein
d32f4a2851 Jacques patch to get things compiling on windows.
basically it returns NULL for two functions that had their entire body
commented out.

Kent
2005-01-19 12:53:47 +00:00
Ton Roosendaal
92586e1ee2 Using halo (particle) render with OSA and gauss had error.
Removed it in OSA from special thread loop now, making it unthreaded but
render OK. Main reason; subpixel-based adding with gauss doent work
for halos yet.

Unified render does that though, but result is just filter, no real
subpixel.
2005-01-18 18:31:18 +00:00
Ton Roosendaal
672d28534c Render lens flare works again. Didn't work due to wrong value for zbuffer
passed on (zbuffer values changed with previous commit)

Also fixed previewrender for lens flare.
2005-01-18 15:22:42 +00:00
Kent Mein
f13bff1588 The non scons specific stuff for bug tracker bug #2131
Basically removed #include <iostream.h>
from some files that didn't need it (and I'm assuming it caused problems)

I'll leave the scons stuff for someone else to look at since I don't really
use it.

Kent
2005-01-18 14:17:44 +00:00
Stephen Swaney
c448aa60ca remove gcc compiler error using -pedantic flag:
comma at end of enumerator list

If this change causes problems, feel free to back it out.

I am trying to get gcc to complain about mixed declarations and
code since that breaks on platforms that only support C89/C90.
2005-01-16 17:59:23 +00:00
Ton Roosendaal
9c6094ee0e Fix for bug #2152
Using File->Save Image menu didn't work while Stars were drawn... the used
method to save an image (mainqenter F3 key) is a bit awkward anyway, so
replaced with proper BIF_xxx call.
Reason for mainqenter not to work was RE_draw_stars() function calling
a blender_test_break(), swallowing queue events. Very bad and need review.

Small tweak in previewrender; preview type Cube now displays texture
coordinates better (it showed a bit too much)
2005-01-16 11:29:44 +00:00
Kester Maddock
dd0d5c26fa Add an Python Material example 2005-01-16 06:27:12 +00:00
Kester Maddock
3b91ea4309 Unified KX_BlenderPolyMaterial & GPC_PolygonMaterial into KX_PolygonMaterial.
Make game engine materials use Zoffs in Materials.
Added Python material hooks.
2005-01-16 06:02:06 +00:00
Kester Maddock
5fcf39d2a5 Added getDistanceTo Python method (thanks Charlie C) 2005-01-16 05:55:04 +00:00
Rob Haarsma
981ecc390a Made Suzanne speechless again... what was i thinking. 2005-01-14 17:35:24 +00:00
Willian Padovani Germano
3ba66e20b9 BPython:
- Added Blender.UpdateMenus() + doc: so scripts can automatically update Blender menus when they create (or download or whatever) new scripts to be registered.
- Removed a long deprecated function from the Blender module (release dict).

Matt (broken) mentioned the UpdateMenus function a couple weeks ago.  I also updated the Save Current Theme script to use it.  This is all related to his ideas to use scripts to save and restore themes and e.g. render presets.
2005-01-13 19:19:05 +00:00
Kent Mein
bb0da8a7aa Did some checking to make sure a variable exits before trying to use it.
(Submitted by Vidarino on irc)

I also cleaned up a couple of warnings in the file.

Kent
2005-01-13 13:58:29 +00:00
Stephen Swaney
df1acca4c5 New methods: Curve.isCyclic(), CurNurb.isCyclic() for checking if curve is cyclic ( closed ). Both methods are boolean.
Patch contributed by Toni Alatalo.  Thanks.
2005-01-13 03:42:53 +00:00
Willian Padovani Germano
9f43accdb2 BPython:
- patch by Jonathan Merritt: new function Blender.Draw.Image() + its doc;
- patch by Campbell Barton: .users attribute for many types;
- tiny internal change in nmesh.hasVertexUV() method.

Thanks to Jonathan and Campbell for the patches and the patience!
2005-01-13 03:04:12 +00:00
Brecht Van Lommel
5161998bbe Softbody commit broke compilation of blenderplayer. There was a dependancy
from blenkernel/ to src/. Moved the offending functions to blenkernel...
2005-01-12 23:57:33 +00:00
Jens Ole Wund
912ef80bdc big softbody commit
some vertex group , weight painting stuff too
/me crosses fingers it does not break anything
2005-01-12 22:28:13 +00:00
Rob Haarsma
ea740dea02 Let's keep Blender a monkey app. 2005-01-12 12:25:56 +00:00
Rob Haarsma
309792d206 RGBA Quicktime movies give codec compression crashes on OSX.
Reverting Quicktime export to ARGB for both OSX and Windows to
keep some consistency on Blender's output.
2005-01-12 11:03:25 +00:00
Rob Haarsma
180b8f48ce Trying to make RGBA Quicktime movies on OSX, instead of ARGB. 2005-01-12 10:34:05 +00:00
Rob Haarsma
9848800799 Reverting Quicktime movie export method for OSX. 2005-01-12 10:18:47 +00:00
Ton Roosendaal
ced255eb24 bug fix #2118
Rendering wire didnt work;
- for edges that are not in face, with subsurf on
- same for new Edges block, subsurf or not
2005-01-11 13:06:21 +00:00
Ton Roosendaal
b1a8ef6b30 Bug fix #2061
On exit editing mesh being linked multiple times, and other object-users have
a deform, the displists were not recalculated.
2005-01-11 12:14:45 +00:00
Rob Haarsma
343712f367 Improved functionality for Quicktime movie export.
Exporter now uses less memory and might be a little faster.

Needs tesing on OSX, there might be RGBA endian issues.
2005-01-11 10:58:58 +00:00
Roel Spruit
9817939b20 Bug #2119
The Separate option was missing from the toolbox and headermenu for curves,
Added it to both.

First commit in a loooooooooong time, have to start with something small ey ;)

Roel
2005-01-10 18:17:41 +00:00
Kent Mein
3c592ec3ad This is for bug # 2068
I standarized the returns on a failed opening of the output file for
the above image formats.

I also cleaned up a couple of warnings.

Kent
2005-01-10 16:22:40 +00:00
Ton Roosendaal
d1d8950eac Somehow in 2.3x the file window collum display got cancelled. It even
pretended to be a user-preset, which it isnt yet.

Brought back collum display and wait for severe complaints to have it as
option in user settings. :)
2005-01-10 12:34:39 +00:00
Alejandro Conty Estevez
8cfa2b247a border render support through plugin. Working with current yafray CVS version 2005-01-09 21:53:50 +00:00
Ton Roosendaal
3806b050d6 Mixup of vectors in VecAngle3 (caused by me switching order of args!)
Resulted in wrong angle display, especially in trias
2005-01-09 14:28:18 +00:00
Ton Roosendaal
8229ea59de Different integer overflow test for zbuffering, this due to mist+wire bug
that seems not to be solved on intel platforms.

Previously, a positive signed integer overflow addition was checked by
assuming it to become negative. Now it checks 'safe' with this version:

if(vergz > 0x7FFFFFF0 - dz) vergz= 0x7FFFFFF0;
else vergz+= dz;

Reason why using signed ints is cumbersome... overflows for unsigned are
much easer to find.
2005-01-09 13:36:14 +00:00
Jiri Hnidek
5ea2ed38e7 - correct position of "Edge Angles" and "Face Area" in button window 2005-01-08 23:31:04 +00:00
Ton Roosendaal
3c921cc8e8 The "teac" (measurement info) patch from Campbell Barton
Cleaned code somewhat (half the size!) and applied some changes:
- made it compatible with selection flags for new mesh editing (edge/face)
- renamed 'face angles' to 'edge angles' and made it display angles for
  2 selected edges too
- removed the confusing convention that always drawed the info if one
  of the vertices of edge/face/angle was selected. now it only displays on
  minimum of 1 full edge or face selected.
- made it react to "zbuf occluded selection" option (for zbuffered text)
- made it also colorize text for white theme color (TH_TEXT)

On larger meshes this info still draws very confusing. The idea of displaying
the info on 1 vertex selected was probably to show values while grabbing,
although that didnt really work for angles. One idea could be, for transform,
that it draws all lenghts/angles/areas that get changed during transform

All in all, still useful addition tho!
2005-01-08 21:16:24 +00:00
Ton Roosendaal
9adbe1ec0e Star halos still used old fashioned byte colors, instead of nice floats :)
Reason for them to show wrong.
2005-01-08 14:45:58 +00:00
Ton Roosendaal
9393e490af Fix for commit of yesterday, where wire render + mist was solved.
Had moved normalizing the view vector just a couple of lines to much...
causing OSA vectors to be calculated wrong, and image texture to show
much to filtered (nearly invisible)
2005-01-08 14:22:27 +00:00
Ton Roosendaal
d56680bc38 Bug fix #2113
A series of hide/reveil in editmode didn't result in identical selection
always, except in face mode. current method works in all modes, including
mixed (face+edge for example)
2005-01-08 13:50:44 +00:00
Ton Roosendaal
8b3eea1798 - Added warning print and return in glaDrawPixelsSafe when zoom level
exceeds window (glScissor) size. Apparently zooming in on one single
  pixels larger than a window isn't well supported.
- Moved drawing of editmode objects to 2nd loop in drawview.c, this
  makes sure draw-extra wire is always visible correctly
2005-01-08 13:15:43 +00:00