Aller au contenu

Photo

Camera scripts


  • Veuillez vous connecter pour répondre
9 réponses à ce sujet

#1
jestemwlodek

jestemwlodek
  • Members
  • 94 messages

Has anyone tried creating a cutscene with SetCameraFacing() scripts? I tried it and I encountered some issues... First of all the script is actually incapable of transiting the camera - no matter what I put in CAMERA_TRANSITION_TYPE_X it always snaps. I found a way around it with a "while" function, but it makes the whole script much complicated. Also, for whatever reason I am able to play only one cutscene per... module, I think...? It just won't work if I call the exact same conversation again. Also, the whole camera movement has to be in one script, in the first node of the conversation - in any other scenario it just doesn't work... I also can't seem to get any fading functions to work while the camera moves.

 

This is what I managed to do using my script:

https://www.youtube....eature=youtu.be

 

This IS more or less what I wanted, BUT if I'd like to make any more elaborate camera transitions... the script for that would basically be a fućking book.

 

There has to be an easier way around it, right? :D



#2
kamal_

kamal_
  • Members
  • 5 238 messages

You can play as many movies as you want:

http://forum.bioware...-game-achieved/

 

nwn2 camera control is less advanced than the nwn1 "gestalt" camera system.

 

also I understand you're frustrated but no swearing please, bad language isn't needed here and would only get you in trouble if a mod were to poke their head in here.


  • GCoyote aime ceci

#3
jestemwlodek

jestemwlodek
  • Members
  • 94 messages

That's not what I'm talking about - I mean I could record my cutscene with fraps, convert the file to .bik and play it in game, but that only solves half the problem (the one scene per module thing). I wanted to make a long continuous shot like in the Avengers 2 intro scene. I guess I could do that with my script, but Jesus Christ... that would be one hell of a script...



#4
jestemwlodek

jestemwlodek
  • Members
  • 94 messages

Also - I can't really make a movie with the PC in it, right? XD Contrary to an in-game cutscene.



#5
kevL

kevL
  • Members
  • 4 052 messages
Nwn2 isn't much suitable for camera scripting. eg, what if the player is in Strategy Mode? i don't think there's even a function that can check ....

The functions were designed for NwN1 camera; they were never updated/expanded for NwN2 functionality. but yeh, vid looks cool

#6
Tchos

Tchos
  • Members
  • 5 030 messages

Typically when you want to appear to show and manipulate the PC in a cutscene, you create a clone of the PC for that purpose.



#7
jestemwlodek

jestemwlodek
  • Members
  • 94 messages

Nwn2 isn't much suitable for camera scripting. eg, what if the player is in Strategy Mode? i don't think there's even a function that can check ....

The functions were designed for NwN1 camera; they were never updated/expanded for NwN2 functionality. but yeh, vid looks cool

 

That's what SetCameraMode() is for. It doesn't really work for stiff chasing camera mode, but honestly - who uses that mode during exploration/combat?



#8
jestemwlodek

jestemwlodek
  • Members
  • 94 messages

Also - I disagree with the statement that the camera isn't suitable for scripting... I mean it's inconvenient to use the while function but it's still pretty damn useful for combat intros:

 

https://youtu.be/ZXiuAW_oeAQ

 

I think I know how to get what I want. It's just gonna be quite time-consuming...


  • andysks aime ceci

#9
andysks

andysks
  • Members
  • 1 645 messages

I would be interested reading the results of this effort once you're done :).



#10
jestemwlodek

jestemwlodek
  • Members
  • 94 messages

Update: I did some research on how the camera scripts work... It's pretty wierd... Turns out it works once per game run not once per module. So I can make a million modules and it work only once - the very first time. If I make one module with a million cutscenes and exit the game after each one all of them would work... so here's what I think might be done: I can make a cutscene as elaborate as I want as long as all the camera movements is in one script, then record it with some program, convert the video to .bik and use that to play the cutscene in game. As for the combat intros - it's a gamble, so in case it doesn't work it would be safe to put the conversation owner somewhere near the events so that the player can still see what's going on and then jump right into battle.

 

I think I might upload a tutorial on how to script "the Avengers 2 intro" to the nwvault :P