<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/11951" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2017-12-11T21:15:59+00:00</updated>

	<author><name><![CDATA[Real-Time Physics Simulation Forum]]></name></author>
	<id>https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/11951</id>

		<entry>
		<author><name><![CDATA[elkmug]]></name></author>
		<updated>2017-12-11T21:15:59+00:00</updated>

		<published>2017-12-11T21:15:59+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40224#p40224</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40224#p40224"/>
		<title type="html"><![CDATA[Re: Built-in box visual object has incorrect normals, when created via loading a urdf]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40224#p40224"><![CDATA[
<em class="text-italics">&gt;What is 'incorrect' about the normals?</em><br>The normals are smoothing edges that on a cube shouldn't be smoothed. <br>I don't think anyone would look at the above image and say 'That cube looks correct' <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><em class="text-italics">&gt;If you want unique normals that point in the face direction,why don't you use Bullet/data/cube.obj?</em><br>Well, I certainly could and have been using the cube.obj, but figured that the built-in version might be more efficient. With a multibody more complex than a single cube you might load that same obj quite a few times. Does pybullet automatically realize it's the same file and create instances rather than a bunch of unique objects? (If so, very cool.)<br><br>Also pybullet.createMultiBody does handle the normals of it's built-in box 'correctly', it's seems inconsistent that loading a urdf does not.<br><br>The timestep/substeps are indeed wacky, they were from a different experiment where I was pushing around settings to see what would happen and I forgot to change them back. <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=12458">elkmug</a> — Mon Dec 11, 2017 9:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2017-12-11T20:19:13+00:00</updated>

		<published>2017-12-11T20:19:13+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40223#p40223</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40223#p40223"/>
		<title type="html"><![CDATA[Re: Built-in box visual object has incorrect normals, when created via loading a urdf]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40223#p40223"><![CDATA[
What is 'incorrect' about the normals? I get a similar image than you. What kind of normals would you expect?<br>The built-in cube likely uses interpolated vertex normals, instead of face normals.<br><br>If you want unique normals that point in the face direction,why don't you use Bullet/data/cube.obj?<br><br>by the way,<br><div class="codebox"><p>Code: </p><pre><code>tStep = 1.0/1000subStep = 200print("tStep:"), tStepp.setPhysicsEngineParameter(fixedTimeStep=tStep, numSubSteps=subStep)</code></pre></div>Do you really want to use an internal physics simulation step of 1 / 200.000? substeps divide the provided timestep.<br><br>You likely want to use use a substep of 1, when using a simulation step of 1./1000.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Mon Dec 11, 2017 8:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[elkmug]]></name></author>
		<updated>2017-12-11T20:09:23+00:00</updated>

		<published>2017-12-11T20:09:23+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40222#p40222</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40222#p40222"/>
		<title type="html"><![CDATA[Re: Built-in box visual object has incorrect normals, when created via loading a urdf]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40222#p40222"><![CDATA[
Attached is a zip of a simple script and it's urdfs.<br> <br>I included the plane.urdf, plane obj, &amp; plane.mtl <br>from the bullet data folder so things would run from <br>wherever you extract this<dl class="file"><dt><span class="imageset icon_topic_attach"></span> <a class="postlink" href="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1579">urdf_normal_issue.zip</a></dt></dl><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=12458">elkmug</a> — Mon Dec 11, 2017 8:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2017-12-11T19:18:11+00:00</updated>

		<published>2017-12-11T19:18:11+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40217#p40217</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40217#p40217"/>
		<title type="html"><![CDATA[Re: Built-in box visual object has incorrect normals, when created via loading a urdf]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40217#p40217"><![CDATA[
It is not clear what the problem is. Can you share a simple pybullet Pythons script that shows the problem?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Mon Dec 11, 2017 7:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[elkmug]]></name></author>
		<updated>2017-12-11T17:24:38+00:00</updated>

		<published>2017-12-11T17:24:38+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40216#p40216</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40216#p40216"/>
		<title type="html"><![CDATA[Built-in box visual object has incorrect normals, when created via loading a urdf]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=40216#p40216"><![CDATA[
If you create a urdf that uses the built-in visual representation for a box, it works, but the box does not have proper normals. block.urdf in the bullet data folder can be used to demonstrate the problem but you'll probably have to make the size of the block larger or you won't be able to notice the issue, unless you zoom waaay in.<br><br>Interestingly, if you create the multibody with createMultiBody, rather a urdf, and set the baseVisualShapeIndex option to -1 to get the built in visual shape, the normals are correct. createMultiBodyLinks.py in examples\pybullet\examples is, well, a good example of this  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I haven't had a chance to test the built-in spheres or cylinders, so don't know if they have the same issue or not.  Also In the attached image the smaller cuboid on camera left, with correct normals, uses the mesh visual object and is loading a .obj.<br><br>-Jeff<dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1578" class="postimage" alt="built_in_box_incorrect_normals.jpg" onclick="viewableArea(this);" /></dt></dl><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=12458">elkmug</a> — Mon Dec 11, 2017 5:24 pm</p><hr />
]]></content>
	</entry>
	</feed>
