I am trying to make a basic "map" mesh using Blender. Here are the exact steps that I take:
1. Add a plane to my scene.
2. Scale the plane by 10 in every direction. (S 10, enter)
3. Switch to Edit Mode.
4. Switch to Shading.
5. Add a new Material.
6. Switch to the Texture Buttons.
7. Add a new Texture with a Type of "image".
8. Load a still image ("checkers.png").
9. Set "Repeat", with XRepeat=25, YRepeat=25.
10. Render the image. Result: http://img114.imageshack.us/img114/9549 ... ulttj3.png
Now I want to use this new mesh in my Irrlicht project. Here are the exact steps that I take:
1. Export as a 3ds file and copy the 3ds file to my program directory.
2. Run my program. Result: http://img440.imageshack.us/img440/8740 ... ultip0.png
The exact code I am using is as follows:
Code: Select all
// Load a mesh.
irr::scene::IMesh* mesh = updateParameters.getSceneManager().getMesh("map.3ds");
// Create a node.
irr::scene::IMeshSceneNode* node = updateParameters.getSceneManager().addMeshSceneNode(mesh);
// Scale the mesh.
node->setScale(irr::core::vector3df(125.0f, 1.0f, 125.0f));
// Disable lighting.
node->setMaterialFlag(irr::video::EMF_LIGHTING, false);
I would really appreciate it if someone could help me out. I've tried nearly every other Blender export filetype that Irrlicht supports to no avail. I should not be having this much trouble adding a simple mesh to the scene!Irrlicht Engine version 1.4.1
Microsoft Windows Vista Personal Service Pack 1 (Build 6001)
Using renderer: Direct3D 9.0
ATI Radeon X1200 atiumdag.dll 7.14.10.510
Loaded texture: checkers.png
Loaded mesh: map.3ds
Solved: The problem was how I was texturing in Blender.