<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.trinitydesktop.net/index.php?action=history&amp;feed=atom&amp;title=3D_graphics_%28KDE3_Architecture%29</id>
	<title>3D graphics (KDE3 Architecture) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.trinitydesktop.net/index.php?action=history&amp;feed=atom&amp;title=3D_graphics_%28KDE3_Architecture%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=3D_graphics_(KDE3_Architecture)&amp;action=history"/>
	<updated>2026-05-24T23:54:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.13</generator>
	<entry>
		<id>https://wiki.trinitydesktop.net/index.php?title=3D_graphics_(KDE3_Architecture)&amp;diff=1664&amp;oldid=prev</id>
		<title>Blu256: +KDE3 template</title>
		<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=3D_graphics_(KDE3_Architecture)&amp;diff=1664&amp;oldid=prev"/>
		<updated>2021-08-22T19:24:04Z</updated>

		<summary type="html">&lt;p&gt;+KDE3 template&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:24, 22 August 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt;{{KDE3}}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;== 3D graphics with OpenGL ==&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;== 3D graphics with OpenGL ==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key mwdb:diff:wikidiff2:1.12:old-2:rev-1664:1.13.0 --&gt;
&lt;/table&gt;</summary>
		<author><name>Blu256</name></author>
	</entry>
	<entry>
		<id>https://wiki.trinitydesktop.net/index.php?title=3D_graphics_(KDE3_Architecture)&amp;diff=2&amp;oldid=prev</id>
		<title>imported&gt;Eliddell: Created page with &quot;== 3D graphics with OpenGL ==  The de facto standard for rendering 3D graphics today is  [http://www.opengl.org OpenGL]. Implementations of this specification come  with Micro...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.trinitydesktop.net/index.php?title=3D_graphics_(KDE3_Architecture)&amp;diff=2&amp;oldid=prev"/>
		<updated>2014-05-29T21:26:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== 3D graphics with OpenGL ==  The de facto standard for rendering 3D graphics today is  [http://www.opengl.org OpenGL]. Implementations of this specification come  with Micro...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== 3D graphics with OpenGL ==&lt;br /&gt;
&lt;br /&gt;
The de facto standard for rendering 3D graphics today is &lt;br /&gt;
[http://www.opengl.org OpenGL]. Implementations of this specification come &lt;br /&gt;
with Microsoft Windows, Mac OS X and XFree86 and often support the hardware acceleration &lt;br /&gt;
features offered by modern graphics cards. OpenGL itself only deals with rendering on&lt;br /&gt;
a specified area of the framebuffer through a &amp;#039;&amp;#039;GL context&amp;#039;&amp;#039; and does not have any&lt;br /&gt;
interactions with the toolkit of the environment&lt;br /&gt;
&lt;br /&gt;
Qt offers the widget QGLWidget&lt;br /&gt;
which encapsulates a window with an associated GL context. Basically, you use it&lt;br /&gt;
by subclassing it and reimplementing some methods.&lt;br /&gt;
&lt;br /&gt;
*Instead of reimplementing paintEvent() and using QPainter to draw the widget&amp;#039;s contents, you override paintGL() and use GL commands to render a scene. QLWidget will take care of making its GL context the current one before paintGL() is called, and it will flush afterwards.&lt;br /&gt;
*The virtual method initializeGL() is called once before the first time resizeGL() or paintGL() are called. This can be used to construct display lists for objects, and make any initializations.&lt;br /&gt;
*Instead of reimplementing resizeEvent(), you override resizeGL(). This can be used to set the viewport appropriately.&lt;br /&gt;
*Instead of calling update() when the state of the scene has changed - for example when you animate it with a timer -, you should call updateGL(). This will trigger a repaint.&lt;br /&gt;
&lt;br /&gt;
In general, QGLWidget behaves just like any other widget, i.e. for example&lt;br /&gt;
you can process mouse events as usual, resize the widget and combine it with&lt;br /&gt;
others in a layout.&lt;br /&gt;
&lt;br /&gt;
[[Image:opengl-gears.png|frame|center|OpenGL screenshot]]&lt;br /&gt;
&lt;br /&gt;
Qt contains some examples of QGLWidget usage in its &amp;lt;tt&amp;gt;demo&amp;lt;/tt&amp;gt; example.&lt;br /&gt;
A collection of tutorials can be found &lt;br /&gt;
[https://web.archive.org/web/20020206053805/http://www.libsdl.org/opengl/intro.html here],&lt;br /&gt;
and more information and a reference of OpenGL is available on the&lt;br /&gt;
[http://www.opengl.org OpenGL homepage].&lt;br /&gt;
&lt;br /&gt;
== High-level interfaces ==&lt;br /&gt;
&lt;br /&gt;
OpenGL is a relatively low-level interface for drawing 3D graphics. In the same&lt;br /&gt;
way QCanvas gives the programmer a higher-level interface which details with&lt;br /&gt;
objects and their properties, there are also high-level interfaces for 3D graphics.&lt;br /&gt;
One of the most popular is Open Inventor. Originally a technology developed by SGI,&lt;br /&gt;
there is today also the open source implementation &lt;br /&gt;
[http://www.coin3d.org Coin], complemented by a toolkit binding to Qt&lt;br /&gt;
called SoQt. &lt;br /&gt;
&lt;br /&gt;
The basic concept of Open Inventor is that of a &amp;#039;&amp;#039;scene&amp;#039;&amp;#039;. A scene can be loaded&lt;br /&gt;
from disk and saved in a special format closely related to &lt;br /&gt;
[http://en.wikipedia.org/wiki/VRML VRML]. A scene consists of a collection of objects&lt;br /&gt;
called &amp;#039;&amp;#039;nodes&amp;#039;&amp;#039;. Inventor already provides a rich collection of reusable nodes,&lt;br /&gt;
such as cubes, cylinders and meshes, furthermore light sources, materials, cameras&lt;br /&gt;
etc. Nodes are represented by C++ classes and can be combined and subclassed.&lt;br /&gt;
&lt;br /&gt;
An introduction to Inventor can be found &lt;br /&gt;
[https://web.archive.org/web/20031115053554/http://www.motifzone.com/tmd/articles/OpenInventor/OpenInventor.html here]&lt;br /&gt;
(in general, you can substitute all mentions of SoXt by SoQt in this article).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Initial Author:&amp;#039;&amp;#039; [mailto:bernd@kdevelop.org Bernd Gehrmann]&lt;br /&gt;
&lt;br /&gt;
[[Category:KDE3]]&lt;br /&gt;
[[Category:Architecture]]&lt;br /&gt;
[[Category:Developers]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Eliddell</name></author>
	</entry>
</feed>