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 / level of detail

Author
Message
nruser
17
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 30th Apr 2008 20:44
Is it anyway possible to make player able set level of details in game made in DBC?

P3 CPU 500 Mhz, 128 MB RAM, 16 MB VRAM, WinXP.
Almost the best configuration for game development.
The Wilderbeast
19
Years of Service
User Offline
Joined: 14th Nov 2005
Location: UK
Posted: 30th Apr 2008 21:44
You would have say three different versions of each model, maybe even more. One for close up, one for mid distance, and one for far away. And then switch depending on how far away the object is.

nruser
17
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 30th Apr 2008 22:53
maybe I can use that, but if player changes video detail option to low, mid, and high, what then?

P3 CPU 500 Mhz, 128 MB RAM, 16 MB VRAM, WinXP.
Almost the best configuration for game development.
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 1st May 2008 05:12
You can either change the model, as Wilderbeast said, or change the textures. Just have it so that if the player changes to low detail, you load and use the smaller size texture file and the hi res ones if they select high detail

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
nruser
17
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 1st May 2008 14:51
Thanks a lot.

P3 CPU 500 Mhz, 128 MB RAM, 16 MB VRAM, WinXP.
Almost the best configuration for game development.
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 1st May 2008 15:28
You can also set the display mode:

high: if display mode exist(1024,768,32)=1 then set display mode 1024,768,32
medium: if display mode exist(800,600,24)=1 then set display mode 800,600,24
low: if display mode exist(640,420,16)=1 then set display mode 640,420,16
sucky: if display mode exist(320,200,16)=1 then set display mode 320,200,16

By doing this, you can set the number of pixels being drawn to the screen. The lower you set it, the faster it runs.

There is one bug: If you set the display mode in the game, you have to delete everything before doing it and then create everything again... Thats why you should set it at the start of the program

Oooooops!!! I accidentally formated drive c.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 1st May 2008 23:27
There's also Set Camera Range combined with shortening the Fog Distance so the objects being drawn closer aren't seen being drawn.

Plus you have the technique of replacing objects in the distance with plains which are textured with a picture of the object. From a distance you can't tell. Replace the plains with objects based on the distance from them - as The Wilderbeast says.

TDK_Man

Login to post a reply

Server time is: 2025-06-07 13:07:33
Your offset time is: 2025-06-07 13:07:33