Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

how to draw a moving object trace path?

4: Adsense

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   

1166
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.



#2 ATEFred   Members   

1678
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   

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   Members   

20936
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.