Stunt Marble Racers 2

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki

Re: Stunt Marble Racers 2

Postby Brainsaw » Wed May 10, 2017 6:17 am

Splitscreen in general is not complicated in Irrlicht, see tutorial 18 ;)

In my special case you can have 2-4 player splitscreen. I just use a switch-case block for all the options to define the size of the screen part for each player and store it as a irr::core::reci object.

If shadows are active I then create a render-to-target texture for each player with the size of the rect defined before. XEffects "update" function takes the RTT texture as optional parameter, so not much to do here. Afterwards I copy the content of the texture to the screen.

I have to see if I can create a texture from part of the screen so that I don't have to copy the texture to the screen because this costs a lot of performance (see video - 30 FPS on my old Core I5 with a GTX650 (or similar ;) )) GFX card.

In single player mode I use the same base class but don't use the render target path for performance reasons
Brainsaw
 
Posts: 1112
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Stunt Marble Racers 2

Postby BlindSide » Sun May 14, 2017 12:47 pm

Hey mate,

This looks great. Message me directly if you need any support with XEffects or shadow mapping in general. Happy to help out. Glad to see something I made 10 years ago still in use in projects today :D

Cheers,
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
BlindSide
Admin
 
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Re: Stunt Marble Racers 2

Postby Brainsaw » Mon May 15, 2017 11:54 am

Hi,

it works without problems, although splitscreen drops the framerate a lot - rendering to texture I guess. XEffects is great as I don't have the time to dig into shadow mapping myself ;). I'll keep posting here as soon as I have new features. At the moment I'm working on race replay - similar to what I had in my "Stunt Marble Racers", but this time it will of course be better :D
Brainsaw
 
Posts: 1112
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Stunt Marble Racers 2

Postby Brainsaw » Sun May 21, 2017 4:53 pm

Hi,

I just uploaded a new version: with the first iteration of the race replay. You can now save replays of all races (time trial with or without ghost, splitscreen, network client and server) and view them later on. There is still some work to do: in multiplayer games you only see the perspective of player 1, in-game HUD is not yet up to date and the race result is not shown, I'll work on that. Hope you like it.

Download link is: http://dustbin-online.de/download/marbles3.zip
Brainsaw
 
Posts: 1112
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Stunt Marble Racers 2

Postby Brainsaw » Tue May 23, 2017 5:16 am

I uploaded a small bugfix this morning:

- ghost replay camera was broken
- static text "ghost saved" was overlapping button "save replay"
- camera in race replay was not moving after respawn

Can still be downloaded at http://dustbin-online.de/download/marbles3.zip
Brainsaw
 
Posts: 1112
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Stunt Marble Racers 2

Postby Brainsaw » Thu May 25, 2017 11:20 am

I am now preparing an awesome new feature: share your ghost files.

This is not yet included in the game, but there is a homepage at: https://dustbin-online.de/marbles3

You can download the ghosts that are stored here and race against them. The ghost files are stored in "C:\Users\[UserName]\AppData\Roaming\DustbinGames\Marbles3\Ghosts". Download a ghost, copy it to that location and you can race against them.

The page does also include an option to upload a ghost (at the very bottom) so I'd like to see some ghosts being uploaded so that other players (and I) have something to compete.

The next step will be to include both the download and the upload function into the game. I hope you like the idea and use it a lot :D.

Stay tuned for more hot news.
Brainsaw
 
Posts: 1112
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Stunt Marble Racers 2

Postby Brainsaw » Sun May 28, 2017 12:02 pm

Just uploaded a new version to http://dustbin-online.de/download/marbles3.zip.

Not much added, just a new option in the "Replay" menu: View a track. Use the mouse to rotate the track, scroll wheel to zoom in and out. Hope you have fun with it.
Brainsaw
 
Posts: 1112
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Stunt Marble Racers 2

Postby Brainsaw » Sun Jun 04, 2017 6:05 pm

I uploaded a new version to https://dustbin-online.de/marbles3.

This time I added some sort of "asynchronous multiplayer" (Part 1): there is a new menu point "Ghosts" in the "Update" Menu:
Image

When you select this menu point a list of available online ghosts is downloaded from https://dustbin-online.de/marbles3/. In the next menu you can select a track, download a ghost, view a ghost or race against a ghost from the internet:
Image

The next step will be to code an upload function for ghosts after a time trial has been done. Before I can do so there is a possibility to upload ghosts to the web:
https://dustbin-online.de/marbles3/index.php

The ghost file can be found in the local user's roaming folder, e.g. C:\Users\Brainsaw\AppData\Roaming\DustbinGames in my case.

I hope you like the function and give it a try. Any feedback is welcome.
Brainsaw
 
Posts: 1112
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Stunt Marble Racers 2

Postby Brainsaw » Mon Jun 05, 2017 4:30 pm

Just uploaded a new version to http://dustbin-online.de/dowload/marbles3.zip. This time I have added a "publish ghost" function. Now you can do a time trial and after saving the ghost a "publish" button appears which lets you upload the ghost to http://dustbin-online.de/marbles3/. I hope you like it, and I hope someone posts some ghosts for some kind of offline-racing. I'd love to see if I can beat you with the experience I have in this little game ;)
Brainsaw
 
Posts: 1112
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Stunt Marble Racers 2

Postby Brainsaw » Fri Jun 09, 2017 3:54 pm

A new version is online: I added an option to see the 25 most recently uploaded ghosts:
Image

Additionally you can now access the "download ghost" menu from the time trial game menu so that you can see if there are any new ghosts on your favorite track.

Download link: http://dustbin-online.de/download/marbles3.zip

Have fun and I hope to get some feedback :)
Brainsaw
 
Posts: 1112
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Previous

Return to Project Announcements

Who is online

Users browsing this forum: No registered users and 1 guest