(January 2022) Monthly WIP Screenshot Thread

I took the entire week between Christmas and New Years to work on some critical remaining features for the MOSS (Mythruna Open Source Software) libraries. I had foolishly hoped that this particular feature would go more quickly and I could have spent the week doing cool stuff.

…such was not the case.

After a solid week of heads-down coding, I finally had something working earlier this evening only to discover a critical flaw that almost made me throw it all away. Fortunately, clearer heads found a work-around and now I can say that it works.

The short version is that this is similar to the work I did with Jaime and bullet as far as “reactive animation” goes. The tricky parts are that a) this works with my custom zoned physics engine, and b) it’s networked.

A driver object on the RigidBody that controls the AI, etc. decides what animations to play and how fast based on velocity, collisions, etc… then updates the collision shape hierarchy with the animation playback. This playback information is also sent across to the client using SimEthereal. The client can then sync the real mesh/skin animation.

Why is this important? Well, it means that the animation frames are synched and tweened just like position and orientation… and it’s all synched together. So they will always match.

Simple in principle. Hard to make it a generic-ish library. In retrospect, I probably could have hacked this into Mythruna in a couple days… 80% of the time was spent working out the design for the libraries.

For the best in the end.

14 Likes

I initially planned to post these in the July thread but kept stalling it until now. Some of the long time members might remember me working on my Hostile Sector project 10 (!) years ago.
A couple of years ago, I found myself in a situation with very little time to work on spare projects, but more time to think about them. I thought I had a mostly finished game ready to be polished up and started using what little time I had to refactor it and transform it into a location based android game instead of the desktop experience it used to be. I gravely underestimated the amount of work required and the time it would take. But I have a different mind set now than when I worked on this the first time. No pressure. If I don’t find it fun to work on, I won’t. Eventually it’ll be in a state where others may play it and find it fun. Or perhaps it won’t.
If it does, I’ll make more noise, but for now, there’s no “call to action”, or anything. I just want to show something :slight_smile:

Edit: Embedding Imgur gif’s doesn’t work?

11 Likes

To get a link from Imgur that I can share in JME posts I usually have to right click the image/gif, press open video/image in new tab, and then copy/paste the url that ends with .png or .mp4

1 Like

Wanted to try my hand at a FPS game, never did one. I wanted something simple so I picked duplicating Wolfstein 3D from the 90s in JME 3.5.

I started making one from going through JME examples and the jme cookbook book. Even though there are holes in implementation of some of those examples because they are not real world examples and can’t apply them to real game environments.

But it is working out, as it is a very simple frame work on what a feature can be used for…

I also, created a simple map make application to edit and create new maps. That is working out. I did look at Nifty but the “NO SPRITE SHEET” options in JME, it broke down pretty quickly just like JME. In JME I ended up writing my own shader to support sprite sheets, but I didn’t want to take the time to learn how to see if I could get nifty to work with sprite sheets since basic nifty doesn’t support it. Or at least I couldn’t locate support for sprite sheets.

I ended up with my on simple Gui system but I already did that 6 months ago with my Real Game I’m making.

It is turning out very good. I got simple AI routines in the game and the enemy moves around react to seeing the player and being shot at and shoots back. I’m missing different levels of reaction based on better enemies should react better than lower enemies.

It is a 3D game using Quads and textures for everything.

13 Likes

There is a jMonkeyEngine animation bug that causes him to “wig out” sometimes.

@pspeed please open an issue for the bug and provide details.

1 Like

I’m going to look into it myself some more first. It took me a few hours to rule out my own code and even than I’m only 99% sure.

But if you are curious, in my case I’m stepping through time with setTime() and have set the control’s global speed to 0 so that it never advances on its own. Mostly it works but every once in a while the armature goes all screwy (see video at about the 50 second mark 3… 2… 1…: MOSS - Networked Animation - YouTube)

I’ve gone as far as to log all of the times that I’m pumping, action changes, etc… nothing strange coincides with the glitch. Also, I’ve logged the location of attachments and they don’t seem to go screwy either but I only did limited testing with that trying to find a trigger to capture more state.

My suspicion is that some bit of math gets a time really close to the end/beginning of a tween and so has a tween time delta of something at or close to zero and the transform interpolations don’t like it.

2 Likes

and the jme cookbook book.

Looking great! And glad to see people still find that old book useful.

Its outdated in many areas, JME changed. The Particle system is broken in the book and the animation system call many deprecated methods. but able to figure out how to change it to fix current JME.

I have been working for years now to make bad weather look good, at least virtually. I decided that the latest improvements are worth a new video, which I proudly present to you. Unfortunately the video lost a bit of quality during the YouTube conversion.

What you can see, is an instrument approach in fog, with only 300 meters visibility. This reminds me of a few bad visibility approaches that I have flown in reality. The video starts at an altitude of 500 feet (displayed by the green numbers just below the aircraft symbol in the attitude indicator). The aircraft strobe lights are flashing outside and the landing lights brighten up the fog ahead of the aircraft. The autopilot is engaged until we see the approach lights and you can hear the beep noise as the autopilot is being disengaged. From that point on, I keep the wings level and a constant rate of descent with very small control inputs until shortly before touchdown.

There is still some work to do on aircraft systems, but as far as I know there is. no other flight simulator with that much lighting.

17 Likes

New Year new levels. Working on a cave design where parts of the ceiling fall on the player.

3 Likes