Announcement

Collapse
No announcement yet.

Any idea with Scene Captures turn green after you change resolution/video settings?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Any idea with Scene Captures turn green after you change resolution/video settings?

    They both turn green and stay green (no longer recording from the environment) which is kind of a problem if you want to have video settings accessible while playing.

    Maybe there's a way to reset them or something? Anyone else encounter this?

  • replied
    There's definitely no way to set it in the editor, even at the object creation stage, I'll try to use that code to get a black clear color, thanks again.

    Leave a comment:


  • replied
    if you spawn your rendertarget via code you should be able to swap the rendertarget clearcolor (default green) for any color you want. in the code I posted above you can see I used
    MakeLinearColor(0, 0, 0, 1) which is already making it black
    though I seem to remember this was also something you could set in the editor (in the rendertarget asset itself)

    Leave a comment:


  • replied
    Originally posted by Chosker View Post
    oh. yeah I know unreal doesn't really fail at that so I suspected something fishy :P
    glad you sorted it out
    Well... it still shows you an awful green mess until you unpause if you tab out while the game is paused, with no way to set a more sensible color that I can find since capture camera fill color does nothing, but that's bearable I guess.

    Leave a comment:


  • replied
    oh. yeah I know unreal doesn't really fail at that so I suspected something fishy :P
    glad you sorted it out

    Leave a comment:


  • replied
    Oh, no, it was my fault all along guys. Sorry for the time wasted.

    I wrote some code a few months ago which changes the render target depending on the resolution you selected, and was too lazy to create those objects (one for each resolution, basically) at the time, meaning an non-existent render texture is selected causing the green mess to appear.
    This is what you get when you work on a massive project all by yourself

    Leave a comment:


  • replied
    I'll give that code a go tonight, thanks.

    It could be the material, I'll post an image of it if I can't get this fixed.
    As far as I can tell the bug only occurs if I change resolution, if I alt+tab, the screen capture will still go green for a bit, but it recovers immediately, or as soon as the game is unpaused.

    Leave a comment:


  • replied
    making a rendertarget in code is easy:
    Code:
    yourRenderTarget = class'TextureRenderTarget2D'.static.Create(sizeX, dizeY, PF_G8, MakeLinearColor(0, 0, 0, 1));


    Originally posted by ciox View Post
    I tried to use the kismet node material but it doesn't fix it, I switch to a black material, that works fine, then I switch back to my rendering material, and it's still green.
    maybe the issue is in your material. do you use the rendertarget inside it?


    by now I'd try to create the rendertarget by code, and re-create it and re-assign it every time the resolution changes

    also, does the issue also occur if you alt-tab, or if the user switches between fullscreen and windowed? (do you even have that option?)

    Leave a comment:


  • replied
    Originally posted by O_and_N View Post
    Does your scene capture has some complex custom material on it? There are certain effects that cant be rendered by the scene capture.(not that it matters much)
    Did you try to reset the scene capture using the kismet node set material as I told you?Just change it to something simple for 1 sec and reverse it back.On the other hand its strange that your ships look fine but only the background is in green.The ships look 2d.Are you using a low FOV on the camera to make them look flat?
    Yeah there is a custom material but it's not too complex, it renders just fine normally.

    I tried to use the kismet node material but it doesn't fix it, I switch to a black material, that works fine, then I switch back to my rendering material, and it's still green.
    (yes I did use a low fov)

    Originally posted by udkultimate View Post
    Just off topic, your game looks cool man!!! I always loved the old neo geo aerofighters games!
    Thank you, I hope to put it out there soon.

    Leave a comment:


  • replied
    Just off topic, your game looks cool man!!! I always loved the old neo geo aerofighters games!

    Leave a comment:


  • replied
    Does your scene capture has some complex custom material on it? There are certain effects that cant be rendered by the scene capture.(not that it matters much)
    Did you try to reset the scene capture using the kismet node set material as I told you?Just change it to something simple for 1 sec and reverse it back.On the other hand its strange that your ships look fine but only the background is in green.The ships look 2d.Are you using a low FOV on the camera to make them look flat?

    Leave a comment:


  • replied
    How would you go about creating scene captures dynamically in code anyway? I can only find the 'from editor' technique on this page https://api.unrealengine.com/udk/Thr...ToTexture.html

    Leave a comment:


  • replied
    Originally posted by Chosker View Post
    nah, just wanted to make sure you didn't set it to 0 fps
    at this point I don't know then. maybe post the full settings of your scenecapture to see if there's anything suspicious.
    also maybe post the rendertarget settings. and is it an editor rendertarget or do you create it dynamically via code?
    it's set up in the editor, i'm not sure how you would create it dynamically, but that could possibly be a fix. attached my settings.



    thanks for the support with this thingy
    Attached Files

    Leave a comment:


  • replied
    nah, just wanted to make sure you didn't set it to 0 fps
    at this point I don't know then. maybe post the full settings of your scenecapture to see if there's anything suspicious.
    also maybe post the rendertarget settings. and is it an editor rendertarget or do you create it dynamically via code?

    Leave a comment:


  • replied
    Originally posted by Chosker View Post
    what is the scenecapture's framerate set to?
    it's set to 60 frames
    you think that value could get reset to 0 or something after a resolution change?

    Leave a comment:

Working...
X