<?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 — gg.IrrAddons - updated 2006/7/10]]></title>
		<link>https://gprogs.com/viewtopic.php?id=15</link>
		<atom:link href="https://gprogs.com/extern.php?action=feed&amp;tid=15&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in gg.IrrAddons - updated 2006/7/10.]]></description>
		<lastBuildDate>Thu, 26 Jan 2006 13:22:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: gg.IrrAddons - updated 2006/7/10]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=106#p106</link>
			<description><![CDATA[<p>i wrapped up the wind generator and grass patch node last night as well as ported most of the grass node sample.&nbsp; the node and wind generator are functioning properly i just need to finish up the sample and release the addons.&nbsp; should be tonight sometime.</p>]]></description>
			<author><![CDATA[null@example.com (gman)]]></author>
			<pubDate>Thu, 26 Jan 2006 13:22:46 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=106#p106</guid>
		</item>
		<item>
			<title><![CDATA[Re: gg.IrrAddons - updated 2006/7/10]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=105#p105</link>
			<description><![CDATA[<p>i have added the new T_irr3PCameraAnimator type.&nbsp; here is an example using a modified version of the movement Irrlicht sample (this also shows the smooth event receiver):<br /></p><div class="codebox"><pre><code>&#039; make sure you build this example with the &quot;Build GUI App&quot; option turned off

Strict
Framework BRL.Blitz
Import BRL.StandardIO

Import gg.IrrBMAX
Import gg.IrrAddons

Local node:T_irrISceneNode

Rem
create a smooth event receiver so we can use commands similar to BMAX
Press &#039;W&#039;, the node moves up, And If you press &#039;S&#039; it moves down.
EndRem
Local receiver:T_irrSmoothEventReceiver=T_irrSmoothEventReceiver.createReceiver()

Local device:T_irrIrrlichtDevice=T_irrIrrlichtDevice.create( ..
    EDT_OPENGL, ..
    T_irrDimension2d_s32.create(640,480), ..
    16,False,False,False,T_irrIEventReceiver(receiver))

If device.handle=0 Then Return &#039; could Not create selected driver.

Local driver:T_irrIVideoDriver=device.getVideoDriver()
Local smgr:T_irrISceneManager=device.getSceneManager()

node = smgr.addTestSceneNode()
node.setPosition(T_irrVector3df.createFromVals(0,0,30))
node.setMaterialTexture(0,driver.getTexture(&quot;../media/wall.bmp&quot;))

Local n:T_irrISceneNode = smgr.addTestSceneNode()
n.setMaterialTexture(0,driver.getTexture(&quot;../media/t351sml.jpg&quot;))

Local anim:T_irrISceneNodeAnimator = smgr.createFlyCircleAnimator( ..
    T_irrVector3df.createFromVals(0,0,30), 20.0)
n.addAnimator(anim)

Local anms:T_irrIAnimatedMeshSceneNode = smgr.addAnimatedMeshSceneNode( ..
    smgr.getMesh(&quot;../media/sydney.md2&quot;))

If (n.isValid())

    anim = smgr.createFlyStraightAnimator(T_irrVector3df.createFromVals(100,0,60), ..
        T_irrVector3df.createFromVals(-100,0,60), 10000, True)
    anms.addAnimator(anim)
    
    anms.setMaterialFlag(EMF_LIGHTING, False)
    anms.setFrameLoop(320, 360)
    anms.setAnimationSpeed(30)
    anms.setRotation(T_irrVector3df.createFromVals(0,180.0,0))
    anms.setMaterialTexture(0,driver.getTexture(&quot;../media/sydney.bmp&quot;))
EndIf

device.getCursorControl().setVisible(False)

&#039; create a camera to use as the 3P cam
Local camera:T_irrICameraSceneNode=smgr.addCameraSceneNode()

&#039; attach the 3P animator to the camera
&#039; params are camera to attach to, device, and the node that is the target
attach3PCameraAnimator(camera,device,node)
&#039;attach3PCameraAnimator(camera,device,anms)
&#039;attach3PCameraAnimator(camera,device,n)

Local lastFPS:Int=-1
Local fps:Int=0
Local str:String=&quot;&quot;

While(device.run())

    &#039; check if W is being pressed
    If receiver.IsKeyDown(EKEY_KEY_W)
        Local v:T_irrVector3df=node.getPosition()
        v.setY(v.getY()+2.0)
        node.setPosition(v)
    EndIf
    
    &#039; check if S is being pressed
    If receiver.IsKeyDown(EKEY_KEY_S)
        Local v:T_irrVector3df=node.getPosition()
        v.setY(v.getY()-2.0)
        node.setPosition(v)
    EndIf

    driver.beginScene(True, True, T_irrSColor.createFromVals(255,113,113,133))
    smgr.drawAll()
    driver.endScene()

    fps = driver.getFPS()

    If (lastFPS &lt;&gt; fps) Then
        str$ = &quot;Movement Example - Irrlicht Engine [&quot;
        str$ :+ driver.getName()
        str$ :+ &quot;] FPS:&quot;
        str$ :+ fps

        device.setWindowCaption(str$)
        lastFPS = fps
    EndIf
Wend

Rem
In the End, Delete the Irrlicht device.
EndRem
device.drop()</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (gman)]]></author>
			<pubDate>Wed, 25 Jan 2006 14:06:16 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=105#p105</guid>
		</item>
		<item>
			<title><![CDATA[gg.IrrAddons - updated 2006/7/10]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=31#p31</link>
			<description><![CDATA[]]></description>
			<author><![CDATA[null@example.com (gman)]]></author>
			<pubDate>Sat, 07 Jan 2006 06:37:14 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=31#p31</guid>
		</item>
	</channel>
</rss>
