Quantcast

Jump to content

» «
Photo

Taking screenshot from three positions

4 replies to this topic
akrram
  • akrram

    Player Hater

  • Members
  • Joined: 08 Aug 2017
  • United-States

#1

Posted 18 October 2017 - 04:12 PM

Hi all,

 

I am quite new to modding. I am trying to create a small script that allows me to go from one camera position to another, while game is paused.

 

When I set GAMEPLAY::SET_GAME_PAUSED(true), next frame is not getting rendered (by research on this forum, it looks like i am not alone on this). 
 

I also tried taking screenshot, rendering next scene in one tick and taking next screenshot in next tick. But this makes the two screenshot lag by one frame. Which makes lot of difference when entities with high speeds are involved (bullet etc). 

 

I have tried slowing down the system by using GAMEPLAY::SET_TIME_SCALE(0.0f), but it does not make much difference.

 

What am I missing here?

 

Is there an existing mod for this? (pause the game and move camera around)

 

Any hint/help is greatly appreciated.


akrram
  • akrram

    Player Hater

  • Members
  • Joined: 08 Aug 2017
  • United-States

#2

Posted 25 October 2017 - 07:00 AM

Hey guys,

 

Nevermind. I solved this problem.


Cuky
  • Cuky

    Player Hater

  • Members
  • Joined: 23 Sep 2017
  • Germany

#3

Posted 26 October 2017 - 01:59 PM

Hi akrram,

 

do you mind sharing your solution with us?

  • jedijosh920 likes this

akrram
  • akrram

    Player Hater

  • Members
  • Joined: 08 Aug 2017
  • United-States

#4

Posted 20 November 2017 - 11:19 AM

Hi Cuky,

 

First, I apologise for delayed reply. I was busy with other work.

 

The solution actually was quite simple. It worked with  GAMEPLAY::SET_TIME_SCALE(0.0f).

 

The trick is though, you should do the GAMEPLAY::SET_TIME_SCALE(0.0f) one frame before you want to take screenshots. After that, though game still runs, movement is negligible for next three frames.

 

I hope this helps. Please let me know if you want me to post implementation.

 

Thanks and regards,


Cuky
  • Cuky

    Player Hater

  • Members
  • Joined: 23 Sep 2017
  • Germany

#5

Posted 01 December 2017 - 01:47 PM

Hi akrram,

 

thanks for your reply. I'm already using this method, but I'm also looking for a solution without movement between frames, even if it is very small.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users