Jump to content

  • Log In with Google      Sign In   
  • Create Account


how to draw a moving object trace path?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 JohnnyCode   Members   -  Reputation: 161

Like
0Likes
Like

Posted 19 January 2014 - 01:06 AM

Hi,

 

I wonder what techniques are used in general to draw an arbitrary moving object fading path trace. Such as a sword or car for example.



Sponsor:

#2 ATEFred   Members   -  Reputation: 998

Like
1Likes
Like

Posted 19 January 2014 - 04:22 AM

One approach is have attractors on the start and end of your trace creating object ( such as the hilt and tip of a sword ), and create bands of geometry every frame from these attractor positions. Simplest form of that is one band being 2 verts, one for each attractor / end of the band, have a dynamic vertex buffer which you fill up with all active band vertices, from newest to oldest ( or the other way around ). You can use vertex colours for fading it out. Then render it as a tri strip, and job done :)



#3 ryt   Members   -  Reputation: 294

Like
0Likes
Like

Posted 19 January 2014 - 08:34 AM

You could try with particle system that creates particles at desired position or try with a trail renderer.



#4 Álvaro   Crossbones+   -  Reputation: 11709

Like
1Likes
Like

Posted 19 January 2014 - 09:13 AM

You can search the web for "motion blur".




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS