Page 1 of 1

How to hide terrain debug draw ?

Posted: Mon Feb 02, 2015 8:54 am
by peanutandchestnut
Hi, i'm using bullet(2.82) terrain with ogre1.9
It works fine except it takes too much performance to debug draw wireframe of terrain.
The fps drop below 5 if i toggle draw wireframe, i can barely move my camera.
Is there a way to disable debug draw of terrain ? :?: For most of time, i just want to focus on characters and other scene objects.

Re: How to hide terrain debug draw ?

Posted: Mon Feb 02, 2015 9:25 am
by c6burns
set collision flag btCollisionObject::CF_DISABLE_VISUALIZE_OBJECT

Re: How to hide terrain debug draw ?

Posted: Mon Feb 02, 2015 9:36 am
by peanutandchestnut
:D Thanks c6burns