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"

ProjectWorldToScreen always returns false in VR

Hello, I was trying to get the project world to screen position while in VR using a widget component and widget interaction component and it kept returning a value of 0.0,0.0 and the boolean return value was always false. So I went digging through the source code and found that ProjectWorldToScreen was always returning false at the first if statement because the Result.W always returns a negative number. If anybody has a solution or any help would be appreciated! :D

Steps to reproduce using the VR template:

1) New Actor with widget component and PickupActorInterface

2) New widget blueprint with any widgets that can cause collision to occur.

3) Create a new function or event, similar to the below image

4) Back in the actor copy the below image


Blueprint code Images:

3) alt text 4) alt text

Product Version: UE 4.18
Tags:
capture.png (111.3 kB)
capture.png (112.0 kB)
more ▼

asked Jul 02 '18 at 08:26 PM in VR

avatar image

Oldsiren
161 25 25 31

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

1 answer: sort voted first

Hello Oldsiren,

Might be related to https://issues.unrealengine.com/issue/UE-57273

Let me know if you're still seeing this in 4.20!

more ▼

answered Jul 02 '18 at 09:22 PM

avatar image

Alex O ♦♦ STAFF
2.8k 5 10 11

avatar image Oldsiren Jul 02 '18 at 10:12 PM

Will do! :D

(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