Walk Navigation: Controls to adjust jump height interactively #109827
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#109827
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Andras-Borsanyi/blender:interactive-jump-height"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In Walk Navigation mode with gravity enabled, the jump height is often inappropriate for the scene that you are viewing and it is annoying to go into preferences and change it there every time. This is a small feature that lets you change the jump height in modal walk navigation as you go, i.e. if there are varying elevation changes across the scene.
Pressing '.' increases, ',' decreases the jump height (because these keys are the same for most layouts). The setting in preferences is still loaded as default when starting walk navigation.
Hi, thanks for working on this. Looks good so far. Small change requested:
@dfelinto , agree with this improvement? AFAIK you are the original author of walk/flg navigation :)
@ -898,0 +906,4 @@
#define JUMP_HEIGHT_MIN 0.1f
case WALK_MODAL_INCREASE_JUMP:
walk->jump_height *= JUMP_HEIGHT_FACTOR;
keep
jump_height
value within finite range.Without upper bound, jump will be way too high.
Hi, this file is now moved to c++:
093a4d63f3
So, merge the main branch into your working branch, refer wiki
As requested, I capped the jump height (to 10 units).
PS: That is a lot of commits, I hope I did it right.
Unfortunately, merge did not happen correctly :/
Which command you ran for updating the branch to main?
this is expected:
I had to tell git how to merge, I think what I ended up doing was rebasing to the latest version. It was honestly a bunch of convoluted steps I might not have understood entirely. I once had to resolve a conflict and I chose the later version (nullptr instead of NULL in line 175), was that the problem or was it the whole rebasing thing? I might need to go back and just try again.
Guess rebasing does this, not entirely sure though.
If you're having trouble to revert these changes, feel free to ask in #blender-coders
0241990a3a
to80cca8de7e
This time I did
merge --no-rebase
and I think it worked.Thanks. Looks correct now :D
@dfelinto wrote the walk navigation code so I'll defer the further review to him
@ -898,0 +908,4 @@
case WALK_MODAL_INCREASE_JUMP:
walk->jump_height *= JUMP_HEIGHT_FACTOR;
if (walk->jump_height > JUMP_HEIGHT_MAX) {
guess we can use
min_ff/max_ff
instead ofif
conditions but fine with current code too :)Indeed better to use min/max functions.
Also, is the jump height being preserved across the session? (similar to how we preserve the speed)
I have made the requested changes and also fixed some problems with changing the jump height mid-air.
Thanks :)
just spotted one small change
@ -528,0 +539,4 @@
}
walk->jump_height = 0.0f;
Remove trailing whitespace: image
Removed the whitespace :)
Thanks :)
@PratikPB2123 can you handle the commit + release notes? The code seems fine, so if you tested it, it is good to go.
Thanks @Andras-Borsanyi for the patch :)
Sure. Will check once again before committing.
Thanks, merged into master :D
Also added to release notes: https://wiki.blender.org/wiki/Reference/Release_Notes/4.0/User_Interface#General
(I hope release notes changes are correct)