<?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/12590" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2023-07-04T12:04:30+00:00</updated>

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

		<entry>
		<author><name><![CDATA[nobuyuki]]></name></author>
		<updated>2023-07-04T12:04:30+00:00</updated>

		<published>2023-07-04T12:04:30+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44433#p44433</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44433#p44433"/>
		<title type="html"><![CDATA[Re: Changing background color or texture?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44433#p44433"><![CDATA[
You can change the background color of the GUI in PyBullet using the p.configureDebugVisualizer() function.<br><br>You can specify the background color using the rgbBackground parameter. This function accepts multiple parameters other than rbgBackground parameter. <br><br>Here’s an example:<div class="codebox"><p>Code: </p><pre><code>p.configureDebugVisualizer(rgbBackground=[0, 0, 0])</code></pre></div>In this example, the rgbBackground parameter is used to set the background color to black. You can pass an RGB vector [red, green, blue] to set a color of your choice. Each color value should be between 0 and 1.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14519">nobuyuki</a> — Tue Jul 04, 2023 12:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[andytgl]]></name></author>
		<updated>2022-06-17T03:33:52+00:00</updated>

		<published>2022-06-17T03:33:52+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44036#p44036</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44036#p44036"/>
		<title type="html"><![CDATA[Re: Changing background color or texture?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44036#p44036"><![CDATA[
Regarding this, I find myself unable to change the background color (which will remain light purple) either in the GUI window or in DIRECT mode when using the code above. I have experienced this issue with pybullet 3.2.5 on the following OS/python versions<br>- python 3.9.12 on MAC OS 11.6.5<br>- python 3.8.10 on Ubuntu 18<br><br>An example of the output I get is the following: <blockquote class="uncited"><div>Python 3.9.12 (main, Mar 26 2022, 15:52:10) <br>[Clang 13.0.0 (clang-1300.0.29.30)] on darwin<br>Type "help", "copyright", "credits" or "license" for more information.<br>&gt;&gt;&gt; import pybullet as p<br>pybullet build time: Jun 16 2022 23:11:14<br>&gt;&gt;&gt; p.connect(p.GUI, options='--background_color_red=1.0 --background_color_green=1.0 --background_color_blue=1.0')<br>argv[0]=--background_color_red=1.0<br>argv[1]=--background_color_green=1.0<br>argv[2]=--background_color_blue=1.0<br>Version = 4.1 ATI-4.6.21<br>Vendor = ATI Technologies Inc.<br>Renderer = AMD Radeon Pro 5300M OpenGL Engine<br>b3Printf: Selected demo: Physics Server<br>startThreads creating 1 threads.<br>starting thread 0<br>started thread 0 <br>MotionThreadFunc thread started<br>0</div></blockquote>with background color: <br><img src="https://pasteboard.co/eJjGJ59Y7jij.png" class="postimage" alt="Image"><br><br>Has anyone experienced the same issue?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14030">andytgl</a> — Fri Jun 17, 2022 3:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zackory]]></name></author>
		<updated>2019-01-26T18:30:29+00:00</updated>

		<published>2019-01-26T18:30:29+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41818#p41818</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41818#p41818"/>
		<title type="html"><![CDATA[Re: Changing background color or texture?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41818#p41818"><![CDATA[
I have found out we can change the background color of the GUI window using the following code:<div class="codebox"><p>Code: </p><pre><code>import pybullet as pp.connect(p.GUI, options='--background_color_red=1.0 --background_color_green=0.0 --background_color_blue=0.0')</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13191">Zackory</a> — Sat Jan 26, 2019 6:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zackory]]></name></author>
		<updated>2019-01-24T16:37:49+00:00</updated>

		<published>2019-01-24T16:37:49+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41814#p41814</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41814#p41814"/>
		<title type="html"><![CDATA[Changing background color or texture?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=41814#p41814"><![CDATA[
In pybullet, is it possible to change the current background color (light blue/purple) to another color, or even to a texture?<br>For example, is it possible to have a starry night background, similar to the one found in DeepMind's control suite?<br><a href="https://github.com/deepmind/dm_control" class="postlink">https://github.com/deepmind/dm_control</a><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13191">Zackory</a> — Thu Jan 24, 2019 4:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
