Giter VIP home page Giter VIP logo

picassoct / spring Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spring/spring

1.0 1.0 0.0 165.71 MB

A powerful free cross-platform RTS engine

Home Page: https://springrts.com/

License: Other

CMake 1.25% Lua 3.06% C++ 78.13% C 14.69% Awk 1.20% Java 0.10% Objective-C 0.17% Makefile 0.01% Shell 0.20% Python 0.25% CSS 0.04% PHP 0.03% Smarty 0.01% GLSL 0.37% HTML 0.23% NSIS 0.14% Perl 0.09%
augmented engine game inversekinematik reality rts

spring's People

Contributors

abma avatar amdmi3 avatar ashdnazg avatar cleanrock avatar deadnightwarrior avatar det avatar dylan16807 avatar flozi avatar gajop avatar gnibu avatar googlefrog avatar hoijui avatar hughperkins avatar imbaczek avatar jk3064 avatar madrman avatar majboredom avatar n0u avatar picassoct avatar psarkozy avatar renefritze avatar rlcevg avatar rtri avatar rwestberg avatar spliff avatar sprunk avatar tomjn avatar tvo avatar xiphux avatar zerver avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

spring's Issues

arcam branch

Goal:
Allow to controll springs camera with a augmented reality device (android cellphone).
Thus allowing for a tabletop like gameplay with cardboard vr.

What happened so far:
The Google AR- AP was modified to transfer coordinates to spring.
This worked, as insofar as you are now able with the ar_widget in journeywar to controll the camera in game with a cellphone running the app.

Whats missing:
A way to transfer the desktop view as video with transparent background back to the cellphone and overlay it in the app.

Ideas for the approach:

Plain MediaController + VideoView

A second option, one which allows us to actually play the video within our app, is to use the MediaController and VideoView classes provided by the Android SDK. The solution is fairly simple and you depend on no third party library, but that comes at a price. You have no easy control customization for the video player nor advanced options, you would have to build such features yourself. It goes somewhat like this:


view raw
video-view-layout.xml hosted with ❤ by GitHub

private void loadVideo() {
VideoView videoView = (VideoView) findViewById(R.id.videoView);
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(videoView);
Uri video = Uri.parse("http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4");
videoView.setMediaController(mediaController);
videoView.setVideoURI(video);
videoView.start();
}
view raw
video-view-implementation.java hosted with ❤ by GitHub

So if you need very raw video playback capabilities this might do the trick. You will have access to playback controls that fade away but customization is a bit trickier. Take into account you need to provide the actual URI to the video file, you cannot use youtube links. In order to be able to provide YouTube video content you would have to go over our last option in this post.

After that: Its code cleanup. Optimization hell. And then begging beneath the wall of the org repo, with minstrel songs, until kloot shows mercy.

ikdev branch

Goal:
Allow for units to use ik animation. Ik-Animations allow for a goal to be set, and the limbs of a unit to automaticall resolve that and reach for that goal. This is heavily used in many games, where the character interacts realistically interacts with its environment.

What happened so far:
A Sub-Lua Api was specified to allow for setting up of ik-chains in a Unit.
This was tested in a single player game (journeywar) with a test unit.
The tests showed that there are errors in my math-conversion and that my implementation is overly complex.
Targets from now on are only set in unit space. All correcting against unit turns etc, must happen in lua.

Whats missing:
Checking wether the Eigenlibrary synced. (If i remember someone in spring actually ported the library already - and its mostly templates.

Ideas for the final approach:

Simplify the code.
Clean up the code.
Bring it up to springs code-standards(Its somewhat hacky/newbish)
Test and write a lua unitscript implementation for world positions to set.
Known Problem is, that this will be heavily performance intensive, and thus should only be used by hero units / single event units (Giant Mechas, etc.)

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.