<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — Hi and question]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=48&amp;type=atom" />
	<updated>2006-02-20T18:17:39Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=48</id>
		<entry>
			<title type="html"><![CDATA[Re: Hi and question]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=184#p184" />
			<content type="html"><![CDATA[<p>it might be as u need<br />( - Test.node.setMaterialFlag(EMF_LIGHTING,False) - )</p><br /><p>Test.mesh=smgr.getMesh(&quot;../media/sydney.md2&quot;)<br />Test.node=smgr.addAnimatedMeshSceneNode(Test.mesh)<br />Test.node.setMaterialFlag(EMF_LIGHTING,False)</p><p>as u need to make shore the mesh has its own lighting switched on if u dont have any dynamic or atmospheric lights on so it needs to be done at setup or maybe ur mesh is just realy small</p>]]></content>
			<author>
				<name><![CDATA[DaY]]></name>
				<uri>https://gprogs.com/profile.php?id=9</uri>
			</author>
			<updated>2006-02-20T18:17:39Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=184#p184</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hi and question]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=179#p179" />
			<content type="html"><![CDATA[<p>I continue my questions in this thread (think there will be a few as Im new to this)</p><p>Im trying to simpify this problem to the first sample of Irrlicht.</p><p>When I compile the first example it works great but if I build my own type with the mesh and the meshnode I get.. nothing. The mesh loads and the texture loads but it doesnt show anything. Example given (without the samplecomments) I only added a type and used an object of that type to show the mesh.<br />Am I totally way out??? Dont laugh <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><div class="codebox"><pre><code>Strict

Framework BRL.Blitz

Import gg.IrrBMAX

&#039; The new type containing just an AnimatedMesh and The AMSN.

Type Unit
    
    Field mesh:T_irrIAnimatedMesh
    Field node:T_irrIAnimatedMeshSceneNode    

End Type

&#039; And heres that object.
Local Test:Unit 



Local device:T_irrIrrlichtDevice=T_irrIrrlichtDevice.create(EDT_SOFTWARE,T_irrDimension2d_s32.create(640,480),16,False,False,False,Null)

device.setWindowCaption(&quot;Hello World! - Irrlicht Engine Demo&quot;)

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

guienv.addStaticText(&quot;Hello World! This is the Irrlicht Software renderer!&quot;,T_irrRect_s32.createFromVals(10,10,200,22),True)


Test.mesh=smgr.getMesh(&quot;../media/sydney.md2&quot;)
Test.node=smgr.addAnimatedMeshSceneNode(Test.mesh)

If Test.node.handle&lt;&gt;0
    Test.node.setMaterialFlag(EMF_LIGHTING,False)
    Test.node.setFrameLoop(0,310)
    Test.node.setMaterialTexture(0,driver.getTexture(&quot;../media/sydney.bmp&quot;))
EndIf


Local camera:T_irrICameraSceneNode=smgr.addCameraSceneNode(Null,T_irrVector3df.createFromVals(0,30,-40),T_irrVector3df.createFromVals(0,5,0))


While (device.run())

    inScene(True,True,T_irrSColor.createFromVals(255,100,101,140))
    
    smgr.drawAll()
    guienv.drawAll()
    
    driver.endScene()

Wend

device.drop()</code></pre></div>]]></content>
			<author>
				<name><![CDATA[AJirenius]]></name>
				<uri>https://gprogs.com/profile.php?id=25</uri>
			</author>
			<updated>2006-02-20T16:10:40Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=179#p179</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hi and question]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=178#p178" />
			<content type="html"><![CDATA[<p>Great! Thank you very much.. as I proceed with this project I will put up some links and advert both your effort and Irrlicht. I will soon also put up some &quot;help needed&quot; with this project as I really would like to focus&nbsp; on the graphics more than the programming this time but still it is very smooth to work with.</p>]]></content>
			<author>
				<name><![CDATA[AJirenius]]></name>
				<uri>https://gprogs.com/profile.php?id=25</uri>
			</author>
			<updated>2006-02-20T14:43:03Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=178#p178</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hi and question]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=172#p172" />
			<content type="html"><![CDATA[<p>greetings AJirenius <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; thx for the complement!&nbsp; you should definately use the Irrlicht input routines.&nbsp; BlitzMax is not the one creating the forms so the events are not being captured properly by the built-in BlitzMax input system.&nbsp; now, there is a class in the gg.IrrAddons that helps simulate the BlitzMax input system and makes input reading much smoother.&nbsp; for example, with straight Irrlicht, you cannot read if two keys are held down at the same time.</p><p>the class inside of gg.IrrAddons you would be looking for is:</p><p>T_irrSmoothEventReceiver</p><p>unfortunately i dont have a good example of how to use it.&nbsp; if you cant figure it out, just lmk and ill try to whip up an example for you.</p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2006-02-20T13:00:30Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=172#p172</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Hi and question]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=171#p171" />
			<content type="html"><![CDATA[<p>Im a Swedish guy trying out my first project in the 3Dworld ever and have chosen this great (and god damn its great Gman!) engine. Thanks for delivering it to BMax.</p><p>Now a newbie question.. as it seems like Irrlicht does provide its own methods to listen and controlling keyboard inputs, which should I use when programming in BMAX? The irrlicht or BMAX methods? Does it really matter (speed, intereference etc.)</p>]]></content>
			<author>
				<name><![CDATA[AJirenius]]></name>
				<uri>https://gprogs.com/profile.php?id=25</uri>
			</author>
			<updated>2006-02-20T10:03:08Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=171#p171</id>
		</entry>
</feed>
