Closed GoogleCodeExporter closed 9 years ago
Are you using the updated Bullet 2.78 r2387? The rendering should be fixed.
Original comment by erwin.coumans
on 18 Apr 2011 at 6:00
[deleted comment]
Yes, svn2387, from the Downloads page. I`m trying a fresh new installation on
Windows 7, but previously a had the same issue on linux. In linux, I got the
latest svn version running OK but in Windows it continues not showing soft
bodies.
Original comment by wendellc...@gmail.com
on 18 Apr 2011 at 7:26
I ran the demo again and realized that the textures are shown with the option
wireframe on, but not in normal mode.
Original comment by wendellc...@gmail.com
on 18 Apr 2011 at 7:34
It could be that the download of bullet-2.78.zip under windows uses the old
(cached) version.
Can you make sure that Bullet/Demos/SoftDemo/SoftDemo.cpp has the following
render method:
void SoftDemo::renderme()
{
btIDebugDraw* idraw=m_dynamicsWorld->getDebugDrawer();
glDisable(GL_TEXTURE_2D);
glDisable(GL_LIGHTING);
m_dynamicsWorld->debugDrawWorld();
btSoftRigidDynamicsWorld* softWorld = (btSoftRigidDynamicsWorld*)m_dynamicsWorld;
for ( int i=0;i<softWorld->getSoftBodyArray().size();i++)
{
btSoftBody* psb=(btSoftBody*)softWorld->getSoftBodyArray()[i];
if (softWorld->getDebugDrawer() && !softWorld->getDebugDrawer()->getDebugMode() & (btIDebugDraw::DBG_DrawWireframe))
{
btSoftBodyHelpers::DrawFrame(psb,softWorld->getDebugDrawer());
btSoftBodyHelpers::Draw(psb,softWorld->getDebugDrawer(),softWorld->getDrawFlags());
}
}
... etc
Original comment by erwin.coumans
on 20 Apr 2011 at 6:37
Yes, the render method is there as is. I observerd that the soft bodies are
correctly drawn with the wireframe debug option on. Maybe a inverted logic
somewhere?
Original comment by wendellc...@gmail.com
on 11 May 2011 at 6:32
It works fine here. Can you try to fix the issue on your side and share a patch?
Original comment by erwin.coumans
on 11 May 2011 at 8:54
How strange. I take the version 2.78 rev 2395 from svn today and it has this
inverted behavior. With wireframe off, it shows no texture, wireframe on, the
soft bodies textures is shown. Weird. I'll try to fix and surely share a patch,
if I success. But that's very, very weird!
Original comment by wendellc...@gmail.com
on 11 May 2011 at 9:00
I encountered the some problem. I think the logic in
if (softWorld->getDebugDrawer() && !softWorld->getDebugDrawer()->getDebugMode()
& (btIDebugDraw::DBG_DrawWireframe))
was inverted.
Original comment by lemonriv...@gmail.com
on 20 May 2011 at 1:14
Does anyone have a fix/patch?
Original comment by erwin.coumans
on 14 Jun 2011 at 6:41
Should be fixed in latest trunk:
http://code.google.com/p/bullet/source/detail?r=2430
Original comment by erwin.coumans
on 15 Sep 2011 at 1:20
Original issue reported on code.google.com by
wendellc...@gmail.com
on 18 Apr 2011 at 5:50