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 Professional Discussion / Level Of Detail Shader

Author
Message
cjb2006
19
Years of Service
User Offline
Joined: 20th May 2006
Location:
Posted: 11th Jan 2009 18:45 Edited at: 14th Jan 2009 02:31
This is just to complete some thoughts I had about the subject of this thread over the last few months. I've gone back to work full time so I won't be putting any more effort into it. It's probably not very useful but since it kind of works I'll post it here. I was looking for an alternative to alpha fading impostors (billboards). As you will see, by the brevity of the code, the shader does most of the work. Hope you like it.

For you dial-uppers - sorry, the project is heavy on the media and weighs in at about 2 megs.

2000 Tanks in a valley.

cjb2006
19
Years of Service
User Offline
Joined: 20th May 2006
Location:
Posted: 18th Jan 2009 14:06
Just curious. I only have access to ATI video cards and I know there can be card specific differences. Is this crashing on other cards? Is it running for anybody? You obviously need shader capability to test it.
roka
17
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 18th Jan 2009 14:30
i have 2 gforce 8800 gts in sli
its work great
950/1500 fps

Roka The French Boy
cjb2006
19
Years of Service
User Offline
Joined: 20th May 2006
Location:
Posted: 31st Jan 2009 01:10
LOL! Thanks roka - I guess I'll have to target a minimum spec of sm4 and 250 megs of vram since we seem to be the only ones who can run it.
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 31st Jan 2009 02:13
I've just tried it on my notebook; Acer Aspire One with Intel Graphics Media Accelerator 950 (inbuilt graphics).

Runs a treat at ~99fps.



Xsnip3rX
18
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 31st Jan 2009 02:24
Damn you roka, i'm only getting 500FPS.

Not_Maindric
18
Years of Service
User Offline
Joined: 10th Jul 2007
Location: Omaha, NE
Posted: 31st Jan 2009 02:35 Edited at: 31st Jan 2009 02:38
I get 65 on a ATI Radeon X300 256mb VRam. Not sure if the 65 is a vsync limit or what will check that out now.

Edit

When I changed the res to 800x600, it jumped to ~180 and at 640X480, it went to ~220, so it was not the vid card. Heh, I need to update my comp soon.

James H
18
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 31st Jan 2009 04:02
1000-1050fps - 8800gt 512mb
Nice. Don`t have time for a proper look but I will soon
cyangamer
17
Years of Service
User Offline
Joined: 2nd Jun 2008
Location: Houston, TX, USA
Posted: 31st Jan 2009 06:13
I regret getting a notebook with an integrated GPU.

Well, it's tolerable -- about 70 FPS. Though, I'm not quite sure of what exactly is going on in this test. I don't see any increased detail when getting closer to the tanks.

Unless that wasn't the intention, then just disregard this.

Currently working on - Enemy AI using Dark A.I. I probably should've looked at the reviews in the Dark Physics and Dark A.I. forum first.
Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 31st Jan 2009 12:55 Edited at: 31st Jan 2009 12:57
Quote: "I guess I'll have to target a minimum spec of sm4 and 250 megs of vram since we seem to be the only ones who can run it."


It runs on my ancient machine at a steady smooth 60 fps.

PC specs:

Year Purchased - 2001
Pentium III, 930MHz
256MB RAM
GeForce FX 5200, 128MB (max shader model SM2)

[Edit: the GFX card is NOT the original - I upgraded that 3 or 4 years ago, the rest is the original machine]
cjb2006
19
Years of Service
User Offline
Joined: 20th May 2006
Location:
Posted: 31st Jan 2009 13:26
Thanks guys. I would have thought that the 2048x2048 image would bomb on some of those integrated chips but am glad to see it doesn't. I guess twenty first century technology has overcome my crappy coding skills once again.
Cloggy
20
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 31st Jan 2009 20:46
Steady 460 here with X1950pro

qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 31st Jan 2009 22:50 Edited at: 31st Jan 2009 22:50
the skybox makes it look like, in a screenshot, they are on a gigantic terrain

i was dissapointed when i saw that the hills were part of a skybox

gigantic outdoor environments are hard to make
Neuro Fuzzy
18
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 10th Feb 2009 02:13
huh... the shader doesn't work on my pc. the objects just dissappear once they get out of range... and it runs at 100 fps...

hmmm... nope, my gfx card's worse but i have a pentium 4 and 1 gig of ram.
Kuper
17
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 11th Feb 2009 12:02
It works great!! 550 fps!!!your shader is really good!i have only one question: how did you make this .dds file with tanks?you have special code for this or you use program like 3dsMAX?

Login to post a reply

Server time is: 2025-08-09 02:28:52
Your offset time is: 2025-08-09 02:28:52