OK, it's night here, so the rest of the world is awake. (I'm in Australia). I have a very basic problem with IRRLICHT and IRR files.
Using IRREDIT is great and being able to oad an entire IRR file into the engine is wonderful, BUT........
Every time I create a node with IRREDIT and save it as an IRR file, I can't seem to load the textures I used in teh IRR file. So can anyone tell me where the textures need to be in order to get picked up by the engine?
I've tried putting the textures folder in the
D:\IRRLICHT\irrlicht-1.1\bin\Win32-VisualStudio folder, but then I get the shape but no texture. I've tried putting textures from other locations into the IRR file (scenenode) but all I get is a white object with no texture.
I'm pullling my hair out, and there's precious little left.
Can someone please give me som every basic help?
very basic help needed
Thanks Bitplane, I started programming back in the days of QBASIC and am a bit confused by some of the modern coding and syntax, especially for C++.
When you say
device->getFileSystem()->getWorkingDirectory()
how do I go about getting the getWorkingDirectory() as output somewhere?
As the topic says "very basic help needed"
Thanx
When you say
device->getFileSystem()->getWorkingDirectory()
how do I go about getting the getWorkingDirectory() as output somewhere?
As the topic says "very basic help needed"
Thanx
You mean you want to output the returned value? I don't mean to be mean, but if you dont know how to do that i suggest reading up on c++ a little bit.
Anyways, to output it do like this
Alternatively, if you feel like you want to be more c++'ish in your ways, you can change the last line for this
Or, if you want to output via irrlicht's own logging system, use this line instead
Normally, with all three of the alternatives the output should be avialable in a console somewhere.
Also, i'm not sure about this, but when i used irredit last time, i think all my textures where set relative to the irredit executable's path.
Anyways, to output it do like this
Code: Select all
c8* Path;
Path=device->getFileSystem()->getWorkingDirectory();
printf("%s\n", Path);
Code: Select all
cout << Path;
Code: Select all
device->getLogger()->log(Path);
Also, i'm not sure about this, but when i used irredit last time, i think all my textures where set relative to the irredit executable's path.
If you don't have anything nice to say, don't say anything at all.