<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — iB3d Examples?]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=223&amp;type=atom" />
	<updated>2007-05-16T22:52:39Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=223</id>
		<entry>
			<title type="html"><![CDATA[Re: iB3d Examples?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=922#p922" />
			<content type="html"><![CDATA[<p>Now it is great!</p>]]></content>
			<author>
				<name><![CDATA[ksalomao]]></name>
				<uri>https://gprogs.com/profile.php?id=135</uri>
			</author>
			<updated>2007-05-16T22:52:39Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=922#p922</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: iB3d Examples?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=918#p918" />
			<content type="html"><![CDATA[<p>thx for the heads up ksalomao <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; found the bug and put out a new release.</p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2007-05-16T10:24:13Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=918#p918</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: iB3d Examples?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=916#p916" />
			<content type="html"><![CDATA[<p>Hi gman,<br />the drawtext function is not displaying any text here. I tested with different fonts ( fonts made in Irrfonttool and including &quot;fonthaettenschweiler.bmp&quot;) but nothing. Tested with drirectx and OGL. I get no error, and the font texture is loaded. I will try more.</p>]]></content>
			<author>
				<name><![CDATA[ksalomao]]></name>
				<uri>https://gprogs.com/profile.php?id=135</uri>
			</author>
			<updated>2007-05-15T04:55:29Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=916#p916</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: iB3d Examples?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=915#p915" />
			<content type="html"><![CDATA[<p>here is the sample i am currently using to test picking.&nbsp; as for a reference, the functions are named the same as the corrosponding B3D functions so check the online reference for B3D if you can.&nbsp; also, i have most of the functions documented so they should show up under the BMAX module documentation.<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)
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)
    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_UpdateWorld()
    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_RenderWorldBegin()
    ib3d_RenderEntities()
    ib3d_RenderDrawCmds()
    
    ib3d_RenderGUI()        
    ib3d_RenderWorldEnd()
    
    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-05-15T01:54:48Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=915#p915</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: iB3d Examples?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=913#p913" />
			<content type="html"><![CDATA[<p>greetings <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; i would say iB3D is 65% - 75% similar functions for the 3D functions.&nbsp; unfortunately i do not have any good examples at this time.</p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2007-05-14T13:45:38Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=913#p913</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[iB3d Examples?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=901#p901" />
			<content type="html"><![CDATA[<p>Hi, gman! You are have any examples for iB3d? Simple, created with ib3d without examles is hard <img src="https://gprogs.com/img/smilies/sad.png" width="15" height="15" alt="sad" /> And, how complete ib3d? This is 100% Blitz-simmilar functions or not? I&#039;m see source ib3d and think that not all blitz-functions created. I&#039;m rights?</p>]]></content>
			<author>
				<name><![CDATA[Serge Petrowski]]></name>
				<uri>https://gprogs.com/profile.php?id=10</uri>
			</author>
			<updated>2007-05-12T18:39:36Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=901#p901</id>
		</entry>
</feed>
