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"

teleportation trajectory

alt textHello

I am working with a vr project teleportation and i have encountered a problem that i have been solving for days. The problem is to get a teleportation beam from the right controller to the teleportation location. I have managed to get the predicted projectile path, but it doesn't show in the build. I have been thinking about putting a particle system between all the debug spheres to make a good arching movement. Google doesn't help me so i have to ask here :( I can get the starting position and the velocity, i just need to put the particle systems between.

Product Version: UE 4.19
screenshot-1.png (115.6 kB)
more ▼

asked Aug 09 '18 at 10:48 AM in Blueprint Scripting

avatar image

18 2 5

avatar image Everynone Aug 09 '18 at 11:03 AM

What are the visuals you are after? Do you want it to look like a beam? In the past I got decent results using Cascade's beam but haven't tried anything in Niagara - it's quite new and the documentation is lacking atm. Pretty sure you can make neat beams there.

Another solution for a good looking beam is to use a spline, place spline points at path positions and generate spline mesh components between the points. Since you'll be using a material for this, you have pretty much unlimited control over the visuals. Can be combined with particles, too.

edit: doesn't one of the VR examples comes with a beam like that already? (a genuine question)

avatar image suprime12 Aug 09 '18 at 11:21 AM

my goal is to either make a nice arch like in the vr template, or replace the debug spheres with meshes. i tried to follow your way, but i got a bit stumped. now i have a for loop with break, which makes spline points for each out path positions the node generates. I have tried this before but i have faced 2 problems: either i get 1 cube to spawn or multiple cubes that don't move dynamically with the controller and just keep re spawning![alt text][1].

edit: answering your question: Yes it has, i tried to fuse the blueprints, but with no success. I would like to refrain using the vr template in our project. [1]: /storage/temp/249942-screenshot-2.png

screenshot-2.png (69.4 kB)
avatar image suprime12 Aug 09 '18 at 11:56 AM

alt text i have managed to get this far. The problem is that it keeps spawning the cube meshes all around when you move the controller. It seems that it doesn't want to complete the loop properly :/

screenshot-3.png (130.0 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

No need to reinvent the wheel.

I've opened the VR template (for the 2nd time in 4 years) and they're using splines. The actor is called BP_MotionController and the entire logic of the spline + spline mesh components is the Update Arc Spline function.

This bit cracked me up, though:

alt text

The magic number with a question mark is adorable!

It was clearly put together by someone with no respect for screen real estate or an owner of a 3x 65" 4k displays...

capture.png (58.7 kB)
more ▼

answered Aug 09 '18 at 12:34 PM

avatar image

15.2k 77 25 62

avatar image suprime12 Aug 09 '18 at 12:37 PM

hey i said in the comments that i tried to fuse the blueprint tin the vr player pawn with my own but with no succession.

avatar image Everynone Aug 09 '18 at 01:26 PM

Ugh, tough customer ;)

alt text

Image from Gyazo

Epic's version destroys and recreates components on Tick. This version is probably 17 times more efficient as it does not. Thank me later.

I did not test it for bugs, so there might be something odd.

Good luck!

spline-lob.png (577.9 kB)
avatar image Everynone Aug 09 '18 at 01:41 PM

The clean-up loop should probably be moved a bit earlier but is seems to be doing what I wanted an is still fully dynamic.

If someone feels an inspiration for making a Peeing Contest game, this will be perfect. :)

avatar image suprime12 Aug 10 '18 at 06:29 AM

still testing it, what is the SPMs array type? because i can't connect it to set start and end points

avatar image Everynone Aug 10 '18 at 06:29 AM

Spline Mesh Component. It's a variation on static mesh component but can be deformed using a spline. You give it start & end and optional tangents the UE4's interpolation magic does the bending.

avatar image suprime12 Aug 10 '18 at 07:24 AM

ah thank you. well it works but it doesn't want to add the material i put in the node. how did you do this?

avatar image Everynone Aug 10 '18 at 07:32 AM

You may (this is usually done automatically) need to flag the material as Used with Spline Meshes (a tickbox in the material itself); you can then assign this material in the Add Spline Mesh Component node.

avatar image suprime12 Aug 10 '18 at 07:29 AM

well i found a bug in it. there is a functionality for the teleportation beam to bounce of walls. i got that but it doesn't work anymore. i will try to solve this but if you have any ideas im more than happy to talk about it

avatar image Everynone Aug 10 '18 at 07:39 AM

A bug? I did not include any addition functionality here bar the beam generation. I admit I might have lost one index somewhere there or a rogue spline mesh (even Epic's staff uses a magic number to fix stuff after all... ;)

Not sure how the bounce is done with the prediction node off the top of my head. I know how to transform vectors manually but there's most likely an automated way here. Consider looking into the way it's done in the VR project.

I might have peek later on out of sheer curiosity.

I'm still not sure why you just did not duplicate / merge the whole controller and trim it to suit your needs. On the other hand doing it from scratch is definitely a better way to learn!

avatar image suprime12 Aug 10 '18 at 08:41 AM

yeah i did something very wrong with the bounciness. i restored to an old version of the project and added the nodes that you suggested. now it works perfectly. marking as solved

avatar image Everynone Aug 10 '18 at 08:43 AM

Awesome, good luck with the rest!

(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