Blender + Irrlicht = Going CRAZY 2

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
koto
Posts: 7
Joined: Sun Aug 24, 2008 3:06 pm

Blender + Irrlicht = Going CRAZY 2

Post by koto »

Hi.

I do following steps:

1. Start Blender, it creates a default cube.
2. Export the scene to 3ds or x format.
3. Run IrrEdit, import the newly created 3ds or x file.
4. Go to 'Materials' tab and double click one of the textures shipped with the IrrEdit, e.g. default_texture.png

The texture is not applied!. Insted of that, the mesh has brown solid color.
When I add a cube from the toolbox I can set any texture I want.

Is there anything wrong with my approach?

I've testet it on IrrEdit 1.4.1 and 1.4.2

regards
koto
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You need texture coords for proper texturing. Probably your default cube doesn't have them.
Dark_Kilauea
Posts: 368
Joined: Tue Aug 21, 2007 1:43 am
Location: The Middle of Nowhere

Post by Dark_Kilauea »

You need to make sure the cube is properly UV mapped. That or use the linear mapping modifier option in irredit.
rogerborg wrote:Every time someone learns to use a debugger, an angel gets their wings.
koto
Posts: 7
Joined: Sun Aug 24, 2008 3:06 pm

Post by koto »

Hi guys, thanks for responses.

You need to make sure the cube is properly UV mapped. That or use the linear mapping modifier option in irredit.
I'd like to try 'linear mapping modifier' but I can't find it in irredit :(

The second sceniario is I apply a texture to a cube in blender it renders there correctly, but in the irredit texture is not visible. The file with texture is loaded by irredit (I know it from the Message Log window).


regards
Koto
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Just applying a texture in blender is not enough. You need to export proper UV coords along with the mesh, which requires you to bake those coords to the mesh - within blender.
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

here

Post by 3DModelerMan »

Go into edit mode select all of your cube's vertices then hit "shift-E"
(I think that's the hot key) to bring up the edge specials menu, choose
"mark seem" then hit "U" choose unwrap, and it will have UV's.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
koto
Posts: 7
Joined: Sun Aug 24, 2008 3:06 pm

Re: here

Post by koto »

3DModelerMan wrote:Go into edit mode select all of your cube's vertices then hit "shift-E"
(I think that's the hot key) to bring up the edge specials menu, choose
"mark seem" then hit "U" choose unwrap, and it will have UV's.
Finally I made it!, the hot key is actually Ctrl+E.

Thanks all of you, especially 3DModelerMan.

regards
Koto
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

yup

Post by 3DModelerMan »

No problem :wink: .
You see why I'm called 3DModelerMan, and not 3DProgrammerMan.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Post Reply