Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (804)
Games in Android Showcase (239)
games submitted by our members
Games in WIP (868)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Games Center / WIP games, tools & toy projects / Re: Billboard Sprite World on: 2018-08-15 19:43:59
<a href="http://www.youtube.com/v/HnOQ0PMNVhs?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/HnOQ0PMNVhs?version=3&amp;hl=en_US&amp;start=</a>

Progress has halted recently, but I managed to implement some cool features a while back. I got inspiration and motivation from tutorials of the almighty ThinMatrix to implement  reflections on water and a coloured sky, which look awesome when combined at the end.
The reflections are accomplished by rendering the world a second time, but from the mirrored position and rotation of the camera to the water plane. The resulting image is used as a texture in the sprite shader and blends the appropriate part of that texture onto reflective sprites. The obvious limitation is that reflections only work on the water plane. An alternative would be to use screen space reflections, though those aren't as perfect.
The sky is just a quad that fills the entire screen. The colors are interpolated based on the camera orientation. Changing them over time would be quite easy since they're passed to the shader as uniforms.
Performance has also improved a bunch, since before every sprite was generated as a quad by a geometry shader. Now this is only done close to the camera, and sprites in the distance are rendered as actual point sprites, which is much faster but offers less control and has some limitations.
I've also added simple moving entities, which currently just move in a straight line, and implemented basic 3D audio support using OpenAL.

New controls: R to toggle reflections, middle-mouse-button to zoom in.
Runnable jar: https://www.dropbox.com/s/tjsz7z3dtbc9lpe/Remo%20Engine%203.2.jar?dl=1

@Shatterhand Thanks! I've had some ideas about that, like in an entity creator GUI. It's at the top of my to-do list  Cheesy
2  Games Center / WIP games, tools & toy projects / Re: exploration rpg on: 2018-04-10 18:58:27
It sounds pretty cool!
For me it really helps to have a mood board to have something to work towards and stay inspired by ambiance wise.
It might also help to do some world building. Why is the player there and what do you want them to accomplish?

As for the progression, I know Minecraft increases the difficulty of areas based on how long you stay there and Terraria just has many biomes with specific difficulties. It would also be simple to increase the difficulty the further the player moves from their spawn point, but then there would need to be a reason for them to keep moving.
3  Games Center / WIP games, tools & toy projects / Re: Billboard Sprite World on: 2018-03-12 18:59:07
Thank you Smiley
Yeah, that might be fun. My progress is kinda slow but I'll try it sometime
4  Games Center / WIP games, tools & toy projects / Re: Billboard Sprite World on: 2018-03-06 18:59:24
Hmmm, I don't think I used tutorials. The only thing I knew how to do at the start was how to draw an image to the screen at a specific position.
The horizontal position of each object was calculated using the angle of the object relative to where the player is facing and the vertical position and scale depended only on the distance to the player.
But if you have any specific questions feel free to ask!
5  Games Center / WIP games, tools & toy projects / Re: Billboard Sprite World on: 2018-03-05 16:36:47
Thanks! Yep, it's nothing fancy though. Here's the current sprite atlas: https://i.imgur.com/8MHDrFF.png
6  Games Center / WIP games, tools & toy projects / Re: Billboard Sprite World on: 2018-03-05 08:40:46
Thanks :D
At the moment I just kind of want to make cool looking landscapes and to populate the world with more things.
I've considered adding some rpg elements to make it more fun to explore, but it would take a lot of effort from where it is now. Maybe one day though...
7  Games Center / WIP games, tools & toy projects / Billboard Sprite World on: 2018-03-05 00:14:12
I've been working on and off on this project for the last couple of years. I wanted to make a world entirely out of billboard sprites. These are some recordings I made during the beginning of development in 2015:
<a href="http://www.youtube.com/v/09h0BxeWngw?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/09h0BxeWngw?version=3&amp;hl=en_US&amp;start=</a>

This was all rendered on a Swing JPanel, which was pretty inefficient. I've since switched to OpenGL, but at the time I didn't know any better.

Here are executable jar files of some versions if you're interested:
- First version: https://www.dropbox.com/s/uh8j3z1n4p0c8n4/Demo.jar?dl=1
- Improved version: https://www.dropbox.com/s/0msinzk8tiqil0f/demo2.jar?dl=1
- Space version: https://www.dropbox.com/s/xg6uiw65uhg7fz3/SpaceDemo.jar?dl=1

A couple of months later I was figuring out how to render a floor/ceiling grid and made some recordings. I've ended up not using it in the end since I moved on to full 3D movement later on.
<a href="http://www.youtube.com/v/Sr6wNhH5n3k?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/Sr6wNhH5n3k?version=3&amp;hl=en_US&amp;start=</a>

Almost a year later I decided to pick up this project again. I had a course on computer graphics and gained some knowledge of OpenGL, but I didn't know how to use it in Java up until this point. Then I discovered LWJGL and I was able to relatively easily migrate from a Swing Canvas to legacy OpenGL. The performance was still pretty terrible, so I started from scratch in modern OpenGL and it got pretty weird.
<a href="http://www.youtube.com/v/RdkVq9jJl7c?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/RdkVq9jJl7c?version=3&amp;hl=en_US&amp;start=</a>

Then I needed a faster way to choose which objects to render than checking them individually, so I implemented an octree data structure to render groups of nearby objects. A node is subdivided after a maximum amount of objects are added and it redistributes its objects to its 8 child nodes. It also allows for a fast way to raycast through all objects, which I used to detect collision with the player.
<a href="http://www.youtube.com/v/ESeBlH5mxlg?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/ESeBlH5mxlg?version=3&amp;hl=en_US&amp;start=</a>

A few months ago I really got back into it and improved terrain generation using perlin noise and implemented some rendering optimizations.
<a href="http://www.youtube.com/v/KfrrW6qdRGQ?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/KfrrW6qdRGQ?version=3&amp;hl=en_US&amp;start=</a>

And that's where I'm at right now Grin
Try the latest version here: https://www.dropbox.com/s/4dps5zsd93tx3x0/Remo%20Engine%203.1.jar?dl=1
Controls:
  • F to switch between orbit/first person camera.
  • In orbit mode: Middle mouse button to rotate, shift + middle mouse button to move around, scroll to zoom and click to focus on an object.
  • In first person mode: WASD to move, g to disable gravity, choose a sprite with number keys, left click to place, right click to remove, scroll to move cursor
  • F3 for viewing octree nodes, v to toggle vsync, b to toggle normal/additive blending



Pages: [1]
 
Riven (578 views)
2019-09-04 15:33:17

hadezbladez (5495 views)
2018-11-16 13:46:03

hadezbladez (2398 views)
2018-11-16 13:41:33

hadezbladez (5756 views)
2018-11-16 13:35:35

hadezbladez (1219 views)
2018-11-16 13:32:03

EgonOlsen (4659 views)
2018-06-10 19:43:48

EgonOlsen (5667 views)
2018-06-10 19:43:44

EgonOlsen (3193 views)
2018-06-10 19:43:20

DesertCoockie (4093 views)
2018-05-13 18:23:11

nelsongames (5104 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!