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.

Newcomers DBPro Corner / moving objects, without leaving a trail

Author
Message
Darksyde
21
Years of Service
User Offline
Joined: 13th Sep 2003
Location: Staffordshire, UK
Posted: 19th Nov 2003 00:51
ok whenever i move an object it leaves a trail (image of itself behind) obviously this is kinda messin everythin up. i tried havin it so that the screen is cleared every other loop but this results in an annoying flickering type effect. any help would be appreciated. thanx



Athlon 2200 XP, 512MB RAM, Geforce 4 128MB
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th Nov 2003 01:03
So you want us to guess?

Can you post a little code that exhibits your problem, then we can debug that
Darksyde
21
Years of Service
User Offline
Joined: 13th Sep 2003
Location: Staffordshire, UK
Posted: 19th Nov 2003 01:11
ok sorry. i guess posting code wud have helped. ok heres a simple example. theres probably a load of other stuff wrong with it too, lol. as u can see when the cube rotates it leaves an image of itself behind and i just wana stop that from happening.



Athlon 2200 XP, 512MB RAM, Geforce 4 128MB
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 19th Nov 2003 02:42
Simply do not turn off the backdrop! You only do this if using a skysphere or box which you will not need yet.

You also do not need to 'show object' as objects are redrawn automatically every loop.

Boo!
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 19th Nov 2003 13:18
Spooky raises an interesting issue and so I hope he will not object if I address a question to him.

I am using a skysphere but I don't turn off backdrop. Should I turn the backdrop off? If so, should I turn it off before or after I load the skysphere for the first time?

Lets say the skysphere is 2000 units big. If I turn off backdrop should I tell the camera to have a far distance of only 1000?, i.e. the length of the radius?

Ta

Philip

What do you mean, bears aren't supposed to wear hats and a tie?
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 19th Nov 2003 13:46
It has been shown that turning off backdrop gives you a few extra fps. All 3d objects need an object behind it to render against. The backdrop is usually used for this. If you have a sphere or box, you dont actually need the backdrop.

It doesnt matter if you turn it off before or after creation of skysphere. Just remember to turn it back on if you can quit to a main menu, and then turn it off when you start game.

Correct, if sphere is created 2000 units (which is a radius of 1000) then it makes sense to set camera range to just beyond the sphere, something like 1100 just to be on safeside.

Boo!
Darksyde
21
Years of Service
User Offline
Joined: 13th Sep 2003
Location: Staffordshire, UK
Posted: 19th Nov 2003 16:19
lol thanx. pretty simple solution ok now for next problem, lol... without turning backdrop off the screen is now blue, is there anyway to avoid this?



Athlon 2200 XP, 512MB RAM, Geforce 4 128MB
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 19th Nov 2003 20:31
Default backdrop is blue. You can use COLOR BACKDROP to change it to whatever colour you want. Once you get more experience you will start using skyspheres and skyboxes and so have pretty backgrounds.

Boo!
Darksyde
21
Years of Service
User Offline
Joined: 13th Sep 2003
Location: Staffordshire, UK
Posted: 20th Nov 2003 01:37
thanx again. il probably end up using an image as the backdrop anyways.



Athlon 2200 XP, 512MB RAM, Geforce 4 128MB

Login to post a reply

Server time is: 2024-11-25 17:38:36
Your offset time is: 2024-11-25 17:38:36