Irredit - black meshs = no texture
Irredit - black meshs = no texture
I resently got around to looking at example 15 which gives details about
loading .irr files in Irrlicht.
I'm new to IrrEdit and so after loading the example.irr i made a custom .irr file to see what I could do. The scene calls for the default skybox and a terrain mesh i made out of a .3ds file.
However while making the custom .irr file in IrrEdit, I noticed that the terrain mesh wasn't rendering and the console was telling me it was unable to open the terrain.3ds file nor the texture for the mesh.
I then noticed that the file path was wrong as seen in the console, and tried fixing it in IrrEdit, but after correcting the file path the mesh turns black and will not show its texture, even though now the console says that it is finding the file.
Does anyone know what I'm doing wrong?
loading .irr files in Irrlicht.
I'm new to IrrEdit and so after loading the example.irr i made a custom .irr file to see what I could do. The scene calls for the default skybox and a terrain mesh i made out of a .3ds file.
However while making the custom .irr file in IrrEdit, I noticed that the terrain mesh wasn't rendering and the console was telling me it was unable to open the terrain.3ds file nor the texture for the mesh.
I then noticed that the file path was wrong as seen in the console, and tried fixing it in IrrEdit, but after correcting the file path the mesh turns black and will not show its texture, even though now the console says that it is finding the file.
Does anyone know what I'm doing wrong?
Last edited by IrrNoob on Fri Jan 02, 2009 11:06 pm, edited 1 time in total.
-
- Posts: 9
- Joined: Thu Dec 11, 2008 12:02 am
I used Blender 3d to build a small plane of about a hundred polys and exported it as a .x, 3ds, and md2, but none of these worked.
Something i may need to explain is that the mesh becomes black in IrrEdit, no matter the format or light positioning. It becomes black when I point IrrEdit towards the correct paths of my mesh file.
However, before doing this, my custom grass.jpg texture is showing correctly on the terrain mesh.
but i need to correct the default
problem the file paths are set to when adding the mesh in IrrEdit, so that the .irr file will read the correct
Something i may need to explain is that the mesh becomes black in IrrEdit, no matter the format or light positioning. It becomes black when I point IrrEdit towards the correct paths of my mesh file.
However, before doing this, my custom grass.jpg texture is showing correctly on the terrain mesh.
but i need to correct the default
Code: Select all
../../../lib/irrlicht-1.5/examples/Game/media/Terrain.3ds
Code: Select all
c:/lib/irrlicht-1.5/examples/Game/media/Terrain.3ds
-
- Posts: 9
- Joined: Thu Dec 11, 2008 12:02 am
Ive since learned abit about using IrrEdit, its quite simple to learn really, and figured out why my terrain model was turning black, as I had placed no lights in the scene and hadn't figured out how to use the light ray caster doohicky.
Now I'm trying to figure out how to do simple collisions with a .irr file.
I'll make another questionary topic about that in a day or two if I can't figure that out. but so far the models load with terrain shadowed nicely, and it took just a little tinkering to find how to set the radius of a light, for example.
Now I'm trying to figure out how to do simple collisions with a .irr file.
I'll make another questionary topic about that in a day or two if I can't figure that out. but so far the models load with terrain shadowed nicely, and it took just a little tinkering to find how to set the radius of a light, for example.