taylor
d3d8a5f15d
check_values() shouldn't be inline anymore
...
remove useless neb2_get_fog_intensity() call
s/alocate/allocate/g
2005-06-19 09:03:05 +00:00
taylor
0fba391cbb
really needed to mention those two things as well given the types of changes those are
2005-06-19 02:42:21 +00:00
taylor
d12a2fb8b4
add a _fast version of bm_unload() to be used in modelinterp and future graphics API code
...
clean up some modelinterp code to not use memcpy() everywhere so it's more platform compatible and matches old code (Jens Granseuer)
NaN check to catch shards-of-death and prevent hitting an Assert() (Jens Granseuer)
fix jumpnode code to catch model errors and close a memory leak
make the call to bm_unload_all() after model_free_all() since we will get bmpman screwups otherwise
don't show hardware sound RAM when using OpenAL build, it will always be 0
print top-right memory figures in debug builds slighly further over when 1024+ res
2005-06-19 02:28:56 +00:00
taylor
3f6e13d20b
use vm_malloc(), vm_free(), vm_realloc(), vm_strdup() rather than system named macros
...
fixes various problems and is past time to make the switch
2005-05-12 17:49:18 +00:00
taylor
75332108e5
update of bmpman and model bitmap management, well tested but things may get a bit bumpy
...
- use VM_* macros for bmpman since it didn't seem to register the memory correctly (temporary)
- a little "stupid" fix for dds bitmap reading
- fix it so that memory is released properly on bitmap read errors
- some cleanup to model texture loading
- allow model textures to get released rather than just unloaded, saves bitmap slots
- bump MAX_BITMAPS to 4750, should be able to decrease after public testing of new code
2005-04-21 15:49:21 +00:00
taylor
7e3b7769c6
many, many compiler warning and header fixes (Jens Granseuer)
...
fix free on possible NULL in modelinterp.cpp (Jens Granseuer)
2005-04-12 05:26:38 +00:00
taylor
7f786136a6
s/vector/vec3d/g, better support for different compilers (Jens Granseuer)
2005-04-05 05:53:25 +00:00
wmcoolmon
2c2a6334db
Big, massive, codebase commit. I have not removed the old ai files as the ones I uploaded aren't up-to-date (But should work with the rest of the codebase)
2005-03-25 06:57:38 +00:00
taylor
fc56aaebff
I think I deserve a medal or something for that one :)
2005-03-25 01:10:51 +00:00
taylor
b399461826
fix compiler warnings with mismatched types and unused variables
...
cleanup some debug messages so they can be turned off if needed
get rid of extra strstr() check for thrusters since it should never get that far anyway
page_in/page_out of model glows should be better now
removed a bunch of unneeded casts and get type specific math functions right
2005-03-24 23:36:14 +00:00
phreak
ba4b720a99
draw paths and docking points using HTL
2005-03-20 20:01:15 +00:00
bobboau
e0907340c1
added a geometry batcher and implemented it in sevral places
...
namely: lasers, thrusters, and particles,
these have been the primary botle necks for some time,
and this seems to have smoothed them out quite a bit.
2005-03-16 01:35:59 +00:00
taylor
405ba066b9
change min/max to MIN/MAX to fix GCC problems
...
add lab stuff to Makefile
build unbreakage for everything that's not MSVC++ 6
lots of warning fixes
fix OpenGL rendering problem with ship insignias
no Warnings() in non-debug mode for Linux (like Windows)
some campaign savefile fixage to stop reverting everyones data
2005-03-10 08:00:18 +00:00
Goober5000
5548a8e954
edited for language ;)
...
--Goober5000
2005-03-08 03:50:25 +00:00
bobboau
37bfe59c6e
commit of render target code, d3d should be totaly functional,
...
OGL still needs implementation.
2005-03-07 13:10:22 +00:00
bobboau
9c9876909b
oh, hey look I've commited something :D
...
animation system, weapon models detail box alt-tab bug, probly other stuff
2005-03-01 06:55:45 +00:00
wmcoolmon
b94b107822
Added a white component to lightning so it isn't just a big blue block
2005-02-27 23:42:07 +00:00
taylor
2223aed74b
clean up some model related globals
...
code to disable individual thruster glows
fix issue where 1 extra OGL light pass didn't render
2005-02-15 00:06:27 +00:00
taylor
280066b619
fix Error() check so that it doesn't hit on MAX_BUFFERS_PER_SUBMODEL-1
2005-02-12 12:17:54 +00:00
taylor
b155e6ebd3
merge with Linux/OSX tree - p0204-3
2005-02-04 23:29:32 +00:00
Goober5000
ebf7f23559
bah - rolled back the HTL fix that doesn't really work
...
--Goober5000
2005-01-30 10:49:26 +00:00
Goober5000
be761d4fc1
nitpicked some boolean tests, and fixed two small bugs
...
--Goober5000
2005-01-30 09:27:41 +00:00
wmcoolmon
309b9ef3a7
Improved user-friendliness - give an Error instead of a CTD
2005-01-30 03:23:22 +00:00
phreak
180d4f7168
fixed error message again :)
...
-p
2005-01-29 15:40:22 +00:00
wmcoolmon
d0de69e805
Added better too-many-textures error message
2005-01-28 23:45:23 +00:00
Goober5000
a746194c10
cleaned up some build warnings
...
--Goober5000
2005-01-28 11:39:18 +00:00
taylor
0268e7ef01
add model_page_out_textures() for use in techroom
...
make model_page_in_textures() load more textures
2005-01-28 09:56:44 +00:00
taylor
e7119711d5
add MR_NO_FOGGING flag to easily render models without fog (warp model, targetbox models)
2005-01-01 19:45:32 +00:00
bobboau
631ad4151f
sevral feature additions that WCS wanted,
...
and the foundations of a submodel animation system,
the calls to the animation triggering code (exept the procesing code,
wich shouldn't do anything without the triggering code)
have been commented out.
2004-12-05 22:01:12 +00:00
taylor
1d084ab9cf
s/fisrt/first/g
2004-10-31 21:55:00 +00:00
taylor
d8d1502cd8
da simple IBX code, back to old line rendering for models since it should be faster for OGL now
2004-10-09 17:48:58 +00:00
Goober5000
3766a10e38
fixed a few warnings
...
--Goober5000
2004-09-05 19:23:24 +00:00
Kazan
864e1b5922
remove MCD complete
2004-07-26 20:47:56 +00:00
Kazan
428b3dcbc9
MCD - define _MCD_CHECK to use memory tracking
2004-07-12 16:33:09 +00:00
bobboau
a3422b4d01
added the working decal code
2004-07-11 03:22:54 +00:00
bobboau
97a5c86641
FVF code, only the data that is needed is sent off to the card,,
...
OGL can take advantage of this if they want but it won't break
anything if they don't. also state block code has been implemented,
that's totaly internal to D3D no high level code is involved.
2004-07-05 05:09:21 +00:00
bobboau
2798d7d62b
implemented index buffered background bitmaps,
...
OGL people you realy should get this implemented
2004-07-01 01:12:33 +00:00
bobboau
69aa1db7ab
high level index buffer suport and d3d implementation,
...
OGL people need to get this working on your end as it's broke now
2004-06-28 02:13:08 +00:00
phreak
7511e5c48d
don't fog the warp model if its being rendered
2004-05-12 22:50:31 +00:00
Goober5000
4d4e171d0c
added an assert
...
--Goober5000
2004-05-01 17:37:09 +00:00
taylor
82397f1ca3
use d3_draw_rod() for lightning arcs (for OGL fix), fix debris making HUD in OGL disappear
2004-04-26 12:38:35 +00:00
Goober5000
3e3bb4a80d
fixed some stub functions and a bunch of compile warnings
...
--Goober5000
2004-04-03 06:22:33 +00:00
bobboau
766ad441d0
fixed -spec comand line option,
...
probly some other stuf
2004-03-20 21:17:13 +00:00
bobboau
cc41a40735
new fighter beam code
...
fixed old after burner trails
had to bump a few limits, working on some dynamic solutions
a few fixed to background POF rendering
fixing asorted bugs
2004-03-17 04:07:32 +00:00
bobboau
07a789e9dc
fixed motion debris
...
animated laser textures
and added a new error check called a safepoint, mostly for tracking the 'Y bug'
2004-03-06 23:28:24 +00:00
Goober5000
7ef2ab2e39
Uber pass at reducing #includes
...
--Goober5000
2004-03-05 09:02:13 +00:00
phreak
0ac7262e3d
made OpenGl use the matrix api if called by g3_start_**** or g3_done_instance
2004-03-05 04:16:20 +00:00
bobboau
6bc70bcde1
fixed a Z buffer error in HTL submodel rendering,
...
and glow points,
and other stuff
2004-02-27 04:09:56 +00:00
randomtiger
402bee3d1d
Removed some uneeded code between NO_DIRECT3D and added gr_zbias call, ogl is set to a stub func.
...
Changed -htl param to -nohtl. Fixed some badly named functions to match convention.
Fixed setup of center_alpha in OGL which was causing crash.
2004-02-20 21:45:41 +00:00
bobboau
315eded215
fixed sevral asorted matrix errors,
...
OGL people make sure I didn't break anything,
most of what I did was replaceing falses with (if graphicts_mode == D3D)
2004-02-15 06:02:32 +00:00