• Advertisement

Archived

This topic is now archived and is closed to further replies.

Missle Trails

This topic is 5752 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to add smoke trails to my game''s missles like these people did in this image. So far i''ve got a nice array of vectors which gets filled up with the missles position as it flies along every .1 seconds, but i need some suggestions as to go ahead rendering this smoke trail now. my thoughts so far is to dynamically fill a vertex and index buffer as the missle goes along, but i''m wonder is there an even better way to do it or to use vertex/pixel shaders to do it. Suggestions? SkullOne - Hero Interactive http://www.hero-interactive.com

Share this post


Link to post
Share on other sites
Advertisement
It looks like they are rendering the trail twice, with the second scaled up a bit, and more translucent.

Z.

Share this post


Link to post
Share on other sites
I would like to know how you do those trails, I am looking for a way to make missile and engine trails in my game

Share this post


Link to post
Share on other sites
Well i just dynamically create the smoke trail polygons as the missles fly along. Tie that together with a resource manager so you don''t constanly have to be allocating new vertex and index buffers and you''re ready to go.

SkullOne - http://www.hero-interactive.com

Share this post


Link to post
Share on other sites
Just a quick question for you zoomcrypt:

You are using quads that are alinged to the camera (billboarding), right? How did you manage to stitch together the multiple billboards to make the joints between billboards seemless?

Moe''s Site

Share this post


Link to post
Share on other sites
Great, this is what I was thinking for missiles:

Take the 3D position of the source at every time interval and save it to an array (shifting the list downwards, deleting the last item)

To render: A 3D line (2 perpendicular quads) will be created and added to a vertex buffer in software memory, since it changes all the time

The question is how do I generate a list of 3D lines that join together??

Share this post


Link to post
Share on other sites
i dunno to tell you how i did it or let you stew on it a bit longer The former school teacher side is telling me i shuold
let you stew a bit longer. By the way I''ve put up a new page starting to describe the game we''re working on:
http://www.hero-interactive.com/robotech3d.php

If anyone is interested in working with us let me know as i''m starting to get tired of being the only 3d programmer!

SkullOne - http://www.hero-interactive.com

Share this post


Link to post
Share on other sites
it was pretty easy. So you have a list of verticies already now you need a list of triangles using those veriteces right? so just use an indexbuffer and do the same as you did for vertices and you''re ready to go.

SkullOne - Hero Interactive

Share this post


Link to post
Share on other sites
So the smoke trails aren''t always aligned with the view? I would have thought that you would always want them to be facing the camera so that you can never tell that they are just a series of 2 triangles...

Moe''s Site

Share this post


Link to post
Share on other sites
right now the alighment is slightly just randomized for me, but i wanted align them to the alignment of the trajectory at the time of recording the coordinates but was too lazy to figure out the math for it. The results ended up good enough the way i did it so i didn''t bother. I might end up doing two sets of smake trails overlayedd on top of each other to amke the effect look nicer...gotta finish my particle system first though....

SkullOne - Hero Interactive
http://www.hero-interactive.com

Share this post


Link to post
Share on other sites

  • Advertisement