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 / LOD Effect

Author
Message
Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 5th Nov 2004 06:36
Hi there.
It's been a while since i posted here. I'm working on a Far Cry style game. I have a map running only with a quite slow fps. So i want to build a LOD function in.

Does anyone know how to do this in DBC ?

Thanks in advance
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 5th Nov 2004 20:12
Have different models, one low poly, one high poly. Break the map into chunks, if your not on a chunk, make it low poly. If you cant see a chunk, hide it. If you cant see an object, hide that too


Click here to join our forums and get updates on game progress sooner!
Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 7th Nov 2004 07:53
I already figured that out.

I want to use a distance calculator for the distance between the camera and the objects.

If the distance is further than 100 then fade it out.

The only problem is, i dont have any script that detects more than one object at one time.
hyrichter
21
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 7th Nov 2004 12:35
I did something similar in my FPS game. Every 5 loops, I check to see the distance of my objects from the camera. All objects that are far enough away and visible I hide, and any that are hidden, but now close enough to see, I show. Example:



You will need a distance function for that code to work. Here is the one I made.



The distance function above has two options. One for calculating distance from the camera to an object, and from object to object. Hopefully, this makes some sense.

Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 7th Nov 2004 18:41
Thanks

it's working pretty good

I'll put you on the credits

Login to post a reply

Server time is: 2025-05-24 12:29:26
Your offset time is: 2025-05-24 12:29:26