Blender Materials? [solved]

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
JerryM
Posts: 5
Joined: Thu Jun 19, 2008 9:51 pm

Blender Materials? [solved]

Post by JerryM »

Hello,

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);
The following is the output from the Irrlicht console:
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
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! :oops:

Solved: The problem was how I was texturing in Blender.
CaPGeti
Posts: 9
Joined: Tue Jul 01, 2008 8:41 am

Post by CaPGeti »

How did you hit on that?
What was your mistake when you set up the material with blender??
Post Reply