<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — IrrB3D]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=169&amp;type=atom" />
	<updated>2007-03-21T17:23:36Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=169</id>
		<entry>
			<title type="html"><![CDATA[Re: IrrB3D]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=665#p665" />
			<content type="html"><![CDATA[<p>On my graphics card (NVidia) the last example give me a fullbright textured sphere on a black screen<br />nothing for lightning. Just fullbright (like enfityFX full bright of blitz)</p>]]></content>
			<author>
				<name><![CDATA[Filax]]></name>
				<uri>https://gprogs.com/profile.php?id=51</uri>
			</author>
			<updated>2007-03-21T17:23:36Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=665#p665</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IrrB3D]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=664#p664" />
			<content type="html"><![CDATA[<p>hmm..&nbsp; what is the expected look?&nbsp; do you need to maybe add the entitydiffusecolor call back in there?&nbsp; here is the code im running.&nbsp; i didnt have your wall texture so i used the wall from Irrlicht.&nbsp; i uncommented your entitycolor commands.<br /></p><div class="codebox"><pre><code>Framework irrlicht.b3d

Global TheEngine:ib3d_engine = _g_ib3d_engine
TheEngine.Graphics3D(800,600,32,2)

ib3d_AmbientLight(0,0,0)

Global MyCamera:CAMERA = TheEngine.createCamera()
Global MyCube:PRIMITIVE = TheEngine.createsphere(20)
Global MyLight:LIGHT = TheEngine.createLight()
 
&#039;MyLight.SetColor(30,130,30)
MyLight.setDiffuseColor(30,130,30)
MyLight.Position(-10,10,10)
&#039;MyLight.Position(0,0,-50)

MyCamera.Position(0,0,2)
ib3d_CameraClsColor(0,0,0)

MyCube.Position (0,0,0)
ib3d_EntityDiffuseColor(MyCube,10,10,10)
ib3d_EntityEmissiveColor(MyCube,100,0,0)
ib3d_EntityFX(MyCube,EMF_LIGHTING,1,-1)

Local tex:TEXTURE=ib3d_LoadTexture(&quot;wall.jpg&quot;)
ib3d_EntityTexture(MyCube,tex)

MyCamera.TrackEntity(Mycube)

While (Not TheEngine.KeyDown(KEY_escape))
     TheEngine.UpdateWorld
     TheEngine.RenderWorld()
     MyCube.Turn(.01,.01,.01)
Wend

End</code></pre></div>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2007-03-21T16:48:28Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=664#p664</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IrrB3D]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=663#p663" />
			<content type="html"><![CDATA[<p>Hum ok <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> didn&#039;t work but i cant wait for the fix update <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Filax]]></name>
				<uri>https://gprogs.com/profile.php?id=51</uri>
			</author>
			<updated>2007-03-21T16:14:58Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=663#p663</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IrrB3D]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=662#p662" />
			<content type="html"><![CDATA[<p>greetings Filax <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; i believe i have found an issue with the setcolor of light.&nbsp; until i get a new version out, substitute MyLight.SetColor(30,130,30) with MyLight.setDiffuseColor(30,130,30).</p><p>thanks and looking forward to hearing more from you <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2007-03-21T15:57:57Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=662#p662</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IrrB3D]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=661#p661" />
			<content type="html"><![CDATA[<p>Hi Gman <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Can you explain me why the sphere is not colored by my light ?</p><div class="codebox"><pre><code>Import irrlicht.b3d

Global TheEngine:ib3d_engine = _g_ib3d_engine
TheEngine.Graphics3D(800,600,32,2)

ib3d_AmbientLight(0,0,0)

Global MyCamera:CAMERA = TheEngine.createCamera()
Global MyCube:PRIMITIVE = TheEngine.createsphere(20)
Global MyLight:LIGHT = TheEngine.createLight()
 
MyLight.SetColor(30,130,30)
MyLight.Position(-10,10,10)


MyCamera.Position(0,0,2)
ib3d_CameraClsColor(0,0,0)

MyCube.Position (0,0,0)
&#039;ib3d_EntityDiffuseColor(MyCube,10,10,10)
&#039;ib3d_EntityEmissiveColor(MyCube,100,0,0)
ib3d_EntityFX(MyCube,EMF_LIGHTING,1,-1)

Local tex:TEXTURE=ib3d_LoadTexture(&quot;./media/awall_color.jpg&quot;)
ib3d_EntityTexture(MyCube,tex)

MyCamera.TrackEntity(Mycube)

While (Not TheEngine.KeyDown(KEY_escape))
     TheEngine.UpdateWorld
     TheEngine.RenderWorld()
     MyCube.Turn(.01,.01,.01)
Wend

End</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Filax]]></name>
				<uri>https://gprogs.com/profile.php?id=51</uri>
			</author>
			<updated>2007-03-21T09:42:51Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=661#p661</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IrrB3D]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=659#p659" />
			<content type="html"><![CDATA[<p>Many thanks <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> !!</p><p>PS : Nice job Gman ! i like it <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Filax]]></name>
				<uri>https://gprogs.com/profile.php?id=51</uri>
			</author>
			<updated>2007-03-20T23:43:48Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=659#p659</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IrrB3D]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=658#p658" />
			<content type="html"><![CDATA[<p>I would also like to say that IrrB3d is at base OOP so<br /></p><div class="codebox"><pre><code>Import irrlicht.b3d

Global TheEngine:ib3d_engine = _g_ib3d_engine
TheEngine.Graphics3D(800,600,32)

Global MyCamera:CAMERA = TheEngine.createCamera()
Global MyCube:PRIMITIVE = TheEngine.createCube()
Global MyLight:LIGHT = TheEngine.createLight()
 
MyLight.SetColor(200,200,200)

MyCamera.Position(0,0,15)
MyCube.Position (0,0,0)

MyCamera.TrackEntity(Mycube)

While (Not TheEngine.KeyDown(KEY_SPACE))
     TheEngine.UpdateWorld
     TheEngine.RenderWorld()
     MyCube.Turn(.1,.2,.3)
Wend

End</code></pre></div><p>as an example.</p><p>(Thats not to say the B3D wrapper functions are uneeded, but .. well you know what I mean</p>]]></content>
			<author>
				<name><![CDATA[H&K]]></name>
				<uri>https://gprogs.com/profile.php?id=36</uri>
			</author>
			<updated>2007-03-20T16:42:48Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=658#p658</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IrrB3D]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=657#p657" />
			<content type="html"><![CDATA[<p>greetings Filax <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; i think the framework statement has changed since you last tried it out.&nbsp; here is the main test program ive been running of late.&nbsp; please note it uses some of the media from Irrlicht.<br /></p><div class="codebox"><pre><code>SuperStrict 
Framework Irrlicht.B3D

ib3d_Graphics3D(640,480)
Local cam:CAMERA=ib3d_CreateCamera()
ib3d_PositionEntity(cam,80,30,30)

Local syd:MESH=ib3d_LoadAnimMesh(&quot;sydney.md2&quot;)
Local tex:TEXTURE=ib3d_LoadTexture(&quot;sydney.bmp&quot;)
ib3d_EntityTexture(syd,tex)
ib3d_PositionEntity(syd,10,0,30)

Local LIGHT:LIGHT=ib3d_CreateLight()

ib3d_CameraClsColor(0,0,0)
ib3d_EntityDebugDataVisible(syd,True)
ib3d_NameEntity(syd,&quot;SYD&quot;)
ib3d_NameEntity(cam,&quot;CAM&quot;)

ib3d_EntityRadius(cam,30)
ib3d_EntityOffset(cam,0,10,0)
ib3d_EntityType(cam,1)
ib3d_EntityType(syd,2)
ib3d_EntityType(syd,1)

Local done:Int=False 
Local current:Int=0

Local zoom:Float=1.0
Local controlled:ib3d_Entity=cam
Local projmode:Int=1
Local cnt:Int=0

Local cube:PRIMITIVE=ib3d_CreateCube()
ib3d_PositionEntity(cube,10,80,30)
&#039;ib3d_EntityPickMode(cube,PM_BOX)
ib3d_NameEntity(cube,&quot;CUBE&quot;)

cube._node.setID(2)

Local sphere:PRIMITIVE=ib3d_CreateSphere()
ib3d_EntityPickMode(sphere,PM_BOX)
ib3d_PositionEntity(sphere,10,125,30)
ib3d_NameEntity(sphere,&quot;SPHERE&quot;)

Local speed:Float=.05

ib3d_PointEntity(cam,sphere)

Local fnt:FONT=ib3d_LoadImageFont(&quot;fonthaettenschweiler.bmp&quot;,18)
ib3d_SetImageFont(fnt)
ib3d_SetFontColor(255,0,0)

While Not ib3d_KeyDown(EKEY_ESCAPE)

    If ib3d_KeyDown(EKEY_KEY_Z) Then zoom:+0.005
    If ib3d_KeyDown(EKEY_KEY_X) Then zoom:-0.005
    
    If ib3d_KeyDown(EKEY_LEFT) Then ib3d_TurnEntity(controlled,0,-speed,0)
    If ib3d_KeyDown(EKEY_RIGHT) Then ib3d_TurnEntity(controlled,0,speed,0)
    If ib3d_KeyDown(EKEY_UP) Then ib3d_TurnEntity(controlled,speed,0,0)
    If ib3d_KeyDown(EKEY_DOWN) Then ib3d_TurnEntity(controlled,-speed,0,0)
    If ib3d_KeyDown(EKEY_SPACE) Then ib3d_TurnEntity(controlled,0,0,speed)
    If ib3d_KeyDown(EKEY_NUMPAD9) Then ib3d_MoveEntity(controlled,0,speed,0)
    If ib3d_KeyDown(EKEY_NUMPAD3) Then ib3d_MoveEntity(controlled,0,-speed,0)
    If ib3d_KeyDown(EKEY_NUMPAD6) Then ib3d_MoveEntity(controlled,speed,0,0)
    If ib3d_KeyDown(EKEY_NUMPAD4) Then ib3d_MoveEntity(controlled,-speed,0,0)
    If ib3d_KeyDown(EKEY_NUMPAD8) Then ib3d_MoveEntity(controlled,0,0,speed)
    If ib3d_KeyDown(EKEY_NUMPAD2) Then ib3d_MoveEntity(controlled,0,0,-speed)
    If ib3d_KeyDown(EKEY_KEY_U) Then ib3d_TurnEntity(controlled,0,0,-speed)
    If ib3d_KeyDown(EKEY_KEY_Y) Then ib3d_TurnEntity(controlled,0,0,speed)
    
    If ib3d_KeyDown(EKEY_KEY_T) Then ib3d_TrackEntity(cam)
    &#039;If ib3d_KeyHit(EKEY_KEY_V) Then ib3d_PointEntity(cam,syd)
    &#039;If ib3d_KeyDown(EKEY_KEY_V) Then ib3d_PointEntity(syd,cam)
    &#039;If ib3d_KeyDown(EKEY_KEY_V) Then ib3d_PointEntity(syd,cube)
    If ib3d_KeyDown(EKEY_KEY_V) Then ib3d_PointEntity(syd,sphere)

    If ib3d_KeyHit(EKEY_KEY_O) Then
        If projmode=1 Then projmode=2 Else projmode=1
        ib3d_CameraProjMode(cam,projmode)
    EndIf

    Local picked:ib3d_Entity=ib3d_EntityPick(syd)

    If picked Then 
        DebugLog(MilliSecs()+&quot; | &quot;+ib3d_EntityName(picked))
    EndIf

    If ib3d_KeyHit(EKEY_KEY_C) Then 
        If current=0 Then 
            current=1 
            controlled=syd
        Else 
            current=0
            controlled=cam
        EndIf
    EndIf

    ib3d_DrawText(&quot;This is my test text&quot;,10,10)
    ib3d_DrawLine3df(ib3d_LastPickRay(),255,0,0)
    ib3d_DrawTriangle3df(ib3d_PickedTriangle(),255,0,0)
                
    ib3d_UpdateWorld()
    ib3d_RenderWorld()
    
    cnt:+1    
Wend

ib3d_FreeEntity(syd)
ib3d_EndGraphics()</code></pre></div>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2007-03-20T16:38:17Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=657#p657</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IrrB3D]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=656#p656" />
			<content type="html"><![CDATA[<p>import irrlicht.b3d</p><p><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-03-20T16:37:41Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=656#p656</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[IrrB3D]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=655#p655" />
			<content type="html"><![CDATA[<p>Hi Gman <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I getting a look for IrrB3D seem very good <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> but can you post an example to use ?<br />because i can&#039;t compile my tests <img src="https://gprogs.com/img/smilies/hmm.png" width="15" height="15" alt="hmm" /> </p><p>ib3d_Graphics3D(640,480,32,2)</p><p>While Not ib3d_KeyDown(1)<br />ib3d_RenderWorldBegin()<br />ib3d_RenderWorld()<br />ib3d_RenderWorldEnd()<br />Wend</p><p>ib3d_EndGraphics()</p><br /><br /><p>The program say : identifier ib3d_Graphics3D not found</p><p>Note : I have correctly paste the mod under the good directory.<br />C:\BlitzMax1.24\mod\irrlicht.mod\b3d.mod</p><p>Cheers</p>]]></content>
			<author>
				<name><![CDATA[Filax]]></name>
				<uri>https://gprogs.com/profile.php?id=51</uri>
			</author>
			<updated>2007-03-20T15:41:04Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=655#p655</id>
		</entry>
</feed>
