Commit Graph

194 Commits

Author SHA1 Message Date
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
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
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
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
736e3572c8 * from Douglas Bischoff: improved tooltip descriptions. 2003-07-11 17:34:08 +00:00
448079caa2 * fixed bug "turntable deviation" #364
In fact, I made it working different, much more cooler!

-------The BallTable Method TM (patent pending)------------

This is a hybrid of the old turntable method (a virtual camara that rotates
around a table) and the trackball method. Mouse moving horizontal, gives
the turntable effect, but with vertical movement it works like a trackball.
So, vertically moving in the middle of the window exactly mimics old
turntable method, moving vertically in the window edge gives a 'twist'
rotation.

Try the turntable for fun! (is in user settings menu)
2003-07-11 16:50:31 +00:00
d4c849391e - fixed a problem with face select and vertex paint modes by removing
the check for nors != NULL (sorry miencho!).
2003-07-10 20:53:59 +00:00
ad6ddb4689 * cursor now moves with arrow keys again for OSX
* this apple method to do it generates unwanted events, so it could not
  be used for the menu mouse-move trick. this is #ifdeffed
* we should re-evaluate if this mousemove should remain in blender...
  there are better ways (scrolling contents of pup)

* plus: removed warnings from drawview.c
2003-07-10 20:34:41 +00:00
1e666dd1cd - this smartass hack, which was removed from editscreen.c, was needed for
the textwindow. doh!

  now you can press alt+p in textwindow again!
2003-07-09 20:09:07 +00:00
5aa8ac36a1 * F11 now nicely pops/pushes a window again
* works (for OSX) only with the commit I did in Ghost 1 minute ago!
* needs to be checked for all other OS's.
2003-07-09 16:02:39 +00:00
4f571661bd * typing special characters in 3d font now works again. For OSX ghost will
use the internal standards for ascii values > 127
* someone has to check how X11 returns these values! Otherise the old
  Blender codes (alt+s = german S) will still work though.
* still have to check this for the buttons!
2003-07-09 15:54:52 +00:00
e45e145453 * fixed two more subloops in button drawing for new optimized usage of
glFinish(). Textbut and the 'But' (render for example) didnt work proper.
2003-07-08 10:15:42 +00:00
b4b10dfff8 * removed the global uiFrontbuf from interface.c (and python, it was used
there)
* replaced with nice local (uiBlock) storage of what goes on in drawing.
  it now only calls a glDrawBuffer() and glFinish() when it is actually
  needed

Result: interface drawing in general is speedy again, especially for gfx
cards that dont allow frontbuffer drawing, and copy stuff to the frontbuf
with a glFinish() call.

Needs to be tested on all platforms... report to me when you see problems
like menus not drawing correctly, tooltips not drawing or not disappearing,
etc.
2003-07-07 15:50:44 +00:00
a4cc2526b3 - miencho (thanks) pointed me to a weak line in draw mesh solid call.
it used a pointer, without checking its value. the calling code
  took care it never happened, nevertheless... added a comment there.
2003-07-06 20:18:42 +00:00
6cc94449de - bug #149.
rendering the current view (view3d header, render) didn't render solid
  drawmode.

  found missing opengl initialization calls in opening renderwin.
  probably remains from ghost migration.
2003-07-05 20:38:31 +00:00
c69da232bb - removed "SILLY CODE" comment. :-)
it is from zr, a note to remind him to have better drawing of procuderal
  duplicators in Blender. the code below that comment was mostly a copy
  from code it used before already.
  writing it more efficient would give a gain of about 20 code lines...
2003-07-05 16:50:29 +00:00
d4d09cbab8 - included missing <string.h> (ah, these warnings...) 2003-07-05 14:24:05 +00:00
c861979e7b - fixed small bug in menu button (preset dirs) in fileselect. When the menu
is empty (no $HOME/.Bfs and first time use of FileSelect) it was empty,
  causing a nasty drawing error.
  It now doesn't draw the menubutton when there are no preset dirs yet.

- removed 'unused variable' warnings from space.c
2003-07-05 10:50:42 +00:00
20df091c04 - fixed bug that printed: "bad call to addqueue: 0 (18, 1)" when using
layer buttons or the layer hotkeys 1-2-3-etc.

  was caused in space.c, view3dlock, untested call to addqueue.
2003-07-04 20:15:13 +00:00
123696724d * Updated the version number of Blender to display 2.27.NewPy1 in the User
Interface only. Commented the original line.
  THIS NEEDS TO BE RESTORED TO THE ORIGINAL LINE WHEN A RELEASE IS BUILD!!!
2003-07-01 17:05:28 +00:00
cee677699f - added a call calc_meshverts_ext_f2(void) which:
- projects vertices without clipping code (xs at 3200)
 - sets flag in editvert ( eve->f & 2) when it is not visible

general note: that flag is only valid after the calc_meshverts_ext_f2
call. it is a free flag. be aware that selection
is stored in bit 1 (eve->f & 1)
2003-06-30 19:51:18 +00:00
e1efa7378c - accidentally commited an armature test call. sorry! 2003-06-30 19:13:18 +00:00
79c2d74cd1 - fixed bug #316
just two icons that were switched accidentally
2003-06-30 14:11:17 +00:00
Chris Want
67e9d00936 Moved the OPENGL_HEADERS to the end of the include paths
-- so that render.h from another package (such as the
Xrender extension on irix) doesn't conflict with the
blender one.
2003-06-29 17:21:38 +00:00
6a3f419142 - bug #152
databrowse didnt work in NLA editor, for a SHIFT+A "add action"

  note: the databrowse is a bit out-focus here. the NLA editor is not yet
  well integrated with blender standards. For example, there is no awareness
  of an 'active' strip in the editor, which makes a bit clumsy code. It needs
  some more work... options in the window header etc.
2003-06-27 15:26:23 +00:00
6bbf245d17 Deleted a ^S that was causing it to not compile on my linux box.
Kent
2003-06-27 15:17:22 +00:00
ff5e41cd3e - when inserting first key for Bone in Armature, the IpoWindow now gets
a signal to change to 'show Action Ipos'
  Makes it all a tad more clear...
2003-06-27 12:58:21 +00:00
57aaef00ee - part 1 of investigating how armatures work!
fixed display error; when adding a 'key' in a bone, it didnt update IpoWindow
2003-06-27 12:34:44 +00:00
1a32001efc - renderwindow doesn't close when switching from dispwin to dispview
- left out activating the mainwindow after rendering, this is confusing
2003-06-23 08:20:30 +00:00
7cab51c0a6 - for test: action space has no 'winchange' callback now.
well. the callback is empty!
2003-06-21 21:34:40 +00:00
3da49a30c8 a slider for controlling mist intensity 2003-06-21 20:54:33 +00:00
e4bbc590a4 - added (old supposed) option for uiDefBut to define the amount of digits
in NUM or NUMSLI buttons. It's the last but one argument...

  i really have to put the interface.c API doc back!!! :-)

  (get probably killed for the fact that i have it)
2003-06-21 20:24:42 +00:00
7c0712fb7f - removed 'gldrawbuffer()' and 'glflush()' calls from main buttons loop.
these calls were done without anything actually happening, for each
  mouse move, and caused quite some slowdown at OSX.
  Might help the other platforms as well. Check it by just moving your mouse
  around, over window edges, buttons, etc. Especially Radiosity buttons
  were horrible slow in a large window

  Please be aware that the above calls cause a swapbuffer at OSX!
2003-06-20 12:49:36 +00:00
Casey Corn
17ca22de62 Rolled back comments. According to new guidelines, no .c files
should contain doxygen comments.
2003-06-18 03:48:55 +00:00
63537d1e77 - fixed error, in 'z buffer' mode the bg color in 3d view was too bright 2003-06-15 19:08:50 +00:00
6a626aa60d Draw extra wire tuhopuu-style. Fixes Bug 244 2003-06-15 10:25:12 +00:00
6dc3b9107c - removed test_break call from #ifdef POSIX part, to prevent double
it now is a cross platform function again.
2003-06-14 14:49:12 +00:00
7a096b4664 - Holger's patch to enable ESC detection when rendering (Win32). 2003-06-14 13:34:35 +00:00
c812a09ff3 - bug fix #257
crash when ESC out of FileSelect, while previous window Info (user settings)
2003-06-13 19:56:15 +00:00
2f56a9b0ca - fixed bug #228
dispview mode now doesnt disappear immedately after render
  oh, what i hated that one!
2003-06-13 16:51:22 +00:00
2b3bc332e4 - again same commit, typo in comment was still there... 2003-06-13 14:04:06 +00:00
075ce0954b - fixed commenting in renderwin.c 2003-06-13 13:54:08 +00:00
073bed8601 - restored functionality for ESC detection during rendering which doesnt
eat up cpu time.
  in fact it was in pre-ghost blender already.

works now for all posix OS's, except for windows. now working on getting
that fixed as well. until then, rendering will be slow at win32...


cvS: ----------------------------------------------------------------------
2003-06-13 13:46:00 +00:00
84a34eb9b8 - at systems with an inverted-draw crosshair cursor (editmode) it was almost
invisible in the 3d win. Jacked up the background grey a tinsy bit to
  improve that.
  also made the grid lines brighter, less distracting that way.
2003-06-13 13:43:27 +00:00
35007d147e - Completely reorganized renderwin.c, added readable comments and removed
confusing functions which were only used once.
  Part of examining how renderwindows get opened/closed, and to enable
  a third option for render output to ImageWindow in Blender
2003-06-12 10:07:36 +00:00
8ffd18a56c - fixed timer-wait for tooltips. this annoyed me such a long time!
now the tooltip waits 0.3 seconds before popping up.
2003-06-11 19:38:35 +00:00
51c8bb6077 - OSX bugfix: drawing selection code for vpaint and faceselect happens in AUX
buffers now. It only works nice at OSX (tested, linux and windows do not
  support it nicely)
  This fixes the annoying flashing during paint or select
2003-06-11 15:43:20 +00:00
47e7e146ba - Makefile: removed 'creator lib' compiling. only 'publisher lib' is used 2003-06-11 15:41:11 +00:00
2c6da7a2db - OSX bug: selecting vertices in imagewindow didnt draw in frontbuf visibly
added a glFlush
2003-06-11 15:40:25 +00:00