Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
instant-ngp-tomography
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Pickles
instant-ngp-tomography
Commits
31e272c5
Commit
31e272c5
authored
2 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
Fix incorrect camera path buffer size
parent
61d355ee
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/neural-graphics-primitives/camera_path.h
+1
-1
1 addition, 1 deletion
include/neural-graphics-primitives/camera_path.h
src/camera_path.cu
+1
-1
1 addition, 1 deletion
src/camera_path.cu
with
2 additions
and
2 deletions
include/neural-graphics-primitives/camera_path.h
+
1
−
1
View file @
31e272c5
...
@@ -132,8 +132,8 @@ struct CameraPath {
...
@@ -132,8 +132,8 @@ struct CameraPath {
#ifdef NGP_GUI
#ifdef NGP_GUI
ImGuizmo
::
MODE
m_gizmo_mode
=
ImGuizmo
::
LOCAL
;
ImGuizmo
::
MODE
m_gizmo_mode
=
ImGuizmo
::
LOCAL
;
ImGuizmo
::
OPERATION
m_gizmo_op
=
ImGuizmo
::
TRANSLATE
;
ImGuizmo
::
OPERATION
m_gizmo_op
=
ImGuizmo
::
TRANSLATE
;
int
imgui
(
char
path_filename_buf
[
128
],
float
frame_milliseconds
,
Eigen
::
Matrix
<
float
,
3
,
4
>&
camera
,
float
slice_plane_z
,
float
scale
,
float
fov
,
float
aperture_size
,
float
bounding_radius
,
const
Eigen
::
Matrix
<
float
,
3
,
4
>&
first_xform
,
int
glow_mode
,
float
glow_y_cutoff
);
bool
imgui_viz
(
ImDrawList
*
list
,
Eigen
::
Matrix
<
float
,
4
,
4
>&
view2proj
,
Eigen
::
Matrix
<
float
,
4
,
4
>&
world2proj
,
Eigen
::
Matrix
<
float
,
4
,
4
>&
world2view
,
Eigen
::
Vector2f
focal
,
float
aspect
);
bool
imgui_viz
(
ImDrawList
*
list
,
Eigen
::
Matrix
<
float
,
4
,
4
>&
view2proj
,
Eigen
::
Matrix
<
float
,
4
,
4
>&
world2proj
,
Eigen
::
Matrix
<
float
,
4
,
4
>&
world2view
,
Eigen
::
Vector2f
focal
,
float
aspect
);
int
imgui
(
char
path_filename_buf
[
1024
],
float
frame_milliseconds
,
Eigen
::
Matrix
<
float
,
3
,
4
>&
camera
,
float
slice_plane_z
,
float
scale
,
float
fov
,
float
aperture_size
,
float
bounding_radius
,
const
Eigen
::
Matrix
<
float
,
3
,
4
>&
first_xform
,
int
glow_mode
,
float
glow_y_cutoff
);
#endif
#endif
};
};
...
...
This diff is collapsed.
Click to expand it.
src/camera_path.cu
+
1
−
1
View file @
31e272c5
...
@@ -147,7 +147,7 @@ int CameraPath::imgui(char path_filename_buf[1024], float frame_milliseconds, Ma
...
@@ -147,7 +147,7 @@ int CameraPath::imgui(char path_filename_buf[1024], float frame_milliseconds, Ma
int
n
=
std
::
max
(
0
,
int
(
keyframes
.
size
())
-
1
);
int
n
=
std
::
max
(
0
,
int
(
keyframes
.
size
())
-
1
);
int
read
=
0
;
// 1=smooth, 2=hard
int
read
=
0
;
// 1=smooth, 2=hard
ImGui
::
InputText
(
"##PathFile"
,
path_filename_buf
,
sizeof
(
path_filename_buf
)
);
ImGui
::
InputText
(
"##PathFile"
,
path_filename_buf
,
1024
);
ImGui
::
SameLine
();
ImGui
::
SameLine
();
static
std
::
string
camera_path_load_error_string
=
""
;
static
std
::
string
camera_path_load_error_string
=
""
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment