Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / object trail...?

Author
Message
Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 28th Apr 2004 15:51
how i do that when object move then he leave trails for some time?
MrNick
21
Years of Service
User Offline
Joined: 23rd Feb 2004
Location:
Posted: 28th Apr 2004 18:48 Edited at: 28th Apr 2004 18:49
well try this:


Make games!
Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 29th Apr 2004 00:51
it does not working...
someone can help?

Thank you...Shafan

I LOVE BEING JEWISH FROM ISRAEL!!!
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 29th Apr 2004 01:11
One method is to create an image management system and display a number of images (textured plains in this case) hanging off the object much like a snake's tail. It's not a trivial task since you have to constantly update the trail, fade the images as time passes, and detect when the object moves and the images need to be displayed and decayed.
--
TAZ

Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 29th Apr 2004 15:11
thank you...
can you give me snippet?

Thank you...Shafan

I LOVE BEING JEWISH FROM ISRAEL!!!
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 29th Apr 2004 18:48 Edited at: 29th Apr 2004 18:49
If I had one, I'd give it to you. This topic has come up before. I suggest searching the forums. There might be something in the code base as well.
--
TAZ

PS. I write turn based games, so I've never needed to write my own real time trail management routines.

Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 29th Apr 2004 21:36
thanks..

Thank you...Shafan

I LOVE BEING JEWISH FROM ISRAEL!!!
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 29th Apr 2004 21:43
You might also want to search for Wolf's EZRotate plugin as that will make your life a lot easier (relative rotation versus DBP global eular rotation.)
--
TAZ

Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 2nd May 2004 20:42
does anybody can give me code snnipet?

Thank you...Shafan

I LOVE BEING JEWISH FROM ISRAEL!!!
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 3rd May 2004 20:07
I have an unfinished trails example in my project directory. It might be a start for you. Or, you can wait until I find the time to finish it. [Perhaps days or weeks from now due to my day job and night classes.]
--
TAZ

Use up arrow to move and side arrows to turn.



Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 3rd May 2004 21:48
that is not what i want....
i want that when you move the camera then the object will apeer on the screen in the new position but also in the last position but fade....something in this way...

Thank you...Shafan

I LOVE BEING JEWISH FROM ISRAEL!!!
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 3rd May 2004 22:51 Edited at: 3rd May 2004 22:53
Motion blur? Good luck! Perhaps you can use a ghosted model, but that effect is not an object trail like contrails, jet exhaust, or a blade swing.
--
TAZ

Also, I know that example is pretty lame. Perhaps when I add some color and fading it will look better.

Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 4th May 2004 00:05
yes i think that is moition blur...how do i do it?

Thank you...Shafan

I LOVE BEING JEWISH FROM ISRAEL!!!
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th May 2004 00:13
what about having the trail as an object, pointing it at the main object and moving it slightly slower then that main object.
If this is a dumb point then just ignore it, ok?
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th May 2004 00:15
oh, and multiple objects could be used in longer trails, like sword swishes.
Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 4th May 2004 00:16
do you have code for this?

Thank you...Shafan

I LOVE BEING JEWISH FROM ISRAEL!!!
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th May 2004 00:23
wait, that would need for the code to take a picture and then gradually blur it. Ah well, I tried.
Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 4th May 2004 00:29
this what i got:
take screen shot (get image),blur it,make it transparent and show it(paste picture)...?

Thank you...Shafan

I LOVE BEING JEWISH FROM ISRAEL!!!
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th May 2004 00:31
Does it work?
Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 4th May 2004 00:37
i dont know...i didnt try yet...is this the way?

Thank you...Shafan

I LOVE BEING JEWISH FROM ISRAEL!!!
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 4th May 2004 00:40
In DB, the best you'll be able to manage is multiple ghosted models. Possible, but it is expensive in polygons since you will have multiple copies of the same model and perhaps even ugly when you start adding in character animation.
--
TAZ

Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 4th May 2004 00:41
how do i copy objects?

Thank you...Shafan

I LOVE BEING JEWISH FROM ISRAEL!!!
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th May 2004 00:42
Its true. Is'nt "get image" for selecting a specific part of a bitmap? Not of the screen.
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th May 2004 00:44
You could use other objects, simpler objects with extra-low poly conts!
Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 4th May 2004 00:50
thanks

Thank you...Shafan

I LOVE BEING JEWISH FROM ISRAEL!!!
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th May 2004 00:53
why..is..everything...so..slow...?...???
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th May 2004 00:56
well then. some really cool dude has found a good way to use gravity. its under "gravity with any object shape". lets all go and look at what he has to say!!!
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th May 2004 00:58
sorry. its "gravity on any object shape". Now we will all go there. please...
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th May 2004 01:22
hey!!!
code snippets
page: 2
"DB Classic-motion blurring snippet!"
andrew11
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 4th May 2004 03:08 Edited at: 4th May 2004 03:08
@Aura
There is an edit button you know...

Heres some code I wrote (Check the source button). I made it in DBP, but should work in DBC.

P.S. Get Image works for screen too.

"All programmers are playwrites and all computers are lousy actors" -Anon
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th May 2004 03:39 Edited at: 4th May 2004 03:41
Stupid dark basic user manual! may you burn in the eternity that is... eternity..yeah.

p.s sorry but i like filling the page with the logo from my favourite game.

Login to post a reply

Server time is: 2025-05-23 14:27:37
Your offset time is: 2025-05-23 14:27:37