<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — Identifier "setProjectionMatrix" not found]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=143&amp;type=atom" />
	<updated>2007-01-23T14:30:56Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=143</id>
		<entry>
			<title type="html"><![CDATA[Re: Identifier "setProjectionMatrix" not found]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=596#p596" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2007-01-23T14:30:56Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=596#p596</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Identifier "setProjectionMatrix" not found]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=594#p594" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[real76]]></name>
				<uri>https://gprogs.com/profile.php?id=71</uri>
			</author>
			<updated>2007-01-23T13:11:54Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=594#p594</id>
		</entry>
</feed>
