Commit Graph

849 Commits

Author SHA1 Message Date
Willian Padovani Germano
4856071402 Exppython:
Still compilation problems, wrong type returned in a function.
2003-07-19 21:04:33 +00:00
Willian Padovani Germano
b2d1921d26 Exppython:
- Trying to correct a compile problem. IpoCurve_Init wasn't declared in modules.h
2003-07-19 20:44:25 +00:00
Ton Roosendaal
9bf630a1f3 WARNING: with makefiles I could not get a stable blender compiled.
do a make clean in source/blender/ to be sure!

- Included the new shaders from Cessen... well, only the shader calls
  themselves. To make sure the shaders work I nicely integrated it

- MaterialButtons: layout changed a bit, but still resembles the old
  layout. The 'shader' options now are located together.

- Shaders are separated in 'diffuse' and 'specular'. You can combine them
  freely.

- diffuse Lambert: old shader
  diffuse Oren Nayar: new shader, gives sandy/silky/skinny material well
  diffuse Toon: for cartoon render

- specular Phong: new spec, traditional 70ies spec
  specular CookTorr: a reduced version of cook torrance shading, does
                     off specular peak well
  specular Blinn: new spec, same features as CookTorr, but with extra
                  'refraction' setting
  specular Toon: new spec for cartoon render

- default blender starts with settings that render compatible!

- works in shaded view and preview-render

- works in unified render

Further little changes:

- removed paranoia compile warnings from render/loader/blenlib

- and the warnings at files I worked at were removed.
2003-07-19 20:31:29 +00:00
Ton Roosendaal
8607322385 - fixed bug in renderwin zoom function. You now can press 'Z' in a window
again, and move your mouse around to scan the image.
  MiddleMouse works too, but less intuitive

- at some systems it is still slow, bad clipping code...
2003-07-19 20:19:31 +00:00
Ton Roosendaal
3d691c77cf - Blender in background render mode (blender -b) now reacts to CTRL+C
again. You'll have to do it twice... first CTRL+C will send an internal
  break (exit render loops)
- I prefer this in foreground mode too, but Python uses it as well, to
  escape from loops. We have to fix this once.
2003-07-19 20:14:07 +00:00
Jacques Guignot
542f05451a World : got rid of debug messages
Blender : declatation of the module IpoCurve
Ipo : modifications (new attributes) to keep the compatibility with 227 api
2003-07-19 08:32:01 +00:00
Jacques Guignot
d51107b804 Nex modules added to keep a minimal compatibility with 227 api 2003-07-19 08:29:55 +00:00
Ton Roosendaal
a851bf1b9c - fixed error message at OSX in interface.c, added a load of comments there
to understand the central loop better.
2003-07-18 18:32:57 +00:00
Alexander Ewering
a65ce19175 Added "Group selection" menu (SHIFT-G), which offers the following options:
1 - Children
2 - Immediate Children
3 - Parent
4 - Objects on shared layers

1: Selects all direct children of the active object
2: Select all children, children's children etc. of the active object
3: Makes the parent of the current object active, and deselects the
   active object
4: Selects all objects that share at least one layer with the active object

Useful for stepping through object hierarchies and for quickly selecting
objects belonging together.

See my message on bf-committers as well.
2003-07-18 15:50:33 +00:00
Alexander Ewering
c2f92ace79 Added a MEM_freeN call to sound_free_sound() to release bSound->stream
created by audio_makestream(). Fixes "Err Totblck stream len..." messages
and memory leak.
2003-07-18 15:30:12 +00:00
Stefan Gartner
2b40962ea5 properly fix the fix this time (I need more coffee...) 2003-07-18 14:43:18 +00:00
Stefan Gartner
c8aed03108 fix sdl detection 2003-07-18 13:34:55 +00:00
Ton Roosendaal
e00a27f9fd * fixed bug: pressing F11 in dispview mode opened a window
* new feature: rendering large images now displays correctly zoomed down
  in an imagewindow. The fact that it didn't also caused unpredictable
  slowdowns at various systems (tested osx, win).
  Of course after rendering you can still zoom in/out as usual.

* there was code that limits the maximum size of an imagewindow, keeping
  a small border around it free. By increasing the border 15 pixels I got
  huge speedup at OSX. Still looks good though...
  Needs more research what is happening here, maybe we need a user setting
  for it... but i rather implement the usage of the internal ImageWindow
  first.
  Still unsolved: 24 bits windows opening... I don't dare yet hacking in it
  Ghost.
2003-07-18 13:20:47 +00:00
Stefan Gartner
90f325ea6e some sdl related stuff:
* moved references to libSDL out of ifeq($(INTERNATIONAL), true) (win32)
and  ifeq($(WITH_FREETYPE2),true) (irix) conditionals in source/Makefile

* look for sdl in $(LCGDIR)/sdl if sdl-config isn't found

thanks to LarstiQ for doing most of the work
2003-07-18 10:11:40 +00:00
Simon Clitherow
93c9ed32b7 - added 'Textured Solid' to the Draw mode popup (DKEY). 2003-07-17 19:25:36 +00:00
Kent Mein
8a02f82636 Added $(NAN_SDLCFLAGS) to CPPFLAGS so that my machine
could find the SDL headers (SDL.h)

Kent
2003-07-17 14:47:19 +00:00
Kent Mein
d0c6cf7758 Fixed a couple more warnings.
Kent
2003-07-17 14:19:55 +00:00
Kent Mein
c38faa3c1f fixed a warning by adding a newline to end of file.
Kent
2003-07-17 13:47:58 +00:00
Chris Want
e7d35b40b0 - Made references to SoundSystem look in intern instead of gameengine for
all platforms. Please test on non-linux/non-irix.
- Changed another libsoundsystem.a to libSoundSystem.a.
- Removed comments refering to fmod (I assume it's not coming back ever)
2003-07-17 03:36:25 +00:00
Chris Want
ae512b137c Changed some occurances of the lib 'soundsystem' to 'SoundSystem'
(seems half of the references were one way, the other half were
the other way). Also made irix link to $(OCGDIR)/intern/*SoundSystem/*
instead of $(OCGDIR)/gameengine/*SoundSystem/*
2003-07-17 02:36:56 +00:00
Willian Padovani Germano
68b3cfbbe5 Exppython docs:
- Minor: fixed wrong url to www.python.org/doc (had written 'docs').
2003-07-17 00:26:33 +00:00
Chris Want
0fde8dedf0 Sound support for irix 2003-07-16 23:53:09 +00:00
Kent Mein
6dcc5b030e Further fixes to the old makefiles.
Kent
2003-07-16 19:53:53 +00:00
Florian Eggenberger
899a12a5cb -SDL links now on windows for cygwin-msvc and cygwin-gcc. 2003-07-16 19:53:48 +00:00
Kent Mein
8dd015e9b0 Hopefully update for NaN Makefiles for the moving of SoundSystem.
I need to get openal working on my machine before I can test it so
if it doesn't work feel free to fix it.  Hopefully this will be
the majority of the stuff though.

Kent
2003-07-16 19:00:04 +00:00
Simon Clitherow
ce3e8ecf0d - moved the 'Enable All Codecs' button over in the info window (for Win32) 2003-07-16 18:35:12 +00:00
Michel Selten
05cec80893 * Updated the auto* build system to compile again.
SoundSystem has been moved from source/gameengine to intern. This was needed
  because functionality from SoundSystem was needed by
  source/blender/src/editsound.c.
* Removed the option for the openal check in configure.ac. It's needed now by
  SoundSystem
* Removed the functionality for checking if 'noaudio' was provied on the
  commandline. Now audio is default on.
2003-07-16 18:23:50 +00:00
Chris Want
fbdc3ca860 Was doing #include "FTF_api.h" instead of #include "FTF_Api.h" 2003-07-16 04:53:15 +00:00
Willian Padovani Germano
d6c7427053 Exppython docs:
- Added a very brief intro to the api doc and updated the command to generate
  the documentation (it's in a comment in Blender.py). Improved the NMesh ex.
2003-07-16 01:44:51 +00:00
Rob Haarsma
aec17932a0 Added newline to file (seeing tinderbox burn...) and
declared the BMF_Font struct for proper headerfile handling.
2003-07-15 15:09:40 +00:00
Kent Mein
288f37903b Was including BMF_api.h instead of BMF_Api.h
Kent
2003-07-15 14:43:18 +00:00
Rob Haarsma
0ed095bbb1 Removed the old INTERNATIONAL Drawstring constructions.
These are now handled through BIF_DrawString(...) in src/language.c,
where it chooses between the old BMF and the new FTF DrawString.
2003-07-14 13:48:44 +00:00
Simon Clitherow
53c8eb3095 - updated MSVC 6 project files to include the sequencer audio support 2003-07-13 21:48:05 +00:00
Alexander Ewering
63323fd0e2 - Fixed two swapped array indices in seqaudio.c which prevented panning
from working correctly

- Added MKEY for muting audio strips (as they can't be part of a meta strip
  anyway)
2003-07-13 21:43:15 +00:00
Alexander Ewering
6914b1a197 Finally changed the Blender version (BLENDER_VERSION) to 228!
(Some of the audio features do a version check in do_versions
(usiblender.c, readfile.c) and depend on this to convert fields in older
(<2.28) files).

I also removed the "2.27.Newpy.1" line from headerbuttons.c, it now shows
"www.blender.org 228" again.
2003-07-13 21:29:44 +00:00
Wouter van Heyst
4f27386740 Commit message and the brunt of the code courtesy of intrr, apologies for the
size of this;


Finally, the Sequencer audio support and global audio/animation sync stuff!
(See http://intrr.org/blender/audiosequencer.html)

Stuff that has been done:

./source/blender/blenloader/intern/writefile.c
./source/blender/blenloader/intern/readfile.c

Added code to make it handle sounds used by audio strips, and to convert
Scene data from older (<2.28) versions to init Scene global audio settings
(Scene->audio) to defaults.

./source/blender/include/BSE_seqaudio.h
./source/blender/src/seqaudio.c

The main audio routines that start/stop/scrub the audio stream at
a certain frame position, provide the frame reference for the current
stream position, mix the audio, convert the audio, mixdown the audio
into a file.

./source/blender/makesdna/DNA_sound_types.h

Introduced new variables in the bSound struct to accomodate the sample
data after converted to the scene's global mixing format (stream, streamlen).
Also added a new flag SOUND_FLAGS_SEQUENCE that gets set if the Sound
belongs to a sequence strip.

./source/blender/makesdna/DNA_scene_types.h

Added AudioData struct, which holds scene-global audio settings.

./source/blender/makesdna/DNA_sequence_types.h

Added support for audio strips. Some variables to hold Panning/Attenuation
information, position information, reference to the sample, and some flags.

./source/blender/makesdna/DNA_userdef_types.h
./source/blender/src/usiblender.c

Added a "Mixing buffer size" userpref. Made the versions stuff initialize
it to a default for versions <2.28.

./source/blender/makesdna/DNA_space_types.h
./source/blender/src/filesel.c

Added a Cyan dot to .WAV files. Any other suggestions on a better color? :)

./source/blender/src/editsound.c

Changes (fixes) to the WAV file loader, re-enabled some gameengine code that
is needed for dealing with bSounds and bSamples.

./source/blender/src/editipo.c
./source/blender/src/drawseq.c
./source/blender/src/editnla.c
./source/blender/src/space.c
./source/blender/src/drawview.c
./source/blender/src/renderwin.c
./source/blender/src/headerbuttons.c

 - Created two different wrappers for update_for_newframe(), one which scrubs
   the audio, one which doesn't.
 - Replaced some of the occurences of update_for_newframe() with
   update_for_newframe_muted(), which doesn't scrub the audio.
 - In drawview.c: Changed the synchronization scheme to get the current audio
   position from the audio engine, and use that as a reference for setting
   CFRA. Implements a/v sync and framedrop.
 - In editipo.c: Changed handling of Fac IPOs to be usable for audio strips as
   volume envelopes.
 - In space.c: Added the mixing buffer size Userpref, enabled audio scrubbing
   (update_for_newframe()) for moving the sequence editor framebar.

./source/blender/src/editseq.c

Added support for audio strips and a default directory for WAV files which
gets saved from the last Shift-A operation.

./source/blender/src/buttons.c

Added Scene-global audio sequencer settings in Sound buttons.

./source/blender/src/sequence.c

Various stuff that deals with handling audio strips differently than
usual strips.
2003-07-13 20:16:56 +00:00
Willian Padovani Germano
9cb79c6534 Exppython:
- "last minute" updates to documentation and two modules.
2003-07-13 16:28:17 +00:00
Simon Clitherow
08b6d716b0 - fixed the output file path for python project (MSVC 6) 2003-07-13 11:23:36 +00:00
Jacques Guignot
482a8a5880 forgotten to remove the calls to removed functions... 2003-07-12 21:31:55 +00:00
Jacques Guignot
65237d2936 Doc for the world module. Got rid of some unuseful fields in World module.
The last doc  ;-))
2003-07-12 20:48:56 +00:00
Willian Padovani Germano
6046d05a7e Exppython:
- A few more changes to integrate the documentation:
    Instructions to build it with epydoc are on the file Blender.py.
2003-07-12 18:21:07 +00:00
Willian Padovani Germano
c467b19c75 Exppython:
- More documentation files for epydoc.
- Few minor changes in other files.
2003-07-12 18:02:54 +00:00
Jacques Guignot
37c4fa647d Effect module documentation. What can more tedious than writing docs ?... 2003-07-12 14:35:49 +00:00
Simon Clitherow
ac09398c37 - cleaned up MSVC 6 project files (removed non-existing .h files, etc) 2003-07-12 12:49:36 +00:00
Chris Want
307586f03f EXPYTHON in now the only python for the Makefiles build. 2003-07-12 00:46:43 +00:00
Simon Clitherow
70ee786960 - removed exppython project (which is now the new BPY_python project!) 2003-07-11 20:18:47 +00:00
Simon Clitherow
557040d8b1 - removed old freeze and python projects, exppython now compiles by
default. (MSVC 6)
2003-07-11 20:10:24 +00:00
Ton Roosendaal
60dddf84ab * selecting objects has a different frontbuffer drawing handling now.
instead of drawing everything again, in all windows, it restricts to
  the active and previous active object. when there are more objects to
  be redrawn, it does a normal swapbuffers.
  Result is it all redraws & selects a lot faster in complex scenes

* Little fix in "BallTable" routine when moving mouse vertical out of
  the 3d window.
2003-07-11 20:02:52 +00:00
Simon Clitherow
94f8098660 - removed freeze project from intern build (MSVC 6) 2003-07-11 19:34:20 +00:00
Ton Roosendaal
736e3572c8 * from Douglas Bischoff: improved tooltip descriptions. 2003-07-11 17:34:08 +00:00