<?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 — Identifier "setProjectionMatrix" not found]]></title>
		<link>https://gprogs.com/viewtopic.php?id=143</link>
		<atom:link href="https://gprogs.com/extern.php?action=feed&amp;tid=143&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Identifier "setProjectionMatrix" not found.]]></description>
		<lastBuildDate>Tue, 23 Jan 2007 14:30:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Identifier "setProjectionMatrix" not found]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=596#p596</link>
			<description><![CDATA[<p>greetings <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; almost had it.&nbsp; a couple of issues.&nbsp; first, you need to create an instance of Matrix4:<br /></p><div class="codebox"><pre><code>Local orhtomatrix:Matrix4=Matrix4.create()</code></pre></div><p>when using Irrlicht methods you need to use the internal fields holding the Irrlicht type.&nbsp; each ib3d type has an internal field holding reference to the Irrlicht type.&nbsp; in the case of your code it would be:<br /></p><div class="codebox"><pre><code>cam._cam.setProjectionMatrix(orthomatrix)</code></pre></div><p>here is the cameraprojmode method.&nbsp; until the release you will need to convert this to a function and pass an instance of CAMERA.<br /></p><div class="codebox"><pre><code>    Method ProjMode(mode:Int=1)

        Select mode
            Case 0 &#039; disable the camera
                Hide()
            Case 1
                Show()
                _cam.setIsOrthogonal(False)    
                _cam.setFOV(_cam.getFOV()) &#039; reset the projection matrix
            Case 2 &#039; orthogonal
                Show()                
                &#039; code by vitek. from http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=18680
                &#039; build your matrix 
                Local orthoProjection:Matrix4=Matrix4.Create()
                orthoProjection.buildProjectionMatrixOrthoLH(50.0, 37.5, 0.0, 200.0)
        
                &#039; tell the camera To use your projection matrix 
                _cam.setProjectionMatrix(orthoProjection)
        
                &#039; set flag in camera saying that this is an ortho projection 
                _cam.setIsOrthogonal(True)    
        EndSelect
    EndMethod</code></pre></div><p>also please note that camerazoom is hosed.&nbsp; i have confirmed the above method code is working, just need to get that zoom fixed.</p><p>also will probably need to make the parameters to buildProjectionMatrixOrthoLH controllable.</p>]]></description>
			<author><![CDATA[null@example.com (gman)]]></author>
			<pubDate>Tue, 23 Jan 2007 14:30:56 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=596#p596</guid>
		</item>
		<item>
			<title><![CDATA[Identifier "setProjectionMatrix" not found]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=594#p594</link>
			<description><![CDATA[<p>...while trying to compile this code:<br /></p><div class="codebox"><pre><code>&#039; CameraProjMode cam,2
Local orthomatrix:Matrix4
orthomatrix.buildProjectionMatrixOrthoLH(50, 37.5, -10, 1024);
cam.setProjectionMatrix(orthomatrix)
ib3d_CameraZoom (cam,.012)</code></pre></div><p>Greetings <br />René</p>]]></description>
			<author><![CDATA[null@example.com (real76)]]></author>
			<pubDate>Tue, 23 Jan 2007 13:11:54 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=594#p594</guid>
		</item>
	</channel>
</rss>
