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"

Custom Lighting On Mobile Devices

Is there a way to do this?

I'm trying to do something like the team fortress shading style on a mobile device. I've been told that unreal 4 uses deferred lighting and therefore all lighting is basically post processed and therefore the only way to have custom lighting is to do it with post processing.

Does the mobile rendered also use deferred lighting and if so, is there any way to get anything except for the regular lighting style?

Product Version: Not Selected
Tags:
more ▼

asked Nov 25 '14 at 03:36 PM in Rendering

avatar image

Feanix
353 16 18 26

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

3 answers: sort voted first

Hey Feanix, another approuch to do custom lighting is to fake forward rendering, since deferred rendering can be quite costly for mobiles.

To do this first disable the G-Buffer with the command 'r.GBuffer 0'. This disables all postprocessing buffers UE generates for deferred rendering.

Now you could create a material parameter collection where you store your sundirection, suncolor etc. You can easily access your sunlight and get the forward vector (that is the sundirection) per level blueprint.

Using this you can create an unlit material and create a dot product between the sundirection and the PixelNormalWS (or VertexNormalWS, per pixel is more precise).

Finally this should be sufficiant as a start and you could convert this shader code into a shader graph http://wiki.unity3d.com/index.php/TeamFortress2Shader. The interesting part is the function LightingTF2.

Hope it helps.

more ▼

answered Aug 22 '15 at 08:27 PM

avatar image

MrRabbit
204 15 26 34

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

Hello Feanix,

There is definitely a way to get the custom lighting style you wish to acheive through mobile. Keep in mind mobile is a bit limited due to hardware specs, so have a read of the documentation on how to develop for mobile devices. It is broken up into sections so you can find the information you are looking for really quickly.

Mobile Game Development

https://docs.unrealengine.com/latest/INT/Platforms/Mobile/index.html

Thanks,

Andrew Hurley

more ▼

answered Nov 25 '14 at 08:52 PM

avatar image Feanix Nov 25 '14 at 11:12 PM

Hi Andrew! I'm excited to hear its possible but after scouring that section I'm none the wiser :( Could you give me any more info to help?

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

Hey again Feanix,

The information provided is the extent of the knowledge I know currently for developing game for mobile. I would suggest going onto the Forums as well as the Wiki to gain further knowledge and find some good places to start.

Unreal Engine Forums https://forums.unrealengine.com/

Unreal Engine Wiki https://wiki.unrealengine.com/Main_Page

I hope this helps as well.

Thanks,

Andrew Hurley

more ▼

answered Dec 01 '14 at 03:11 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

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

Answers to this question