Skip to content

Commit

Permalink
Add collision viewer for Jak 1 Custom levels
Browse files Browse the repository at this point in the history
  • Loading branch information
Zedb0T committed Dec 27, 2024
1 parent 0e55ff6 commit 46e634d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion game/graphics/opengl_renderer/OpenGLRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,8 @@ void OpenGLRenderer::dispatch_buckets_jak1(DmaFollower dma,
m_category_times[(int)m_bucket_categories[bucket_id]] += bucket_prof.get_elapsed_time();

// hack to draw the collision mesh in the middle the drawing
if (bucket_id == 31 - 1 && Gfx::g_global_settings.collision_enable) {
if (bucket_id == (int)jak1::BucketId::MERC_PRIS_LEVEL0 &&
Gfx::g_global_settings.collision_enable) {
auto p = prof.make_scoped_child("collision-draw");
m_collide_renderer.render(&m_render_state, p);
}
Expand Down
4 changes: 2 additions & 2 deletions goal_src/jak1/pc/debug/default-menu-pc.gc
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@
(cond
((-> arg value)
(false! (-> arg value))
(logior! *vu1-enable-user-menu* (vu1-renderer-mask tfrag trans-tfrag tie tie-near))
(logior! *vu1-enable-user-menu* (vu1-renderer-mask tfrag tie tie-near))
(true! *generic-tie*))
(else
(true! (-> arg value))
(logclear! *vu1-enable-user-menu* (vu1-renderer-mask tfrag trans-tfrag tie tie-near))
(logclear! *vu1-enable-user-menu* (vu1-renderer-mask tfrag tie tie-near))
(false! *generic-tie*))))
(-> arg value))

Expand Down
2 changes: 1 addition & 1 deletion goalc/build_level/common/gltf_mesh_extract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "common/math/geometry.h"
#include "common/util/Timer.h"
#include "common/util/gltf_util.h"
#include <common/util/image_resize.h>
#include "common/util/image_resize.h"

using namespace gltf_util;
constexpr int kColorTreeDepth = 13;
Expand Down

0 comments on commit 46e634d

Please sign in to comment.