Announcement

Collapse
No announcement yet.

Draw RayTrace

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Draw RayTrace

    So uh, being relatively new to RayTracing ( And blueprints in general ), assuming you can in blueprints, how do you draw a RayTrace?


    Thanks in advance, mechron

    #2
    If I understood you right, all you need do to is set 'Draw Debug Type' on your ray trace node to "Persistent"(/For Duration/For One Frame) . This will draw a line representing the ray.

    If you want to plot out arbitrary debug points you can use any of the Draw Debug Point / Draw Debug Line, etc nodes,
    Last edited by VSZ; 10-26-2014, 04:07 AM.

    Steam Early Access: Drunk On Nectar - The Nature Simulator

    UE4 Plugins: DoN’s Dynamic Mesh FX | DoN’s 3D Pathfinding

    Comment


      #3
      I know I can debug it, but how do I get like a bullet trail? Thanks

      Comment


        #4
        Hmm, assuming you're using projectiles to represent your bullets, maybe spawn a particle system attached to your projectile? Perhaps a ribbon emitter or a beam emitter with start point being your weapon and the end point bound to the projectile... Just some ideas based on the Cascade tutorials that I've myself been browsing today.

        Hopefully others can chip in as well, I recall seeing a projectile weapon thread using curvy bullet trails accounting for the projectile falling down due to drag, etc (those were debug lines though as far as I remember).
        Last edited by VSZ; 10-27-2014, 05:30 AM.

        Steam Early Access: Drunk On Nectar - The Nature Simulator

        UE4 Plugins: DoN’s Dynamic Mesh FX | DoN’s 3D Pathfinding

        Comment


          #5
          Oh thanks for your reply, but I haven't used projectiles, is attaching a projectile in the direction of my raytrace and attaching a ribbon emitter to it the only way? Thanks

          Comment


            #6
            You could get the world location of where the bullet should leave the gun, and the world location from the hit feed back by the trace node.
            If there are any content that can be rendered as a bullet trail you know where it should start and end, as for making of the actual bullet trail in question, that is probably a question for the content subforum, no?

            Maybe some kind of particles, or some other smart trick.

            Comment


              #7
              Ahh thanks

              Comment

              Working...
              X