<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[GMan's Mods & Stuff — draw3DLine?]]></title>
		<link>https://gprogs.com/viewtopic.php?id=174</link>
		<atom:link href="https://gprogs.com/extern.php?action=feed&amp;tid=174&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in draw3DLine?.]]></description>
		<lastBuildDate>Sat, 31 Mar 2007 15:33:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: draw3DLine?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=694#p694</link>
			<description><![CDATA[<p>NO worries about the runaround, its given my more confidence to simple look the answer up on the irrlicht boads, which I have been loath to do because of the obvious cross-cross-platform problems.</p>]]></description>
			<author><![CDATA[null@example.com (H&K)]]></author>
			<pubDate>Sat, 31 Mar 2007 15:33:05 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=694#p694</guid>
		</item>
		<item>
			<title><![CDATA[Re: draw3DLine?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=693#p693</link>
			<description><![CDATA[<p>ah.&nbsp; my apologies on that.&nbsp; i took the code and edited it from my original notes.&nbsp; &nbsp;unfortunately i chopped out the most important part which was the driver.setMaterial() call.&nbsp; sorry for the runaround on that &lt;cant believe i did that&gt; <img src="https://gprogs.com/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><p>you can also check out draw.bmx of iB3D for an implementation.</p>]]></description>
			<author><![CDATA[null@example.com (gman)]]></author>
			<pubDate>Sat, 31 Mar 2007 14:31:05 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=693#p693</guid>
		</item>
		<item>
			<title><![CDATA[Re: draw3DLine?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=691#p691</link>
			<description><![CDATA[<p>ha ha, fixed it. (Ok so I went to the irrlicht boards and did a search, but that still counts <img src="https://gprogs.com/img/smilies/wink.png" width="15" height="15" alt="wink" /> , the code you posted above also needs to turn the material lighting off and be selected, so<br /></p><div class="codebox"><pre><code>Local material:SMaterial= SMaterial.Create()
material.setLighting(False)
driver.setMaterial(material)
Driver.SetTransform(ETS_WORLD,Matrix4.Create())</code></pre></div><p>The software1 driver still doesnt work correctly, but at least the other four now give the same results <img src="https://gprogs.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[null@example.com (H&K)]]></author>
			<pubDate>Sat, 31 Mar 2007 04:28:21 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=691#p691</guid>
		</item>
		<item>
			<title><![CDATA[Re: draw3DLine?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=690#p690</link>
			<description><![CDATA[<p>Well one of the software worked (Pink line up, Pink Line Down), one software render gives only the pink line up.</p><p>The three hardware give a pine line up, but a black line down. (When you say two lines, do you mean two pink lines, or a pink and black line?)</p>]]></description>
			<author><![CDATA[null@example.com (H&K)]]></author>
			<pubDate>Fri, 30 Mar 2007 17:12:10 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=690#p690</guid>
		</item>
		<item>
			<title><![CDATA[Re: draw3DLine?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=689#p689</link>
			<description><![CDATA[<p>the software renderers appear to have issues as they only showed one distinct line.&nbsp; the other 3 all represented the same thing (two lines).&nbsp; what are you seeing?</p>]]></description>
			<author><![CDATA[null@example.com (gman)]]></author>
			<pubDate>Fri, 30 Mar 2007 16:55:42 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=689#p689</guid>
		</item>
		<item>
			<title><![CDATA[Re: draw3DLine?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=685#p685</link>
			<description><![CDATA[<div class="codebox"><pre><code>Strict

Framework brl.blitz

Import irrlicht.core

&#039;Global device:IrrlichtDevice =IrrlichtDevice.Create(EDT_SOFTWARE,_DIMENSION2DI(512,384),32,False,True,False,Null)
Global device:IrrlichtDevice =IrrlichtDevice.Create(EDT_SOFTWARE2,_DIMENSION2DI(512,384),32,False,True,False,Null)
&#039;Global device:IrrlichtDevice =IrrlichtDevice.Create(EDT_OPENGL,_DIMENSION2DI(512,384),32,False,True,False,Null)
&#039;Global device:IrrlichtDevice =IrrlichtDevice.Create(EDT_DIRECT3D8,_DIMENSION2DI(512,384),32,False,True,False,Null)
&#039;Global device:IrrlichtDevice =IrrlichtDevice.Create(EDT_DIRECT3D9,_DIMENSION2DI(512,384),32,False,True,False,Null)

Global Driver:IVideoDriver = device.getVideoDriver ()
Global smgr:ISceneManager = device.getSceneManager()
Global guienv:IGUIEnvironment = device.getGUIEnvironment()

Global Cam:ICameraSceneNode = smgr.addCameraSceneNode (Null,_VECTOR3DF(0,1,0),_VECTOR3DF(0,0,0))

While (device.Run())

Driver.BeginScene(True,True, _SCOLOR(255,255,255,255))

smgr.drawAll()

Local material:SMaterial=SMaterial.Create()
Driver.SetTransform(ETS_WORLD,Matrix4.Create())
Driver.draw2DLine (_POSITION2DI(256,192),_POSITION2DI(256,10),_SCOLOR(255,255,0,255))
Driver.draw3DLine (_VECTOR3DF(0,0,0),_VECTOR3DF(-1,0,0),_SCOLOR(255,255,0,255))

Driver.EndScene()
    
Wend

device.drop()</code></pre></div><p>Do you get the same results with all of these.</p>]]></description>
			<author><![CDATA[null@example.com (H&K)]]></author>
			<pubDate>Fri, 30 Mar 2007 03:20:40 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=685#p685</guid>
		</item>
		<item>
			<title><![CDATA[Re: draw3DLine?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=683#p683</link>
			<description><![CDATA[<p>greetings <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; draw3Dline (and the other draw commands) are tricky.&nbsp; they must be called after drawAll() and before endscene.&nbsp; in addition, they use the last set material and matrix so you need to set those to something default as well.&nbsp; for an example you can examine the latest iB3D.&nbsp; here is some sample code:<br /></p><div class="codebox"><pre><code>Local material:SMaterial=SMaterial.create()
driver.SetTransform(ETS_WORLD,Matrix4.create())
driver.draw3dLine(_VECTOR3DF(0,0,1),_VECTOR3DF(0,0,100),_SCOLOR(0,255,255,0))</code></pre></div><p>try out the above and see what she does.&nbsp; i dont remember an issue with the color.</p>]]></description>
			<author><![CDATA[null@example.com (gman)]]></author>
			<pubDate>Thu, 29 Mar 2007 21:01:40 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=683#p683</guid>
		</item>
		<item>
			<title><![CDATA[draw3DLine?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=681#p681</link>
			<description><![CDATA[<p>Two questions, first when do I need to call draw3DLine, does it need to be after Driver.BeginScene and before smgr.drawAll?</p><p>Also, it doesnt work. (Well _SColor doesnt make a difference to the color, as they are always black) so what am I doing wrong</p>]]></description>
			<author><![CDATA[null@example.com (H&K)]]></author>
			<pubDate>Thu, 29 Mar 2007 20:44:32 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=681#p681</guid>
		</item>
	</channel>
</rss>
