<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — ib3d with maxgui ?]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=218&amp;type=atom" />
	<updated>2007-11-21T01:59:42Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=218</id>
		<entry>
			<title type="html"><![CDATA[Re: ib3d with maxgui ?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1142#p1142" />
			<content type="html"><![CDATA[<p>greetings <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; i assume you have MaxGUI installed and updated?&nbsp; which version of BlitzMax are you using?</p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2007-11-21T01:59:42Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1142#p1142</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ib3d with maxgui ?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1139#p1139" />
			<content type="html"><![CDATA[<p>I tried this and got : &quot;Attempt to access field or method of null object&quot; on the create window line:</p>]]></content>
			<author>
				<name><![CDATA[danman]]></name>
				<uri>https://gprogs.com/profile.php?id=219</uri>
			</author>
			<updated>2007-11-18T23:23:22Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1139#p1139</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ib3d with maxgui ?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=897#p897" />
			<content type="html"><![CDATA[<p>Excellent work gman, works great, just one thing though, do shadows work with ib3d?</p><p>I added the below to my scene:</p><p>&#039;create light<br />Local LIGHT:LIGHT=ib3d_CreateLight()<br />ib3d_LightColor(LIGHT,255,255,255)<br />ib3d_LightRange(LIGHT,1000)<br />ib3d_LightCastShadows(LIGHT,True)<br />ib3d_PositionEntity(LIGHT,-3,4,-3 )</p><p>and also added</p><p>ib3d_EntityFX(all_models,EMF_LIGHTING,True)</p>]]></content>
			<author>
				<name><![CDATA[Doug Cohen]]></name>
				<uri>https://gprogs.com/profile.php?id=173</uri>
			</author>
			<updated>2007-05-11T17:46:40Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=897#p897</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ib3d with maxgui ?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=896#p896" />
			<content type="html"><![CDATA[<p>Thank you very much gman, this is very much Appreciated <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><br /><br /><p>Thankx<br />Doug</p>]]></content>
			<author>
				<name><![CDATA[Doug Cohen]]></name>
				<uri>https://gprogs.com/profile.php?id=173</uri>
			</author>
			<updated>2007-05-11T12:16:34Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=896#p896</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ib3d with maxgui ?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=895#p895" />
			<content type="html"><![CDATA[<p>greetings doug <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; my apologies on the delay.&nbsp; the mods have been updated (see the announcements forum).&nbsp; here is a quick sample to run from the examples Win32Window folder:<br /></p><div class="codebox"><pre><code>&#039; this is an example showing how to display Irrlicht in a panel on a MaxGUI form.  i have modified it a bit
&#039; by adding an eventreceiver to the Irrlicht instance to show how MaxGUI and Irrlicht events can coexist.
&#039; it is important to note that there still is probably some issues to work out, but for now this works.
&#039;
&#039; NOTE: press the &#039;w&#039; key to toggle wireframe

SuperStrict 
Framework Irrlicht.B3D

Import BRL.Basic
Import BRL.Win32MaxGUI
Import BRL.EventQueue

Local window:TGadget
Local panel:TGadget

Local windowWidth:Int = 440
Local windowHeight:Int = 380

window=CreateWindow(&quot;Irrlicht Win32 BlitzMax window example&quot;,100,100, ..
    windowWidth,windowHeight,Null,WINDOW_TITLEBAR | WINDOW_CLIENTCOORDS | WINDOW_HIDDEN)

&#039; create window To put irrlicht in
Local hIrrlichtWindow:TGadget=CreatePanel(50,80,320,220,window,PANEL_ACTIVE|PANEL_BORDER)

&#039; create ok button
Local Ok:TGadget=CreateButton(&quot;OK - Close&quot;,windowWidth - 160,windowHeight - 40,150,30,window)

&#039; this is not in the original, but is here to show you can have a textbox and enter into it
&#039; without the events posting to Irrlicht
Local tb:TGadget=CreateTextField(windowWidth - 160,windowHeight - 70,150,20,window)

&#039; create some text
CreateLabel(&quot;This is Irrlicht running inside a Win32 MaxGUI window.&quot;,20,20,400,40,window)
    
Local param:SIrrlichtCreationParameters=SIrrlichtCreationParameters.create()
param.setWindowId(QueryGadget(hIrrlichtWindow,QUERY_HWND))
param.setDriverType(EDT_OPENGL)

&#039; create the device from the params object and initialize iB3D
ib3d_Graphics3DParams(param)

&#039; setup a simple 3d scene

Local cam:CAMERA = ib3d_CreateCamera()
ib3d_MoveEntity(cam,0,20,-20)

Local cube:PRIMITIVE = ib3d_CreateCube()

ib3d_EntityTexture(cube,ib3d_LoadTexture:TEXTURE(&quot;../../media/wall.bmp&quot;),0,0)
ib3d_EntityTexture(cube,ib3d_LoadTexture:TEXTURE(&quot;../../media/water.jpg&quot;),0,1)
ib3d_EntityFX(cube,EMF_LIGHTING,False)
ib3d_EntityBlend(cube,EMT_REFLECTION_2_LAYER)

ib3d_PointEntity(cam,cube)

&#039; show And execute dialog
ShowGadget(window)

&#039; do message queue

Local bWireFrame:Int = False

While (True)

    ib3d_UpdateWorld()
    ib3d_RenderWorld()

    If PeekEvent() Then 
        PollEvent()
        Select EventID()
            Case EVENT_WINDOWCLOSE
                Exit
            Case EVENT_GADGETACTION
                If EventSource()=Ok
                    PostEvent(CreateEvent(EVENT_WINDOWCLOSE,Ok))
                EndIf
            Default
                ActivateGadget(hIrrlichtWindow)
                If EventID()=EVENT_KEYDOWN And EventData()=KEY_W
                    bWireFrame = Not bWireFrame
                    ib3d_EntityFX(cube,EMF_WIREFRAME,bWireFrame)                    
                EndIf
        End Select
    End If        
    
Wend

ib3d_EndGraphics()</code></pre></div>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2007-05-11T11:40:05Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=895#p895</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ib3d with maxgui ?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=893#p893" />
			<content type="html"><![CDATA[<p>Hi gman, may i ask how the update is coming along? <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><br /><br /><p>Thankx<br />Doug</p>]]></content>
			<author>
				<name><![CDATA[Doug Cohen]]></name>
				<uri>https://gprogs.com/profile.php?id=173</uri>
			</author>
			<updated>2007-05-11T09:48:38Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=893#p893</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ib3d with maxgui ?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=892#p892" />
			<content type="html"><![CDATA[<p>I have a project iv&#039;e been working on for some time that uses maxgui, so i&#039;m hoping i can save some time <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Doug Cohen]]></name>
				<uri>https://gprogs.com/profile.php?id=173</uri>
			</author>
			<updated>2007-05-10T15:38:01Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=892#p892</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ib3d with maxgui ?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=890#p890" />
			<content type="html"><![CDATA[<p>Hummmmm, I have MaxGui, and it not all that, I would try and use the Irrlicht GUI commands instead.</p><p>Unless....... GMan is going to make a IrrMaxGUI <img src="https://gprogs.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[H&K]]></name>
				<uri>https://gprogs.com/profile.php?id=36</uri>
			</author>
			<updated>2007-05-10T01:43:53Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=890#p890</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ib3d with maxgui ?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=883#p883" />
			<content type="html"><![CDATA[<p>Excellent, thank you very much gman <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Doug Cohen]]></name>
				<uri>https://gprogs.com/profile.php?id=173</uri>
			</author>
			<updated>2007-05-08T08:06:27Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=883#p883</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ib3d with maxgui ?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=881#p881" />
			<content type="html"><![CDATA[<p>i can confirm that MaxGUI works with iB3D but as i expected it does require an update to iB3D.&nbsp; i will see if i can get out an updated version tomorrow.</p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2007-05-07T23:58:58Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=881#p881</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ib3d with maxgui ?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=880#p880" />
			<content type="html"><![CDATA[<p>greetings Doug <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; it should be possible to get iB3D running with MaxGUI but not in the format it is now.&nbsp; i currently dont use the creation params required to set it up.&nbsp; it shouldnt be difficult though.&nbsp; ill see if i can whip something up this evening.</p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2007-05-07T12:17:08Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=880#p880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ib3d with maxgui ?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=879#p879" />
			<content type="html"><![CDATA[<p>Hi All <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Is it possible to use ib3d with maxgui?<br />If so How would i setup a camera to work in a canvas?</p><p>Thankx<br />Doug</p>]]></content>
			<author>
				<name><![CDATA[Doug Cohen]]></name>
				<uri>https://gprogs.com/profile.php?id=173</uri>
			</author>
			<updated>2007-05-05T15:42:04Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=879#p879</id>
		</entry>
</feed>
