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 / Dark occlusion is occluding covered poligons or just entire covered object?

Author
Message
Alduce
23
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Rama spaceship
Posted: 20th May 2013 11:17 Edited at: 20th May 2013 11:31
Hi again to all.
I am looking Dark Occlusion plugin and it's really amazed.

I am curious to know some things:

1) In my project I have a zone where there are 2000 little cubes.
I also prepared a piece of code to hide show these little cubes.
I notice that when I hide these little cubes I get just a very little increase in fps.
So, I think the occlusion working in really different way than a simple "hide object" command so I am curious to know If I can get an advantage using this plugin.
When I see this zone full of little cubes I notice many of these little cubes are ahead (from the camera point of view) compared to other little cubes so hiding the little cubes that staying behind..
damn my english really suck now so take the classic "dark occlusion" example picture where there are a lot of homes and the nearest homes covering the "behind houses".
So when will start the occlusion so all the "covered" polygons are "cleared"..

THEN the question:
If the behind homes is just partially covered by the nearest homes so the behind homes will result fully drawed, fully cleared or will be occluded just the covered poligons of the behind home?

Maybe to make the occlusion, darkocclusion need to have the behind homes full covered by the nearest homes?

2) Dark occlusion using multi thread right? (so can be helped by the work of other cpu cores)

For now thank you!
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 20th May 2013 18:42
1. It depends: if home is made out of limbs some of them that are completely behind will be hidden, others won't. If home is object with one limb then it will be rendered. The whole limb needs to be occluded for it to be hidden by dark occlusion dll

2. I don't know

Alduce
23
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Rama spaceship
Posted: 22nd May 2013 15:12
Hi Brendy boy, mmmm so you speaking about limbs eh..
So I suppose that if the homes are .X objects made by only ONE piece so the occlusion can be wrong or not efficency right?
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 23rd May 2013 01:06
Quote: "So I suppose that if the homes are .X objects made by only ONE piece so the occlusion can be wrong or not efficency right? "

in that case the whole object needs to be behind other object to be occluded by dark occlusion

How efficient it is depends on the size and number of objects.
If most of the objects are at least partialy seen most of the time then occlusion won't be very efficient

Alduce
23
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Rama spaceship
Posted: 23rd May 2013 10:11
mm ok, this is pretty logic.
Really thank you; now I need to open another thread about dark occlusion, I hope you can help in that too!
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 23rd May 2013 13:52
Quote: "I notice that when I hide these little cubes I get just a very little increase in fps."

It depends on where your FPS is to begin with, but excluding them should be much more efficient than hiding them.


"Why do programmers get Halloween and Christmas mixed up?"

Login to post a reply

Server time is: 2026-07-11 06:03:28
Your offset time is: 2026-07-11 06:03:28