The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOMA Third Person Camera Control
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#1
SOMA Third Person Camera Control

Got into talks with oneminusone over making a Silent-Hill-style camera setup in SOMA, so I decided to see how possible it was. Turns out, it was a lot easier than I thought it would be.





I based the camera-switching mechanic on the bullet-loading segment of Phi, which incidentally ended up being only about 7-8 lines of code (if that) to get the camera part actually functional. Oddly enough, the actual player avatar is going to be much harder.

For starters, rotating an entity in SOMA is bizarrely difficult. As it turns out, rotating an entity can only be done by setting the rotation parameters of a transformation matrix, which by itself wouldn't be that huge of a deal except the creation and management of a matrix is also really difficult to figure out.

Ultimately though, I ended up using the cLuxAgent class rather than the iLuxEntity class, because unlike the other entity class types, the Agent class has an iCharacterBody field which does support simple rotation. And to be fair, when you're making a complex character entity, it should be an Agent entity anyway.

In any case, you can see from the video that this system is far from being suitable for a complete product just yet, but by itself the fact that HPL3 allows for this sort of stuff makes me excited to see what future mods come up with.
11-30-2015, 05:58 AM
Find


Messages In This Thread
SOMA Third Person Camera Control - by Abion47 - 11-30-2015, 05:58 AM
RE: SOMA Third Person Camera Control - by Abion47 - 11-30-2015, 10:50 AM
RE: SOMA Third Person Camera Control - by Kanthos - 11-30-2015, 02:35 PM
RE: SOMA Third Person Camera Control - by Abion47 - 12-05-2015, 06:20 AM
RE: SOMA Third Person Camera Control - by Abion47 - 12-14-2015, 08:11 AM



Users browsing this thread: 1 Guest(s)