3ds file Textures
-
- Posts: 602
- Joined: Sat Aug 23, 2003 2:03 am
- Location: Pottstown, PA
- Contact:
3ds file Textures
I have made a simple model using anim8or and then exported it to 3ds and when i load it in the engine, the model is all black. The only textures i'm using are the materials in anim8or. I currently do not have a texture file.
The Robomaniac
The Robomaniac
-
- Posts: 386
- Joined: Thu Sep 25, 2003 12:43 pm
- Contact:
-
- Posts: 602
- Joined: Sat Aug 23, 2003 2:03 am
- Location: Pottstown, PA
- Contact:
-
- Posts: 386
- Joined: Thu Sep 25, 2003 12:43 pm
- Contact:
Thats odd.... are you using Dev-C++?? (I am )
Tell me if this fixes your prob...
Make sure the Irrlicht.DLL is in the SAME folder as your EXE.
This should be all you have at the top of your CPP file (or Header):
Tell me if this fixes your prob...
Make sure the Irrlicht.DLL is in the SAME folder as your EXE.
This should be all you have at the top of your CPP file (or Header):
Code: Select all
#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
#pragma comment(lib, "Irrlicht.lib")
-
- Posts: 271
- Joined: Sat Aug 23, 2003 5:52 pm
- Location: Hurricane Central, Florida
I use Milkshape, but in Milkshape you group faces of your model and then load in a jpeg or some picture file for textures (I use Paint Shop Pro 7 to make mine and save them as jpegs). Those are materials, then you just have to apply each group to whatever section of the jpeg that has the texture you want for that group. Then you just save the model and, like DarkWhoppy said, in your code you do aRobomaniac wrote:Also, how would i make and view a texture for this model
Code: Select all
Node->setMaterialTexture(0, driver->getTexture("TEXTURENAME.jpg"));
-
- Posts: 386
- Joined: Thu Sep 25, 2003 12:43 pm
- Contact:
-
- Posts: 271
- Joined: Sat Aug 23, 2003 5:52 pm
- Location: Hurricane Central, Florida
-
- Posts: 386
- Joined: Thu Sep 25, 2003 12:43 pm
- Contact: