x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Closed] Editor only actors

I have a bunch of SceneCaptureCubes within my level. I use them to build cube textures that are then applied to materials within the scene. The SceneCaptureCubes are not used at runtime, but they appear to be allocating a cube rendertarget.

Is there a way to make these actors editor-only so that they are not loaded up at runtime and do not allocate a cube rendertarget that is never used?

Obviously I don't want to delete them before running/packaging as they are used to rebuild my cubes textures after I update the scene in the Editor.

Product Version: UE 4.9
Tags:
more ▼

asked Oct 12 '15 at 11:00 PM in Packaging & Deployment

avatar image

JasonKng
205 12 20 44

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

The question has been closed Jul 01 '16 at 03:15 PM by Samantha Sutton for the following reason:

Issue is now outdated. If you are still experiencing this issue, please make a new post for assistance. Thanks!


1 answer: sort voted first

Hi!

Try to create static texture from Texture renderTarget of your SceneCaptureCube actors and use this static cubemap in your shaders instead TextureRenderTarget.

alt text

rendertar.png (198.8 kB)
more ▼

answered Oct 13 '15 at 12:02 PM

avatar image

svv3dUDN
8.4k 254 42 399

avatar image JasonKng Oct 13 '15 at 05:06 PM

Hi svv3dUDN,

I'm using static textures. Turns out that I was able to resolve all the references to cube rendertargets except for the defaults created by Unreal: ReflectionColorScratchCubemap0 and ReflectionColorScratchCubemap1.

My problem is that I earlier had to modify the GReflectionCaptureSize (both in ReflectionCaptureComponent.cpp and in ReflectionEnvironmentShader.usf) to create the hires cubemaps that my app needed. The results are great, except I'm not discovering that the two unused runtime scratch cubemaps are huge and taking up precious texture memory.

I don't want to have a pipeline that requires having one set of source code (cpp and usf) for building and using the UnrealEditor and different set of code for running and packaging the game.

It's fairly easy to modify the ReflectionCaptureComponent.cpp so that it is different for editor vs game. But I'm unable to properly resolve how to modify ReflectionEnvironmentShader.usf.

Any ideas?

Thanks, Jason

avatar image JasonKng Oct 19 '15 at 11:13 PM

Essentially I have my reflection cube texture system working very well, but when run in game I'm getting an extra 500mb of scratch texture memory being used. Most preferably I would want to switch back from 2048x2048 (11mip) editor-time capture down to 128x128 (7mip) runtime capture.

I had started going down the route of adding a SetDefine specific for the issue at hand, but I'm not sure how to get the rebuilding of shaders to occur at the right time (rebuilt during the build process - and then rebuilt again for the editor).

Any ideas?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question