Commit Graph

574 Commits

Author SHA1 Message Date
David Rose 47c1d1e360 Allow setAlphaScale() to override properly from below 2005-08-04 17:52:11 +00:00
David Rose 01333b339c *** empty log message *** 2005-08-04 01:01:31 +00:00
David Rose e5095d2c31 NodePath::set_normal_map() 2005-08-03 00:44:37 +00:00
David Rose 64aec0a447 bump maps should be animated with a character 2005-08-02 23:12:09 +00:00
David Rose 430abbeaa0 copy PortalNodes 2005-07-25 22:18:26 +00:00
David Rose 67e3f1daa6 expose Texture::T_depth_component, sanify a few things 2005-07-23 18:03:10 +00:00
David Rose 65458d9edd introduce 2-d TransformStates 2005-07-21 23:46:15 +00:00
David Rose af49897d5e fix dx resize crash some more; first pass at dx cube map support 2005-07-20 12:45:44 +00:00
David Rose efaa58b52f add TextureStage::CS_crossbar_stage 2005-07-12 18:14:40 +00:00
David Rose 512acd4adf add set_priority() to Light, PlaneNode 2005-07-12 01:08:02 +00:00
David Rose 4cb3cc6461 show_cpu_animation -> show_vertex_animation 2005-07-08 23:13:30 +00:00
David Rose 7a249dde55 add set_python_tag() etc. 2005-07-06 22:43:53 +00:00
Dave Schuyler 97428d8d0b more debug output 2005-07-06 02:22:27 +00:00
David Rose 0fb2f183e3 fix primitive bumpmap support 2005-07-02 13:21:46 +00:00
David Rose 166e7414a6 first pass at primitive bumpmapping support 2005-07-02 00:56:30 +00:00
David Rose bc0d509090 bam 5.0, new Geom implementation is now official 2005-06-30 17:42:21 +00:00
David Rose aa29e67c84 fix billboards, lod's, etc. 2005-05-27 22:03:23 +00:00
Roger Hughston a7333c252a *** empty log message *** 2005-05-27 01:52:22 +00:00
David Rose 7d29120cc9 add objecttype glow 2005-05-26 18:18:02 +00:00
David Rose 296721f061 simply & pandify dx8gsg some; rework gsg's external_transform and internal_transform 2005-05-26 00:09:52 +00:00
David Rose e001e35a60 support point sprites in more cases, for instance under render2d and under a scale 2005-05-25 12:27:42 +00:00
David Rose ace4407e7e regularize length of comment slashes 2005-05-19 00:22:28 +00:00
David Rose 29f35eb5bd build on gcc 4.0 2005-05-18 16:32:45 +00:00
David Rose 61c5bff601 build on gcc 3.4.3 2005-05-16 22:17:54 +00:00
David Rose 202acf938b don't crash loading old bam files 2005-05-13 20:05:47 +00:00
Asad M. Zaman 4d6434e210 added some more functionalities to the portal code 2005-05-12 23:33:03 +00:00
David Rose 0bd34f9f4b runtime improvements 2005-05-10 22:43:44 +00:00
David Rose 649dba257f build on Irix 2005-05-09 21:37:34 +00:00
David Rose dab9fd6d27 fix RenderState memory leak 2005-05-09 18:03:44 +00:00
David Rose 977f692331 NodeCachedReferenceCount 2005-05-09 13:59:15 +00:00
David Rose a2eb3859cb color-scale-via-lighting 2005-05-05 18:19:41 +00:00
David Rose 7d8cbc7a10 straighten out some confusing texture interfaces 2005-05-02 00:29:24 +00:00
David Rose 819355581e various pstats improvements; pstats use 32 bit headers; added "*" category; some minor fixes 2005-04-30 00:09:07 +00:00
David Rose 5e8855ebc8 fix calc_tight_bounds(), add NodePath::show_tight_bounds() 2005-04-29 23:06:27 +00:00
Darren Ranalli 4ef35cf5b1 drwr: fix crash on partial transform across compass 2005-04-29 21:37:13 +00:00
David Rose 4f1a424610 NodePath::get_mat(other) needs to return a concrete 2005-04-29 15:59:04 +00:00
David Rose 212fbc6c6b DO_DCAST, is_qpgeom() 2005-04-27 16:33:59 +00:00
David Rose b21d478e0b remove incorrect inline keywords 2005-04-27 15:00:52 +00:00
David Rose 10242ea013 new NodePath::set_attrib(), set_clip_plane(), etc. 2005-04-26 17:51:54 +00:00
David Rose f0e276fadd simplify pstats a bit; make qpgeom egg loader behave more like traditional 2005-04-25 22:23:18 +00:00
David Rose 9b560c9370 minor performance enhancements 2005-04-22 23:53:43 +00:00
David Rose 9c97466a56 remove empty nodes 2005-04-22 20:46:07 +00:00
David Rose f95a7c8dbe split out pgraph_composite[12].cxx into pgraph_composite[1234].cxx 2005-04-22 19:13:50 +00:00
David Rose 23e43fc04e hardware-point-sprites, GR_point_sprite_tex_matrix 2005-04-22 18:48:26 +00:00
David Rose 14a3fa8ac9 egg-flatten-radius 2005-04-22 17:53:59 +00:00
David Rose b1061ab1c3 collect_vertex_data() should preserve animation 2005-04-21 23:29:58 +00:00
David Rose a4677868e2 dx points and point sprites 2005-04-21 22:17:03 +00:00
David Rose 4eb9de4b8e unify() 2005-04-21 18:55:55 +00:00
David Rose 052e1bb02c fix probs with nonindexed qpgeoms 2005-04-20 04:35:31 +00:00
David Rose e0dca3b43b nonindexed primitives 2005-04-20 00:28:37 +00:00
David Rose 749e91d879 rename vertex -> row in GeomVertexData etc. 2005-04-15 23:48:43 +00:00
David Rose 4f47bf53e7 generalize index list 2005-04-15 14:32:31 +00:00
David Rose 2434300804 move rotate and decompose operations into cull 2005-04-15 01:41:07 +00:00
David Rose 00485bf6c8 GeomEnum unification; FrameRateMeter use UH_client 2005-04-14 17:23:36 +00:00
David Rose 500f17c091 robustify collect_vertex_data some more 2005-04-14 03:54:10 +00:00
David Rose d36604ab05 collect_vertex_data 2005-04-13 23:56:15 +00:00
David Rose f24c240d76 fix miscellaneous bugs 2005-04-13 00:33:59 +00:00
David Rose 07dabdc00e fix flash rate 2005-04-12 14:04:06 +00:00
David Rose 61dcffa70c qpgeom in bam files 2005-04-08 23:27:55 +00:00
David Rose ef53db4d3b qpgeom sprites in dx8 2005-04-08 19:53:00 +00:00
David Rose 43f4675d65 use new munger system for qpgeom sprites/points 2005-04-07 21:51:00 +00:00
David Rose 8dd9c1419c qpgeom particles 2005-04-06 04:06:28 +00:00
David Rose 20e9703887 handle use_qpgeom on more internal things 2005-04-04 22:58:35 +00:00
David Rose 2aad0846b9 use_qpgeom for TextNode, CollisionSolid 2005-04-01 01:47:36 +00:00
David Rose c6bcbe88f5 flattening qpgeom 2005-03-31 18:28:01 +00:00
David Rose 160099a0ec show-cpu-animation 2005-03-31 11:45:57 +00:00
David Rose 29d51a723b VertexRewriter; animation stats in cull 2005-03-28 16:15:26 +00:00
David Rose f8acb8d5d4 qpGeomVertexWriter 2005-03-27 16:43:46 +00:00
David Rose 3716a4b470 qpgeom animation 2005-03-25 21:59:20 +00:00
David Rose bd820acd49 beginning vertex animation in qpgeom 2005-03-24 23:48:15 +00:00
David Rose 6912d2d48c fix flatten in conjunction with billboards 2005-03-23 23:32:07 +00:00
David Rose 6512581e90 real state sorting 2005-03-22 23:28:49 +00:00
David Rose 699fe45d8b more caching/munger optimizations 2005-03-22 18:33:55 +00:00
David Rose ea51a7a6f7 ColorMunger 2005-03-21 17:52:15 +00:00
David Rose 92a93e8af0 clean up caching a bit, multitex in gl 2005-03-21 01:39:24 +00:00
David Rose d72e2da5c5 support flat-shading properly in new geom 2005-03-17 01:16:28 +00:00
David Rose 8b2854f82a better treatment of colors, etc in new geom loader 2005-03-15 14:42:40 +00:00
David Rose d4401c9c43 more new geom work 2005-03-15 00:22:22 +00:00
David Rose e20f73799c preliminary egg support for new geoms 2005-03-13 20:02:45 +00:00
David Rose 219f16c5de cache new geom munging 2005-03-12 01:17:56 +00:00
David Rose 5856cda6de better support for render-to-texture: keep buffers around until texture is gone too 2005-03-11 19:33:53 +00:00
David Rose c975b7cd49 initial checkin of experimental Geom rewrite--preliminary 2005-03-11 02:28:51 +00:00
David Rose f678c0c932 whoops, broke billboards 2005-03-09 18:40:30 +00:00
David Rose d46a88a76e CompassEffects and node-relative BillboardEffects now work on cameras 2005-03-05 14:28:58 +00:00
David Rose b90d220d87 prevent compiler warnings about unused ihasher and phasher 2005-03-05 00:00:14 +00:00
David Rose c045c5894d support real-time rendered cube maps 2005-03-04 22:28:19 +00:00
David Rose 001abb0edd unify Texture, ImageBuffer, and PixelBuffer; add 3-d and cube map textures 2005-03-03 20:12:09 +00:00
David Rose 4a5e1e825e is_ancestor_of(), get_common_ancestor() 2005-02-26 00:44:53 +00:00
David Rose ffdbf61985 TextureStage::M_blend_color_scale, TextureStage::rgb_scale, ColorBlendAttrib::O_color_scale, better handling of state changes in GL 2005-02-25 18:25:00 +00:00
Josh Yelon f15dce600b Fixes for gcc 3.4 2005-02-23 20:50:34 +00:00
David Rose 2a39759b85 fix PandaSystem.hasSystem() etc. 2005-02-19 00:00:47 +00:00
David Rose c71fd12dc7 assert not nan 2005-02-07 04:09:44 +00:00
David Rose 185fbf613e better antialias handling 2005-01-28 20:46:22 +00:00
David Rose d9d30855d0 fix line_width and RenderModeAttrib 2005-01-27 05:21:34 +00:00
David Rose f939c61b1a api-level antialias control 2005-01-27 02:38:11 +00:00
David Rose e91e72e6c5 fix memory leak in state cache 2005-01-26 01:06:39 +00:00
David Rose 9a71b58947 remove test_pgraph.cxx 2005-01-20 03:12:54 +00:00
David Rose 3a00e5c17e add set_pos_quat() and set_quat_scale() 2005-01-17 06:03:58 +00:00
David Rose 7e526eae81 use implicit scene in camera 2005-01-13 14:24:02 +00:00
David Rose 8446af5e3e refine comments 2005-01-09 02:42:35 +00:00
David Rose 2d3f3a6519 remove unused parameter 2005-01-06 15:56:42 +00:00
Dave Schuyler 64055186bb formatting 2005-01-06 06:24:35 +00:00
Dave Schuyler d973f8a2ac debug output 2005-01-06 06:23:24 +00:00
David Rose f8ddceb035 add RescaleNormalAttrib 2004-12-30 21:06:42 +00:00
David Rose a9f7756ba6 migrate more code to prc interface 2004-12-28 18:49:53 +00:00
David Rose 7d5ae1e3f6 move more config variables to new interface 2004-12-23 05:42:42 +00:00
David Rose 6aa586e0f0 fix inline keyword 2004-12-21 20:43:57 +00:00
David Rose c23be69d2b better GeomTransformer, flatten operations 2004-12-21 00:12:09 +00:00
David Rose ea4c5d4414 fix keystone correction logic 2004-12-15 23:41:10 +00:00
David Rose b1375f32a4 initial experiments with keystone correction, revisit M_multisample transparency, robustify MultitexReducer 2004-12-15 05:53:23 +00:00
David Rose 1a6e7ff58b refinements to multitexReducer 2004-12-10 22:38:21 +00:00
David Rose 48e09cda31 support GraphicsOutput::set_inverted() 2004-12-07 04:25:38 +00:00
David Rose 5761ae9d2c first pass at MultitexReducer 2004-12-03 00:01:02 +00:00
David Rose a25c6928d0 extend ColorBlendAttrib 2004-11-30 08:36:19 +00:00
David Rose 3e548e3663 new interrogate, minor config changes 2004-10-28 18:33:45 +00:00
David Rose ad1f64ba56 oops, false -> NULL 2004-10-25 17:23:28 +00:00
David Rose d2d927e4bc unused fhasher 2004-10-22 23:27:58 +00:00
David Rose 9f7b53723d no longer need to fmod getHpr; this is done in the dc syntax now 2004-10-14 22:25:58 +00:00
David Rose 13be5ce398 output draw_order too 2004-10-14 18:22:57 +00:00
David Rose dbb24d9cc9 phash_map, etc. 2004-10-02 05:07:16 +00:00
David Rose 557060cb1d weak pointers, and FadeLODNode fixes for instances/multiple cameras 2004-09-30 21:29:25 +00:00
David Rose 4679b6c98e omitted file 2004-09-28 00:49:22 +00:00
David Rose d31b91e758 prepare to implement AuxSceneData 2004-09-27 23:58:27 +00:00
David Rose e2118e70a0 use abs to compute lod distance 2004-09-27 22:58:28 +00:00
David Rose 4ebc6b2750 whoops, incorrect inheritance for FadeLODNode registry 2004-09-27 22:17:50 +00:00
David Rose d850afd71a Support collision solids under LOD nodes 2004-09-27 20:29:41 +00:00
Darren Ranalli 9a9719507c (drose) fixed fluid-ness of relative set_fluid_pos 2004-09-25 01:20:47 +00:00
David Rose 895b553cdb better NodePath interfaces for set_collide_mask() 2004-09-23 20:57:34 +00:00
David Rose 0369f07074 all nodes now have a CollideMask 2004-09-23 19:51:54 +00:00
David Rose 1704f805ba don't flatten GeomNodes within a Character 2004-09-22 20:45:14 +00:00
David Rose aa80a45ed2 fix gcc compiler warning 2004-09-22 20:44:55 +00:00
David Rose c3fd483b19 support egg2bam -combine-geoms 2004-09-21 22:21:53 +00:00
Asad M. Zaman b18ddfb9c5 implemented fire pit illumination where camera's position relative to the light and avatar is considered to apply illumination 2004-09-21 00:45:54 +00:00
Asad M. Zaman bc8f23db4b added pstats for polylight 2004-09-20 23:16:07 +00:00
Asad M. Zaman c6ab058556 moved some print statements 2004-09-16 01:31:33 +00:00
Asad M. Zaman 4cad0620c5 instead of parent light_color get the root node's color for scene_color. It is more reliable 2004-09-16 01:13:34 +00:00
Asad M. Zaman 34f16c04b0 has a new quadratic formula for attenuation and better weighing for multiple lights 2004-09-15 22:19:57 +00:00
David Rose 63a777ed78 fix list_cycles() 2004-09-13 17:26:16 +00:00
David Rose cf44a95d84 fix leak due to cyclic RenderState reference counts 2004-09-13 16:29:57 +00:00
Asad M. Zaman 10cc2dd9a9 added some debug variable and print statements to investigate polylight behavior 2004-09-11 00:25:28 +00:00
Asad M. Zaman 00dbb1617b added make_copy on polylightnode, more cleanup coming up 2004-09-09 23:50:15 +00:00
Asad M. Zaman c7793581fd oops, didn't want to check in the debug statements 2004-09-09 19:28:00 +00:00
Asad M. Zaman 459cd34f31 fixed the flicker bug where colors would snap suddenly 2004-09-09 19:26:55 +00:00
Asad M. Zaman 7ff0b84f6a cleaned up Shalin's polylight code. Still need to work on the flicker code, will do it tomorrow 2004-09-09 03:44:59 +00:00
Asad M. Zaman 7a0762a8c7 fixed egg2bam problem for PolylightNode 2004-09-03 01:27:46 +00:00
Greg Wiatroski 179d0c7e0c added comment 2004-08-28 20:55:04 +00:00
Greg Wiatroski 579febfb12 mod'd hpr's returned from nodePath get hpr to prevent overflow errors now that we are bounds checking on sendUpdates 2004-08-19 04:09:16 +00:00
Dave Schuyler 0550b1ec52 included searched paths in debug output 2004-08-07 01:20:23 +00:00
David Rose 1074bb00cc unavailable textures referenced by a bam file should not cause a crash 2004-08-04 23:35:51 +00:00
David Rose c23792f1dc add polylight support to NodePath; prevent compiler warnings; minor style changes to polylightEffect to be consistent with panda conventions 2004-08-04 22:41:10 +00:00
David Rose 29333d2966 reorder initializers to prevent gcc compiler warning 2004-08-04 20:58:32 +00:00
David Rose 597d379038 add NodePath::set_color_scale_off() and Camera::set_initial_state() and related methods 2004-08-03 19:59:21 +00:00
Shalin Shodhan ca14219654 Polylight copy constructor 2004-08-03 17:12:41 +00:00
David Rose f51f95b9bd prevent compiler warning 2004-08-02 23:09:29 +00:00
David Rose 31c4c28637 workaround compile bug in VC++ 2004-08-02 22:30:42 +00:00
David Rose 64aece121a robustify light interface further 2004-08-02 21:34:46 +00:00
David Rose 1707b5a38d fix pupils 2004-08-02 21:34:35 +00:00
David Rose bccfb40463 clean up texture, projector more 2004-07-31 15:49:22 +00:00
Shalin Shodhan 2ca64d594d Polylight Changes... return a new effect on all modifiers 2004-07-30 21:04:11 +00:00
David Rose 8b5014d01e clarify NodePath light interfaces 2004-07-30 18:59:42 +00:00
David Rose 249673d083 whoops, broke old LightAttrib interface 2004-07-30 17:33:18 +00:00
David Rose c7c639797e merge multitexture support in from branch 2004-07-30 00:38:35 +00:00
David Rose a60eb87e19 add NodePath::set_light() interfaces 2004-07-29 23:35:06 +00:00
Shalin Shodhan 2a6d6944b6 Polylight Color storage corrected and SeaPatch removed 2004-07-27 17:42:24 +00:00
Asad M. Zaman 6a635d6a31 one function needs to be a const 2004-07-20 22:34:52 +00:00
David Rose 4cbaf55032 add RenderAttrib::always_reissue() 2004-07-20 01:03:48 +00:00
David Rose ef7f69b7b0 dos2unix 2004-07-12 22:31:45 +00:00
Shalin Shodhan 0985080cf9 SeaPatchNode initial version based on DQ Pirates SeaPatchNode 2004-07-07 22:04:33 +00:00
Dave Schuyler 4c3ec477e3 fixed transposed chars in comment 2004-07-07 03:59:20 +00:00
Shalin Shodhan 53e73a5014 Pgraph: Sources.pp config_pgraph and pgraph_composite2 corrected 2004-07-02 17:07:37 +00:00
Shalin Shodhan 28473b21fe Pgraph: Sources.pp config_pgraph and pgraph_composite2 corrected 2004-07-02 17:05:56 +00:00
Shalin Shodhan e0245577d8 texGenAttrib.cxx hardcoded texture corrected 2004-07-02 17:02:27 +00:00
Asad M. Zaman b05e24e913 added a texgenattrib for spheremap 2004-07-02 00:12:40 +00:00
David Rose 0fe1abded6 relative set_fluid_pos 2004-06-24 23:11:22 +00:00
David Rose fa52cb7b11 fix missing return value 2004-06-20 19:54:38 +00:00
David Rose 672f62cb87 add options for individual compile 2004-06-18 23:10:39 +00:00
Shalin Shodhan 4a938d6085 FadeLOD and Polylight improved 2004-06-18 21:31:30 +00:00
Asad M. Zaman 9b3a2b9f98 took care of the dos file format on polylight* files and untabified 2004-06-18 19:10:39 +00:00
Shalin Shodhan 81e752915a Polylight API changes based on DRose's suggestions 2004-06-15 17:16:09 +00:00
David Rose 1cb510e7c1 untabify 2004-06-14 21:40:51 +00:00
David Rose 81cfa46069 compiler objections 2004-06-14 19:32:22 +00:00
David Rose 99d24b226b dos2unix 2004-06-14 19:22:15 +00:00
David Rose 90bf34ddcf Further NodePath::find() optimizations 2004-06-14 19:02:29 +00:00
David Rose 1898df8d54 dos2unix 2004-06-14 19:01:19 +00:00
Shalin Shodhan 88b9702137 Polylight API 2004-06-14 18:48:27 +00:00
Shalin Shodhan 3887f5681a Polylight API 2004-06-14 18:43:05 +00:00
Joe Shochet 15db33d2ff toon optimizations 2004-06-14 18:08:17 +00:00
David Rose ccc5dc547c fix bug causing runaway recursion 2004-06-12 03:17:19 +00:00
David Rose 9ca7c24919 _thick is unintialized here; don't try to use it 2004-06-11 15:40:06 +00:00
Asad M. Zaman 5a19e97534 fixed a bug with multiple sibling portals in view at the same time 2004-06-09 00:48:05 +00:00
Asad M. Zaman b9257df888 final test version of portal clipper. We should test this version well. 2004-06-08 03:03:42 +00:00
Asad M. Zaman bd2a0ea086 Recursive portal culling is implemented. This is the 3rd phase. There is one bug where portals are behaving weird when camera is right on the portal plane 2004-06-07 23:40:20 +00:00
Asad M. Zaman 01171fd7d2 portals are now clipped against view frustum to generate reduced frustums. There is a bug, which I will work on Monday 2004-06-05 01:56:33 +00:00
David Rose 1e10f59943 tweak comments 2004-06-04 16:52:46 +00:00
Asad M. Zaman d3d36911de 2nd pass portal clipping. This is integrated into scenegraph 2004-06-04 01:34:14 +00:00
David Rose ff8ac9f0a4 const 2004-06-02 21:15:20 +00:00
Asad M. Zaman c3b2cefc72 save as of june 1st 2004-06-02 17:04:38 +00:00
Asad M. Zaman 78c82c3747 interim save 2004-05-27 22:47:39 +00:00
Asad M. Zaman be718ced33 some fixes to make the portal node loaded as portal nodes 2004-05-25 00:26:46 +00:00
David Rose 9c8037ad62 parse portal syntax in egg files 2004-05-20 19:43:33 +00:00