Giter Site home page Giter Site logo

Comments (3)

hyperlogic avatar hyperlogic commented on May 25, 2024

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.

hyperlogic avatar hyperlogic commented on May 25, 2024

Added in commit 28b0b9d You can download a new executable here

from splatapult.

oUp2Uo avatar oUp2Uo commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.