Comments (3)
I added up and down movement with the T and G keys.
I'm not sure what the best approach would be to add this orbit feature. You can sort of achieve orbiting by "circle strafing" using mouse look. I'm open to ideas, though. I hesitate to add configuration or "modes" or additional UI to the app. So, not sure how to add this.
from splatapult.
Added in commit 28b0b9d You can download a new executable here
from splatapult.
Hi, thanks for the quick response.
I have tested T and G keys, and it works.
I tried to add a mode for bullet time (just like -v for VR mode).
Then just edit Process
, https://github.com/hyperlogic/splatapult/blob/main/src/app.cpp#L797
add a mode to setting camera matix directly instead of calling flyCam->Process
,
which value just like LearnOpenGL site provided: https://learnopengl.com/Getting-started/Camera
const float radius = 10.0f;
float camX = sin(glfwGetTime()) * radius;
float camZ = cos(glfwGetTime()) * radius;
glm::mat4 view;
view = glm::lookAt(glm::vec3(camX, 0.0, camZ), glm::vec3(0.0, 0.0, 0.0), glm::vec3(0.0, 1.0, 0.0));
(Instead of glfwGetTime()
, just using SDL ticks or just count a number instead.)
before view
is set to camera matrix, inverse is needed. I donot know why.
And the bullet time should work.
from splatapult.
Related Issues (12)
- Camera is moving too fast when fps is low HOT 2
- VR creator with limited amount of CLI experience HOT 1
- Quest 3: VR head not working HOT 2
- Some questions. Thank you HOT 2
- Multi VAO loading HOT 6
- Qestion about quantizedZs value in presort_compute.glsl HOT 3
- Compilation errors on Linux. HOT 5
- Error on loading files HOT 4
- pre sort by depth sould be "float depth = p.z / p.w"? HOT 3
- Question about render result on different PC HOT 19
- VR control does not working when using other VR headmount HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from splatapult.