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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Generating Fisheye effect at the end of a Raycast

Hey there, I've read lots of questions here the whole day but all of them does not fit my problem.

Situation: - I've got some Static Mesh Actors which represent selectable Items in a VR Environment - Using the HTC Vive Motioncontroller, one can select these Items by pressing Trigger after pointing in it's direction (ray trace)

Problem: I want to implement some kind of "fisheye effect - lens" at the end of the raycast i.e. like a sphere which is abled to perform a distortion on the whole world including, but not limited to, the environment (means everything should get distortet within a defined radius from ray cast hit point). I have already implemented the "eat3d ue4 shader fx cubic lens distortion" as well as some kind of world position offset (which is only abled to perform distortion from ONE currently selected item in direction of the ray cast hit point, but both does not seem to fit my problem...

anyone who might help me?

Product Version: UE 4.18
more ▼

asked Nov 16 '17 at 05:28 PM in Rendering

avatar image

1 2 4

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

1 answer: sort voted first

Try spawning a distorted or lens shaped mesh at the end of the cast that has a translucent material with refraction.

more ▼

answered Nov 16 '17 at 05:59 PM

avatar image

56 4 7 13

avatar image FR2000 Nov 16 '17 at 06:18 PM

thanks for your reply

yes, i tried this already, spawning a sphere with a special mesh (opacity 0, refraction 0.8), but in this case there will be a pseudo distortion, i need the real object (static mesh actor's mesh) to get distorted instead of a simple lens effect, because it get's hovered in holographic-blue-light (by changeing the material) when selected; this will shine without any kind of distortion through the sphere/lens

effect shown in action

So i really have to perform some kind of deformation of the meshes including environment, i guess

settings-1.png (49.8 kB)
effect-1.png (642.6 kB)
(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