new fonction addeted

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
vdbirrlicht

new fonction addeted

Post by vdbirrlicht »

"AddWallScenenode" is addeted in my irrlicht vb.net
goto in my site
http://www.geocities.com/vdbirrlicht/index.html
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

What does it do?
Crud, how do I do this again?
eXodus
Posts: 320
Joined: Tue Jan 04, 2005 10:07 am
Location: Canada
Contact:

Post by eXodus »

Since there's no source code with it, I just won't replace my already modified engine with it. It would be best if you just posted how you did it.
vdbirrlicht

codes source ready to download

Post by vdbirrlicht »

go on my site for the downloading
there is a exemple in vb.net modified from helloworld
vdbirrlicht

codes

Post by vdbirrlicht »

Dim device As New IrrlichtDevice(Irrlicht.Video.DriverType.OPENGL, 100, 100, 400, 400, 16, False)

device.ResizeAble = True
device.WindowCaption = "Irrlicht.NET VisualBasic example 01 - Hello World"

' load some textures

Dim texSydney As ITexture = device.VideoDriver.GetTexture("C:\zip\vb\irrlicht-0.7\irrlicht-0.7\media\sydney.bmp")
Dim texWall As ITexture = device.VideoDriver.GetTexture("C:\zip\vb\irrlicht-0.7\irrlicht-0.7\media\wall.bmp")
Dim texLogo As ITexture = device.VideoDriver.GetTexture("C:\zip\vb\irrlicht-0.7\irrlicht-0.7\media\irrlichtlogoaligned.jpg")

' load the animated mesh of sydney

Dim mesh As Irrlicht.Scene.IAnimatedMesh = device.SceneManager.GetMesh("C:\zip\vb\irrlicht-0.7\irrlicht-0.7\media\sydney.md2")



' add a camera, a test scene node and the animated mesh to the scene

Dim cam As ICameraSceneNode = device.SceneManager.AddCameraSceneNodeFPS(Nothing, 100, 100, -1)
cam.Position = New Vector3D(20, 0, -50)


Dim textfloor As ITexture = device.VideoDriver.GetTexture("C:\zip\vb\irrlicht-0.7\irrlicht-0.7\media\water.jpg")
Dim FlorMesh As Irrlicht.Scene.IAnimatedMesh = device.SceneManager.GetMesh("")

Dim Floor As ISceneNode = device.SceneManager.AddFloorSurfaceSceneNode(FlorMesh.GetMesh(0), 10, 10, 10, Nothing, -1)
Floor.SetMaterialTexture(0, textfloor)

Dim node As ISceneNode = device.SceneManager.AddWallSceneNode

(15, Nothing, -1, New Vector3D(30, -15, 0))
node.SetMaterialTexture(0, texWall)

node = device.SceneManager.AddAnimatedMeshSceneNode(mesh, Nothing, -1)
node.SetMaterialTexture(0, texSydney)
node.SetMaterialFlag(MaterialFlag.LIGHTING, False)

the pocedure AddFloorSurfaceSceneNode is dont ready
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

So, createWall creates a 3d square?

Why couldn't you use that same function, but rotate it 90 degrees on an access to make a floor?
Crud, how do I do this again?
vdbirrlicht

rotation

Post by vdbirrlicht »

the function of rotation is included in the procedure like the "AddTestSceneNode"
the procedure is
"AddWallSceneNode(float size, ISceneNode* parent, int id,
Core::Vector3D position, Core::Vector3D rotation, Core::Vector3D scale)"

another procedure for the floor is in preparation directly in the declaration
"IrrlichtDevice"
Post Reply