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 / Please help, can this be helped?

Author
Message
cusoi
22
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: Netherlands
Posted: 21st Jan 2003 17:16
I have this kind of object: A building with outside walls and inside walls. Now here's my problem. If i put this object far away i can see trough the outside wall and i see the inside wall. I hope you understand what i say. Is this a darkbasic problem or am i doing something wrong?
Current project: Earth Chaos, a FPRTS
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 21st Jan 2003 18:41
it might be a set object issue to do with the culling switch.


type set object into DBC or DBP and press f1 then read the info regarding this command.

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 21st Jan 2003 18:42
as another quick thought it might be the camera range

set camera range 1,5000 was the default for DBC.

cusoi
22
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: Netherlands
Posted: 21st Jan 2003 19:50
Thank you, it IS the camera range. So I will use fog.

Current project: Earth Chaos, a FPRTS
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 21st Jan 2003 22:24
This technique will help frame rate.

If the object is out of site of the camera, then just hide the object Thus, only closeby objects will be loaded, increasing frame rate and avoiding this problem. You can also find the cameras view angle, like a V and only load objects inside that V, this will make your game even better.

A good idea is to fog about 200 less then your camera range, because if you fog ahead of how far your want objects loading, then objects will just pop out of no where

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
cusoi
22
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: Netherlands
Posted: 21st Jan 2003 23:21
Thank you very much. In my game(fprts) there will be very much objects so framerate could be very low if i don't use your technique. Thanks for good help.

Current project: Earth Chaos, a FPRTS
freak
22
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 22nd Jan 2003 01:08
yeah but if you hide objects outside the V of the camera angle, you won't see their shadows any more (if they have any)...

Login to post a reply

Server time is: 2025-05-11 20:53:23
Your offset time is: 2025-05-11 20:53:23