Jump to content
Leadwerks Community

Recommended Posts

Posted

About the OcclusionCulling function, documentation says:

If mode is set to 1 hardware occlusion culling will be enabled, if it is supported on the user's system.

 

This means that not all graphics cards support this feature?

 

In my program I see that the number of rendered polygons dependeds of the direction of the view, but it seems that culled geometry is rendered too, even if occluded by other object, when is in direction of the view. I'm using Leadwerks Engine 2.28. Is this the normal behavior of occlusion culling, or must not render occluded meshes (this was whay I thought reading features of the engine).

 

Must I update my video card, or update the Leadwerks Engine version to support this functionality?

 

Thanks

Posted

I had a little test with the occlusion culling setting last night.

 

If you have TWO cameras, one in which the entity is visible, and one where it isn't, objects will flicker, flash on and off every alternate frame until you move both cameras to see them. Most annoying.

 

But other than that I didn't see any performance difference with and without.

6600 2.4G / GTX 460 280.26 / 4GB Windows 7

Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT

Tricubic Studios Ltd. ~ Combat Helo

Posted

Masterxilo, the link sends me to an empty page:

"There is currently no text in this page, you can search for this page title in other pages or edit this page. "

 

I tried to set ::EntityOcclusionMode(mesh, 1) in my meshes but is rendering the same number of polygons as before

Posted

Delete the "." at the end of his link :P

 

Here

 

hahahaha ok now works :-)

 

I was forgotting this line:

OcclusionCulling(true);

 

I was only setting OcclusionCulling on meshes...

Posted

I shouldn't have relied on the forum turning http://urls automatically into links and better made it a link myself :P

 

@Flexman

If you have TWO cameras, one in which the entity is visible, and one where it isn't, objects will flicker, flash on and off every alternate frame until you move both cameras to see them.

You shouldn't have more than one visible camera at any given time. Or weren't both of them visible when you got the described effects?

Posted
I shouldn't have relied on the forum turning http://urls automatically into links and better made it a link myself :P
I always leave a space on both ends of an url, or put it in a separate line.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...