Install Theme

Initial Unity + Oculus DK2 Notes

This is a quick set of notes from my findings today that will hopefully help people who run into similar issues. If you have questions about any of this please leave a question and I’ll update the post where I can.

Configuration

  • Obviously, windows only. mac/linux SDK release dates are unknown
  • Install the windows runtime from the oculus website
  • After installing the runtime, use the configuration tool to update the firmware! It mentioned in the release notes but it can be hard to find. The config tool has the firmware update option.
  • Use unity 4.5.2p2 (link) - it lets you specify a monitor to launch on, useful for reasons below. (Also improves dx11 latency)
  • Direct HMD Access mode isn’t working with any unity builds at the moment on my setup. (GTX770, win 8.1, x64)
  • To get builds to work set “Extend Desktop to HMD” mode, then have apps run on the DK2 screen.
  • If apps aren’t running on the DK2 (they’d probably show up in a window on your main monitor), hold down the control key when you start the game to bring up the display setting. Pick the DK2’s monitor from the display dropdown
  • If your camera isn’t working, is it plugged in to a powered USB port? Directly to your computer is best, but a powered hub may also work. (From @OwenGoss)

Runtime issues

  • If you’re using the above configuration and you’re noticing judder, it’s likely that you’re not running at 75fps. This can be caused by a few things so check the following:
  • In Screen Resolution -> Advanced Settings for the DK2 monitor, make sure that refresh rate is set to 75Hz.
  • In your nvidia or ati control panels, also make sure that it’s set to 75Hz for the DK2 screen and not 60Hz.
  • For me, this wasn’t sufficient and my games were still locked at 60Hz. To get them to run successfully I had to set the DK2 screen as my primary display in the Screen Resolution control panel. An oculus dev suggested that this might be a nvidia driver issue. If you do/don’t have this issue please leave a comment so we can start collecting info!
  • If you’re sitting down while you play, the positional tracking camera is probably better off below your monitor and pointing upwards than on top of your monitor and pointing downwards. Seemed more effective to me from my testing today.
  • AMD Specific: If you’re getting a black screen on unity demos try creating a shortcut to the game and adding “-force-d3d11” to the target line. (From: @mikekasprzak)

Dev Notes

  • If you’re making an app - please please please include a way to pop up the current FPS. As people run into configuration issues that cause them not to run at 75fps, it’s super helpful to let people check to see if they’re locked at 60fps for some reason.
  • Unity shadows seem to be messed up if you’re using deferred rendering. First Law is using forward rendering because of old issues with deferred, but you may notice issues with other games and shadows.
  • The unity game screen will only work if you’re set to “Free Aspect” - being set to anything else will make the game not render.
  • Enabling positional tracking has messed up the head/eye placement in First Law relative to the body fixed in the ship. I’m not actually sure the best method to deal with this, would love suggestions.

Screenshot Saturday, 7/12/2014

Wanted to post some gifs of Monsters & Monocles since it’s been a while - we’re heads down getting ready for greenlight, should be going live on it soon!

Puzzle Post 08

Trying out hexagons as a base shape today. Lots of interesting opportunities with the additional sides available to line up on, but I find it hard to avoid full symmetry.

Please, no spoilers in the comments.

New to dissection puzzles? Click here for a description and an example.

Puzzle 08

Divide the shape below along the indicated lines to end up with 3 identical pieces. All pieces may be rotated and flipped, as necessary. No remaining pieces may be left.

image

Think you’ve sorted it out? Click here for the solution.

Any feedback? I’d love to hear if you found the puzzle too easy, too hard, too boring, just right, evil incarnate, etc. Leave a comment or drop me a note on twitter.

too easy this time, unforetunately. The large shapes made is very easy to see the basic pattern at first glance.

Yeah I thought this was a fairly straightforward puzzle, although some folks are still getting hung up on it. it’s an interesting data point for trying to craft puzzles that are intentionally easy or hard.

Puzzle Post 07

Only 3 pieces in this puzzle, really tough to obfuscate the piece shape without more pieces thrown around but I wanted to experiment with it.

Another finding is that puzzles that are fully symmetrical almost always have really simple alternate solutions, it seems like 1-axis symmetry is okay but 2-axis is a big no-no.

Please, no spoilers in the comments.

New to dissection puzzles? Click here for a description and an example.

Puzzle 07

Divide the shape below along the indicated lines to end up with 3 identical pieces. All pieces may be rotated and flipped, as necessary. No remaining pieces may be left.

Think you’ve sorted it out? Click here for the solution.

Any feedback? I’d love to hear if you found the puzzle too easy, too hard, too boring, just right, evil incarnate, etc. Leave a comment or drop me a note on twitter.

Puzzle Post 06

Back to triangles with this puzzle - I tried a slightly different method of constructing the puzzle, not sure if it got better results or not.

But both this puzzle and the previous one were an attempt to keep the total number of pieces to 4 or less. I’m trying to determine if the number of the pieces in a puzzle changes difficulty more than the size/complexity of the shape. (e.g. is a puzzle with 5 pieces that have 15 triangles each easier or harder than a puzzle with 15 pieces that have 5 triangles each?) I figure the best thing to do is try to make a baseline of fairly simple puzzles and then scale out from there.

Please, no spoilers in the comments.

New to dissection puzzles? Click here for a description and an example.

Puzzle 06

Divide the shape below along the indicated lines to end up with 4 identical pieces. All pieces may be rotated and flipped, as necessary. No remaining pieces may be left.

image

Think you’ve sorted it out? Click here for the solution.

Any feedback? I’d love to hear if you found the puzzle too easy, too hard, too boring, just right, evil incarnate, etc. Leave a comment or drop me a note on twitter.

Puzzle Post 05

The last puzzle was a bit of a mess, I focused so much on puzzle symmetry I lost sight of some very simple alternate solutions. Hopefully not with this one! Please, no spoilers in the comments.

New to dissection puzzles? Click here for a description and an example.

Puzzle 05

Divide the shape below along the indicated lines to end up with 4 identical pieces. All pieces may be rotated and flipped, as necessary. No remaining pieces may be left.

Think you’ve sorted it out? Click here for the solution.

Any feedback? I’d love to hear if you found the puzzle too easy, too hard, too boring, just right, evil incarnate, etc. Leave a comment or drop me a note on twitter.

Puzzle Post 04

Another cube dissection puzzle! Please, no spoilers in the comments.

New to dissection puzzles? Click here for a description and an example.

Puzzle 04

Divide the shape below along the indicated lines to end up with 6 identical pieces. All pieces may be rotated and flipped, as necessary. No remaining pieces may be left.

image

Think you’ve sorted it out? Click here for the solution.

UPDATE: Some people have found a (much simpler) alternate solution. Click here to see the alternate solution. (thanks to both @mattrix and @otggamer!)

Any feedback? I’d love to hear if you found the puzzle too easy, too hard, too boring, just right, evil incarnate, etc. Leave a comment or drop me a note on twitter.

Puzzle Post 03

First dissection puzzle using cubes instead of triangles as a base. Please, no spoilers in the comments.

New to dissection puzzles? Click here for a description and an example.

Puzzle 03

Divide the shape below along the indicated lines to end up with 5 identical pieces. All pieces may be rotated and flipped, as necessary. No remaining pieces may be left.

Think you’ve sorted it out? Click here for the solution.

Any feedback? I’d love to hear if you found the puzzle too easy, too hard, too boring, just right, evil incarnate, etc. Leave a comment or drop me a note on twitter.

Puzzle Post 02

Another dissection puzzle - enjoy! Please no spoilers in the comments.

New to dissection puzzles? Click here for a description and an example.

Puzzle 02

Divide the shape below along the indicated lines to end up with 6 identical pieces. All pieces may be rotated and flipped, as necessary. No remaining pieces may be left.

image

Think you’ve sorted it out? Click here for the solution.

Any feedback? I’d love to hear if you found the puzzle too easy, too hard, too boring, just right, evil incarnate, etc. Leave a comment or drop me a note on twitter.

Puzzle Post 01

I’ve gotten interested in puzzle design lately, and it’s a far cry from the more action/arcade stuff I’m used to making. So to try and learn more about it, I’ll be making puzzles occasionally and posting them here for people to try.

So, enjoy! If you have any feedback (too easy, too hard, unclear, evil, boring, etc) I’d love to hear it. You can talk to me on twitter or just leave a comment on the puzzle. But no spoilers, please!

The solution is posted as a link below the puzzle.

PUZZLE 01

New to dissection puzzles? Click here for a description and an example.

Divide the shape below along the indicated lines to end up with 5 identical pieces. All pieces may be rotated and flipped, as necessary. No remaining pieces may be left.

image

Think you know what the answer is? Click here for the solution.

Building and running unity’s master server

Today unity’s Master Server has been down for me and so I decided to finally get my own version of it up and running. But it doesn’t compile out of the box, so here were the changes I needed to make to get things up and running on linux (Ubuntu 14):

Server Side:

  1. On ubuntu install all the tools you’ll need for compilation (sudo apt-get install build-essentials)
  2. Download the master server and facilitator source from here.
  3. Unzip Master Server into a new directory.
  4. In the Makefile, replace all instances of “-lpthread” with “-pthread”
  5. At the bottom of the Makefile , find the cpp.o target and add “-fpermissive” to the command (e.g.: $(CC) -c -Wall -fpermissive -I$(INCLUDE)…)
  6. Run make
  7. Unzip Facilitator to another directory and do steps 4-6 again.

At this point you should have both a MasterServer and Facilitator binary for your server. Setting them up to run automatically and tuning their settings is really an individual thing, but I set mine up to automatically start with the server by using an init.d script. I also set up a separate user to run them.

Client Side

So now you need to tell your client to use your up and running master server. This is pretty easy, just four lines of code that you set before you make any other networking calls:

Network.natFacilitatorIP = <host ip>;
Network.natFacilitatorPort = <facilitator port>;
MasterServer.ipAddress = <host ip>;
MasterServer.port = <master server port>;

And that’s it! At this point you should be up and running against your own master server.

Ryan is starting work on the second area of the game this week: The Dig Site
It&#8217;s a completely different map generation algorithm and will have different objectives than the mansion - Craig is starting to work on a new set of monsters for the area, too!

Ryan is starting work on the second area of the game this week: The Dig Site

It’s a completely different map generation algorithm and will have different objectives than the mansion - Craig is starting to work on a new set of monsters for the area, too!

monstersandmonocles:

New dev video: Boss Testing!

We’re making good headway on implementing the first boss, and starting to test out his various attack sequences in network play.  There’s still a lot of testing and tuning to be done, but it’s fun to be finally facing off against one of the big baddies. :)

You can also see two of the new character sprites (Monobot & Baron Von Dogface) in the game.

Pew Pew Pew

monstersandmonocles:

This week I’m working on the first boss some more. He’s got a laser, a big laser. I like lasers.

image