<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — ShadowVolume...]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=22&amp;type=atom" />
	<updated>2006-01-12T22:38:53Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=22</id>
		<entry>
			<title type="html"><![CDATA[Re: ShadowVolume...]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=65#p65" />
			<content type="html"><![CDATA[]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2006-01-12T22:38:53Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=65#p65</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ShadowVolume...]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=64#p64" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Strict

Framework BRL.Blitz
Import gg.IrrBMAX

Local Render = EDT_direct3d9

Local device:T_irrIrrlichtDevice=T_irrIrrlichtDevice.create(Render,T_irrDimension2d_s32.create(1024,768),32,False,True)

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

driver.setfog(T_irrSColor.createFromVals(0,244,185,70), True, 25, 700,0.0, True)

Local light:T_irrILightSceneNode=smgr.addLightSceneNode(Null, T_irrVector3df.createFromVals(0,-100,0),T_irrSColorf.createFromRGBA(244,185,70, 0.0), 1.0) 
Local light2:T_irrILightSceneNode=smgr.addLightSceneNode(Null, T_irrVector3df.createFromVals(0,100,0),T_irrSColorf.createFromRGBA(55, 78, 200, 0.0), 10.0) 

Local anim:T_irrISceneNodeAnimator = smgr.createFlyCircleAnimator(T_irrVector3df.createFromVals(15,15,100),200.0)
light.addAnimator(anim)

Local CubeMesh:T_irrIAnimatedMesh=smgr.getMesh(&quot;media\scene.3ds&quot;)
Local scene:T_irrISceneNode

Local colorMap:T_irrITexture = driver.getTexture(&quot;media/Wall.jpg&quot;)
Local normalMap:T_irrITexture = driver.getTexture(&quot;media/Wall_Bump.jpg&quot;)
&#039;Local detailmap:T_irrITexture = driver.getTexture(&quot;media/detail.jpg&quot;)

driver.makeNormalMapTexture(normalMap, 2.0)

Local tangentMesh:T_irrIMesh = smgr.getMeshManipulator().createMeshWithTangents(CubeMesh.getmesh(0))

scene = smgr.addMeshSceneNode(tangentMesh)

scene.setMaterialTexture(0,colorMap)
scene.setMaterialTexture(1,normalMap)

scene.setMaterialFlag(EMF_FOG_ENABLE, True)
scene.setMaterialFlag(EMF_LIGHTING, True)
scene.setMaterialType(EMT_PARALLAX_MAP_SOLID)

scene.SetPosition(T_irrVector3df.createFromVals(0,0,0))

&#039;scene.addShadowVolumeSceneNode()

smgr.setShadowColor(T_irrSColor.createFromVals(150,0,0,0))

smgr.addCameraSceneNodeFPS()

While (device.run())
    If (device.isWindowActive())
        
        driver.beginScene(True,True,T_irrSColor.createFromVals(0,244,185,70))
        smgr.drawAll()
    
        driver.endScene()
        
        device.setWindowCaption(driver.getFPS())

    EndIf
Wend
device.drop()</code></pre></div>]]></content>
			<author>
				<name><![CDATA[i-pnose]]></name>
				<uri>https://gprogs.com/profile.php?id=14</uri>
			</author>
			<updated>2006-01-12T16:11:46Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=64#p64</id>
		</entry>
</feed>
