Commit Graph

  • b7796f5481 Yuck, forgot to uncommit the ugly version of Mat3ToSize(). Caused scaling to do very weird things on rotated objects. Ton Roosendaal 2005-04-04 14:21:09 +00:00
  • f10c10310f - change make_orco_displist_mesh to use current editmesh as source if needed. - don't return cached subsurf during editmode, order is messed up (fixes orco rendering). Daniel Dunbar 2005-04-04 12:22:33 +00:00
  • dfdb1bbd8a - dropped user specified vertex data functions for ccgsubsurf, didn't really add value. hardcoded to use float[3] now. Daniel Dunbar 2005-04-04 05:21:20 +00:00
  • 93c66febd7 - removed DispListMesh.{editedge,editface} - removed displistmesh_from_{mesh,editmesh} - removed EditVert.ssco - removed unused functions for DispListMesh DerivedMesh Daniel Dunbar 2005-04-04 04:50:41 +00:00
  • 876d8ef7b5 - removed subsurf.c from SConscript Daniel Dunbar 2005-04-04 04:21:01 +00:00
  • b88711b531 - moved subsurf_calculate_limit_positions to using ccgsubsurf - removed ME_CCG_SUBSURF define - dropped CCGSubSurf from editing menu... subsurf is always CCG now. Daniel Dunbar 2005-04-04 04:20:32 +00:00
  • 0b02d592b8 - work-in-progress: subsurf level 0 now just acts like a regular mesh, before it would follow subsurf code path by creating fake displistmesh, etc... kinda fun for testing but just annoying now. - change to creasing behavior, to make sure that with full creasing effect is just simple subdivision. Daniel Dunbar 2005-04-04 03:38:21 +00:00
  • 5c85bb9cd2 - kinda crazy, but replaced old ME_SIMPLE_SUBDIV method with just using regular ccgsubsurf but with crease set to full. Daniel Dunbar 2005-04-04 02:55:56 +00:00
  • fad97122aa Added a NO_NOR_RECALC context flag. With Individual extrude, the normals are already set by the extrude code, recalculating breaks them. Martin Poirier 2005-04-04 02:16:56 +00:00
  • 7b0a661413 - sorry, forgot to save before commit, part of vertex normal fix Daniel Dunbar 2005-04-03 22:02:03 +00:00
  • f186388b91 Removes global variable access from TransData conversion fonctions. Martin Poirier 2005-04-03 21:52:11 +00:00
  • da01fb62ac - added vertex normal calculation functionality to CCG subsurf (CCGSS is fast, but can be rather tedious to work with...) - vertex normals for smooth faces draw correctly now... this code also switched to drawing with GL_QUAD_STRIP which can be quite a bit faster (depends how fast graphics card calcs lighting, I get 50% faster here) Daniel Dunbar 2005-04-03 21:52:10 +00:00
  • a5e55df5ec - BLI_STRUCT_OFFSET was not defined correctly, fixed Daniel Dunbar 2005-04-03 21:45:43 +00:00
  • 41ad061a09 Error in Softbody goal-min and goal-max correction. It was giving not as result the range as indicated! Ton Roosendaal 2005-04-03 20:57:31 +00:00
  • 9ec8778288 SoftBody: Ton Roosendaal 2005-04-03 20:13:10 +00:00
  • 8d92e6ced2 Added more dependencies to softbody, for correct recalc For example; subsurfed softbody after play anim (ALT+A) didn't get cleared correctly. Darn where_is_object stuff! Ton Roosendaal 2005-04-03 16:57:16 +00:00
  • ec577aafaa - hidden edges were being drawn when DRAWEDGES was off Daniel Dunbar 2005-04-03 15:13:38 +00:00
  • bbcc63326e New minimal & 2D drawing type for Manipulators; try F10 "rt" on 5 (or 6 for same style in trackball arcs) Ton Roosendaal 2005-04-03 13:12:08 +00:00
  • 555287021a Hidden verts using mesh connected PET caused segfaults. Was caused by the scratch array offsets counting hidden verts when, obviously, it shouldn't. Martin Poirier 2005-04-03 06:09:31 +00:00
  • a289599184 update to add subsurf csg stuff Joseph Gilbert 2005-04-02 20:26:12 +00:00
  • 90df59630e More softbody goodness; Ton Roosendaal 2005-04-02 19:52:32 +00:00
  • fc663edf72 *** empty log message *** Joseph Gilbert 2005-04-02 18:42:30 +00:00
  • 31f50b91c0 Jacked up max resolu and resolv for Surface and Curve to 1024 Ton Roosendaal 2005-04-02 18:42:16 +00:00
  • d4de0b5dec - fix for drawing of hidden edges in editmode (w/ optimal off) kinda hacky because it is in derivedmesh implementation not drawing logic where I would prefer it to be. Daniel Dunbar 2005-04-02 18:37:18 +00:00
  • 0d78b56c5b - mesh was drawing edges underneath selected edges in optimal mode, waste of time! - made solid face drawing respect hidden faces - made selection work for hidden face drawing when select visible is on Daniel Dunbar 2005-04-02 18:21:50 +00:00
  • 3144d64076 - fix unused variable warning Daniel Dunbar 2005-04-02 18:20:03 +00:00
  • 2e9f9e90a6 A little housekeeping: Object.c - expand evil 1 character name. nicer error msg. doc/Object.py - clarify Object.getData() doc Stephen Swaney 2005-04-02 17:01:56 +00:00
  • 8b3c8698a8 - add include for allqueue prototype Daniel Dunbar 2005-04-02 15:56:16 +00:00
  • 88ea754045 Added signal OB_SB_REDO for ob->softflag to force a recalc. Now used after weight painting, so it updates immediately. Ton Roosendaal 2005-04-02 15:55:15 +00:00
  • 24c9f65056 - got tired of str[n]casecmp not declared warnings - added BLI_str[n]casecmp, use instead of regular versions - rewrote BLI_str[n]casecmp to not be stupid Daniel Dunbar 2005-04-02 15:36:57 +00:00
  • bdb86d7c67 Integration stage of Softbody project Ton Roosendaal 2005-04-02 13:57:23 +00:00
  • 02d3ad0b34 Median center with PET was wrong (reported by JMS). Martin Poirier 2005-04-01 20:04:24 +00:00
  • b8e4f1d2aa - bug fix for old subsurf, crash when using meshes with free vertices Daniel Dunbar 2005-04-01 19:51:28 +00:00
  • 189b465148 - pickle transform didn't work well, backed out... Daniel Dunbar 2005-04-01 19:15:45 +00:00
  • 312c8d146c Removed casting warnings from transform_manipulator. PET is now checked as a transform flag during transform. Much cleaner that way for NOPET context (extrude, duplicate) Added Sphere as a new PET falloff mode (icon and all) and reordered them around in a more logical fashion (IMHO). Martin Poirier 2005-04-01 18:39:39 +00:00
  • d5aaba6c81 Teeth's msvc6 projectfiles commit solved almost all my bf compile probs, only one problem remained; the including of <MT_assert.h> in the NG_network project. So here's a fix. Rob Haarsma 2005-04-01 11:26:03 +00:00
  • 5d78bafb67 - some code for testing the pickle matrix Daniel Dunbar 2005-04-01 06:13:30 +00:00
  • e2d8df3e78 - part of creasing changes Daniel Dunbar 2005-04-01 03:02:13 +00:00
  • 1065f9d6ed - apply spike crease bug fix to ccgsubsurf Daniel Dunbar 2005-04-01 02:52:55 +00:00
  • 1916552055 Since new transform and subsurf are default now.. no more need for the defines in the makefiles. Removed to prevent gunky buildup. Chris Burt 2005-04-01 02:28:39 +00:00
  • 4ef0170bfa - take out compile time conditional behavior of creasing for ccg subsurf (always on) - bug fix, creasing wasn't evaluated properly after incremental change Daniel Dunbar 2005-04-01 02:07:34 +00:00
  • 9184b03ddf Sacre bleh another bugfix! Martin Poirier 2005-04-01 01:25:00 +00:00
  • 4db0cbc741 Push/Pull (aka: non proportionnal resize, original idea by Robert Tiess) slipped in my last commit a bit, so might as well finish it. Martin Poirier 2005-03-31 22:18:08 +00:00
  • 7532aa248f Transform fixes Martin Poirier 2005-03-31 21:02:35 +00:00
  • cbc04194e5 Changing hard codec max frame release for a define (in blendef.h with the other maximums). Martin Poirier 2005-03-31 18:49:52 +00:00
  • e5d4f9d580 Some MSVC 6.0 projectfiles updates: Martin Poirier 2005-03-31 18:39:38 +00:00
  • fd877b69b6 Adding CCG stuff to MSVC 6.0 projectfiles Martin Poirier 2005-03-31 18:22:43 +00:00
  • bb29f12924 - potential fix for crash on amd64 Daniel Dunbar 2005-03-31 17:15:44 +00:00
  • 9259ff35a4 - switch to drawing aging in and out of optimal mode - switch to not using arena allocator in editmode for ccgsubsurf (memory doesn't get freed during incremental) Daniel Dunbar 2005-03-31 16:54:47 +00:00
  • 3428362140 Remove USE_CCGSUBSURFLIB stuff since it is always on now. Stephen Swaney 2005-03-31 16:21:08 +00:00
  • 1ed8f77f6b - disable overriding color (to show aging) during selection drawing Daniel Dunbar 2005-03-31 16:16:22 +00:00
  • cfbab6f6a4 - fix warnings for gcc - some subsurf settings not correctly changed in editmode Daniel Dunbar 2005-03-31 16:08:29 +00:00
  • d4b9ace5ae - adapt to reprototyping in BKE_DerivedMesh.h Daniel Dunbar 2005-03-31 15:57:18 +00:00
  • 9c91e1a954 - adapt caching check for G.editMesh->derived Daniel Dunbar 2005-03-31 15:55:31 +00:00
  • f0a8a93292 - removed USE_CCGSUBSURF define (always on now) - added G.editMesh->derived pointer... idea is to use this for mesh derived from editmesh instead of Mesh->derived (as the derived mesh tends to vary depending on what it came from). Daniel Dunbar 2005-03-31 15:44:05 +00:00
  • 0d35a1dd1e - fix some signed/unsigned comparison warnings Daniel Dunbar 2005-03-31 15:15:12 +00:00
  • eeb3e173a6 - perhaps I should commit a version that compiles Daniel Dunbar 2005-03-31 13:56:50 +00:00
  • ac35fb34b8 - committed VecLength function for theeth Daniel Dunbar 2005-03-31 13:44:23 +00:00
  • e62740fa01 Different floodfill method for PET connected with mesh. More accurate but needs two temporary scratch arrays to keep vectors and nearest element pointers. Martin Poirier 2005-03-30 23:19:42 +00:00
  • 84ccd0dcde - zero derived and decimated pointers on copy Daniel Dunbar 2005-03-30 18:06:42 +00:00
  • cc4320e790 - added dlm->medge for displistmesh_from_mesh Daniel Dunbar 2005-03-30 17:40:51 +00:00
  • 489b38fa40 - Claims of speed improvement last night were slightly overrated. Turns out there was a bug in recalc code where in editmode mesh was getting reevaluated all the time (because ob->disp doesn't get built in editmode). This should fix. - Fix some normal calculation/backwards face drawing Daniel Dunbar 2005-03-30 17:32:23 +00:00
  • 3fd3728000 Fix for centered submenu (for example py export script) also worked when menu didn't open to left/right but on top/bottom. Caused errors... Ton Roosendaal 2005-03-30 14:17:53 +00:00
  • 9b6febecd3 Two scons changes: Stephen Swaney 2005-03-30 12:13:02 +00:00
  • aa41e1ddc3 Bug in new drawing code; hack with storing stuff in editvertex->prev did not get restored OK. :) Ton Roosendaal 2005-03-30 10:12:05 +00:00
  • fef6e0012e - initial commit of a real (as in not just copying the DispListMesh) DerivedMesh implementation of CCGSubSurf. Only used in editmode at the moment, and does not draw smooth normals correctly. - Just in its own this brings a rather large speedup for editing subsurfs. Daniel Dunbar 2005-03-30 08:12:27 +00:00
  • e5d1411283 - add editedge and editface for displistmesh_from_editmesh Daniel Dunbar 2005-03-30 06:39:55 +00:00
  • f8248b23a7 - fix another minor use of wrong mface bug Daniel Dunbar 2005-03-30 06:24:34 +00:00
  • 347619f501 - fix silly bug in mesh DerivedMesh tex drawing func (only was drawing first face. - change DerivedMesh callback prototypes to help eliminate errors Daniel Dunbar 2005-03-30 05:57:40 +00:00
  • ae07d869a6 - strange drawing bug, wierd vertices were showing up (wrong DerivedMesh call) Daniel Dunbar 2005-03-30 05:35:01 +00:00
  • f49224137f - update to msvc7 projectfiles to accomodate recent file additions - fixed bad path in extern project file Joseph Gilbert 2005-03-30 05:19:33 +00:00
  • 11a96fdddc - restored msvc warning disable code Daniel Dunbar 2005-03-30 05:05:05 +00:00
  • cfd90889e2 - made some DerivedMesh drawing functions more generic (take callback to determine if element should be drawn and to set draw options), which meant some could be combined - eases implementation of new DerivedMesh types and keeps more app specific logic out of DerivedMesh implementations. Daniel Dunbar 2005-03-30 00:32:10 +00:00
  • 340748fd5c - zero derivedmesh pointers on load Daniel Dunbar 2005-03-29 17:52:14 +00:00
  • 70687a2e84 - removed dlm->flag Daniel Dunbar 2005-03-29 17:20:28 +00:00
  • 03e364aba6 - remove free_displist_by_type - free derived mesh on freedisplist_object... bit of a hack but just to be safe. oh dependency graph where are you! Daniel Dunbar 2005-03-29 17:10:07 +00:00
  • fa37194082 Prop mode goodie; Ton Roosendaal 2005-03-29 17:05:43 +00:00
  • a95d5d7312 - remove unused var Daniel Dunbar 2005-03-29 16:56:26 +00:00
  • e229722d5b - added Mesh->derived and Mesh->decimated DerivedMesh pointers - removed DL_MESH displist type!!!! Now store a DerivedMesh directly. - May still be some issues left having to do with releasing this at the right time (old code just splashed free_displist all over the place). Daniel Dunbar 2005-03-29 16:43:39 +00:00
  • da0a55d2b4 Tiny error in Jiri's commit. Unselected meta elements needs the quat flag too if they want to rotate using PET. Martin Poirier 2005-03-29 16:12:42 +00:00
  • 3ee7a1fa6f - print # bytes to add on sizeerror Daniel Dunbar 2005-03-29 15:31:35 +00:00
  • 607083cc9a Removed comma at end of enumerator list to please fussy compiler. Stephen Swaney 2005-03-29 14:27:20 +00:00
  • 4d4e776542 Changed: - memset(m_keyboard_vector,32,0); + memset(m_keyboard_vector,0,32); Kent Mein 2005-03-29 13:06:58 +00:00
  • 53437f9536 - it is possible to rotate with MetaBalls in edit mode now Jiri Hnidek 2005-03-29 10:03:30 +00:00
  • ea92a56193 - simplify extverts handling Daniel Dunbar 2005-03-29 07:58:56 +00:00
  • 4a5a9f4e49 - added drawFacesTex function to DerivedMesh with implementations - switched drawmesh.c to use new functions - WHEE! This is last such function that has to be written for the time being, and also effectively marks the end of DL_MESH! DispListMesh still hangs around as a kind of interchange format but should also die once DerivedMesh provides more intimate mesh access. Daniel Dunbar 2005-03-29 07:51:00 +00:00
  • 4c511daa88 - fix shadedisplist to use derivedmesh - also a bug fix! Made subsurfs now use tface colors when shading displist. Daniel Dunbar 2005-03-29 06:46:11 +00:00
  • 2b82405829 - zero DispListMesh.{editedge,editface} on copy - calc normals for mesh displistmesh's Daniel Dunbar 2005-03-28 21:53:26 +00:00
  • 67eaf69f3f - added mesh_get_derived_render - cancelled previous commit to add RE_findTFAce, instead just added a MemArena to render struct... free'd at end of render, can be used to store other data as well - switch rendering to using DerivedMesh API... this is slightly more inefficient now because it is doing some unnecessary copying. Can be fixed by defining a DerivedMesh function to convert the object into a render object (on todo list) Daniel Dunbar 2005-03-28 21:49:49 +00:00
  • 7dbb253908 - Funny joke! Blender gave "Can't apply deform to shared mesh" error and then went ahead and did it anyway. Someone is lying! Daniel Dunbar 2005-03-28 19:55:04 +00:00
  • 983745d102 - renderer currently uses links into tface structures that actually are owned by mesh (or displistmesh)... this causes problems for adapting to systems that build tfaces on the fly. Added RE_findTFace function to allow allocating tfaces inside renderer itself. Daniel Dunbar 2005-03-28 19:43:45 +00:00
  • f2d940aa1b - Bug fix, accidentally broke deform for non subsurfs. Daniel Dunbar 2005-03-28 19:41:33 +00:00
  • 85b9f7ccfb - switch some code to using BLI_strncpy (with right string lengths!) Daniel Dunbar 2005-03-28 18:37:19 +00:00
  • c094d49ed0 Shameless intrusive commit in Daniels beloved project! :) Ton Roosendaal 2005-03-28 17:17:51 +00:00
  • 9c48ebeaa3 Fix stupid error in connected code. Martin Poirier 2005-03-28 16:11:35 +00:00
  • b4ff308709 bug fix for #2096: - switched strcpy calls to strncpy using FILE_MAXDIR & FILE_MAXFILE to prevent buffer overruns. Non-windows code left untouched. :) Simon Clitherow 2005-03-28 15:29:59 +00:00
  • 137432637f - add bad level call stubs for bglBegin/bglVertex3fv/bglEnd Daniel Dunbar 2005-03-28 15:23:36 +00:00
  • c3abdd9608 Cleanup of widget code; Ton Roosendaal 2005-03-28 14:00:49 +00:00
  • cdd7e93566 - subsurf creation no longer needs extverts argument... removed Daniel Dunbar 2005-03-28 08:43:24 +00:00
  • 6a8fb8bf6c - added nors to DispListMesh (for face normals)... this is just to avoid throwing them on later with addnormalsdisplist which is just silly and burdensome. - renamed displist_calc_vert_normals to displist_calc_normals Daniel Dunbar 2005-03-28 08:17:51 +00:00