September 03, 2010, 01:29:58 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
   Home   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: C05252008CAM - Trunk + Camera code  (Read 6662 times)
0 Members and 1 Guest are viewing this topic.
WMCoolmon
Purveyor of space crack
Moderator
213

Offline Offline

Posts: 8,657


WWW
« on: May 26, 2008, 01:14:06 am »

Finally...after months of waiting...I have merged the updated camera code into the stable branch.

Basically, this means the cameras should work now.

===A more detailed explanation -

Camera movement is now handled by the AVD Physics system. This stands for Acceleration, constant Velocity, Deceleration. This means that the camera can, in any axis of movement, accelerate up to a speed, maintain that speed, and then decelerate. The system itself supports decelerating to another constant velocity, but this hasn't been extended into the scripting system (It shouldn't require too much effort). This means a graph of a camera's position/velocity will look something like this:



===Camera features:
Internally, the camera supports custom orientation and position functions, as well as 'locking' the camera onto an object's submodel and/or locking it to face another object's submodel. The custom orientation/position functions have not been extended to scripting yet.

Valid axis of movement are: X, Y, Z, pitch, roll, bank, FOV.
Valid things to 'mount' camera on: Object, object submodel
Valid things to point camera at: Object, object submodel
Other ways to influence position/orientation: Custom position function, Custom orientation function

I recommend generating a scripting.html, as the new system will add ~a dozen entries.

===More interesting things
The core FS2_Open camera functions have been subverted to give you control over the camera. If you start up a mission, you'll see a camera called "Main camera" - this represents the camera that FS2_Open uses for the player view. You may also see the "SEXP Camera", "Dead Camera", "Player Camera", or "Nav Camera" (Autopilot).

The position/orientation function currently give the final calculated values; I'll probably switch this to the local pre-object-lock values pending more thought.

===The Build:
http://fs2source.warpcore.org/exes/latest/C05252008CAM.zip

===Afterword:
WOOHOO! IT'S FINALLY IN! Big grin Big grin Big grin
Logged

-C

"The line has to be drawn here. This far, and no further!" - Quark
"admit it, virgin's a whore" -Nuke, January 2008
Ransom
M. Night Russel
29

Offline Offline

Posts: 931

It will not wait.


WWW
« Reply #1 on: May 26, 2008, 02:43:33 am »

Hell yes.
Logged

KeldorKatarn
211

Offline Offline

Posts: 2,869


« Reply #2 on: May 26, 2008, 06:01:50 pm »

What exactly does this mean, and how does one control these cameras? New SEXPs? Or what?
Logged
WMCoolmon
Purveyor of space crack
Moderator
213

Offline Offline

Posts: 8,657


WWW
« Reply #3 on: May 26, 2008, 07:57:16 pm »

http://wmc.freespacemods.net/repository/vod.vp

And turn off motion debris, it ruins the effect.

EDIT: I should've mentioned, to use this, just drop it in your FS2_Open folder (or mod folder) and run it with the mediaVPs (or without). Then run "Valley of Darkness" from the tech room mission simulator.
« Last Edit: May 26, 2008, 08:26:01 pm by WMCoolmon » Logged

-C

"The line has to be drawn here. This far, and no further!" - Quark
"admit it, virgin's a whore" -Nuke, January 2008
Wanderer
Wiki Warrior
211

Offline Offline

Posts: 3,273

Mostly harmless


« Reply #4 on: May 27, 2008, 03:31:41 am »

EDIT: had a linker error but that got fixed
« Last Edit: May 27, 2008, 04:27:23 am by Wanderer » Logged
WMCoolmon
Purveyor of space crack
Moderator
213

Offline Offline

Posts: 8,657


WWW
« Reply #5 on: May 27, 2008, 04:32:48 am »

None of this stuff has been committed to SVN yet. Nothing past the first build I posted on the 25th, C05252008, has actually been committed. However, I'm pretty comfortable with this stuff as most of what I've done should make it impossible/extremely unlikely for null pointer errors to occur, or OOB array indexing, etc, it's the overlooked details or unintentional bizarre side effects that I'm mostly concerned about.
Logged

-C

"The line has to be drawn here. This far, and no further!" - Quark
"admit it, virgin's a whore" -Nuke, January 2008
Wanderer
Wiki Warrior
211

Offline Offline

Posts: 3,273

Mostly harmless


« Reply #6 on: May 27, 2008, 04:42:07 am »

Ah... i thought your recent commit already had this stuff...
Logged
emawind84
21

Offline Offline

Posts: 2


« Reply #7 on: May 27, 2008, 03:21:09 pm »

hi guys and very nice work WMCoolmon, is my first post here and i found this game some days ago  Big grin however i put the vod.vp file in a folder "valleyofdarkness" and i load the mod in the launcher, in game when i set the mission in tech room, the game begin but after the end of the introduction come back in the main room do you know why?
thx
Logged
WMCoolmon
Purveyor of space crack
Moderator
213

Offline Offline

Posts: 8,657


WWW
« Reply #8 on: May 28, 2008, 01:28:08 am »

It's just an introduction, which showcases the subtitles, and camera rotation and translation SEXPs (more of a test than anything, really). It was originally going to be the intro to a mission leading up to the mission where you defend the Bastion at the end of Freespace 2, but I never finished it and I'm not planning on picking it back up.
Logged

-C

"The line has to be drawn here. This far, and no further!" - Quark
"admit it, virgin's a whore" -Nuke, January 2008
emawind84
21

Offline Offline

Posts: 2


« Reply #9 on: May 28, 2008, 05:21:43 am »

It's just an introduction, which showcases the subtitles, and camera rotation and translation SEXPs (more of a test than anything, really). It was originally going to be the intro to a mission leading up to the mission where you defend the Bastion at the end of Freespace 2, but I never finished it and I'm not planning on picking it back up.
i'm sorry i don't understood what the modification was
Logged
CaptJosh
210

Offline Offline

Posts: 1,057


« Reply #10 on: May 29, 2008, 04:59:59 am »

It's a tech demo of some stuff to make it easier to do cutscenes via the game engine, rather than having to render them.
Logged

CaptJosh

There are only 10 kinds of people in the world;
those who understand binary and those who don't.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.09 seconds with 28 queries.