very basic help needed

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
anubis55
Posts: 6
Joined: Fri Sep 22, 2006 11:46 pm
Location: Australia

very basic help needed

Post by anubis55 »

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? :?
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

try printing out your current working directory and see if it's where you expect to be (your compiler may set a strange path while debugging)

device->getFileSystem()->getWorkingDirectory()

you could change it through IFileSystem, but there's probably an option to set it somewhere in your IDE.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
anubis55
Posts: 6
Joined: Fri Sep 22, 2006 11:46 pm
Location: Australia

Post by anubis55 »

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
Luben
Posts: 568
Joined: Sun Oct 09, 2005 10:12 am
Location: #irrlicht @freenode

Post by Luben »

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

Code: Select all

c8* Path;
Path=device->getFileSystem()->getWorkingDirectory();

printf("%s\n", Path);
Alternatively, if you feel like you want to be more c++'ish in your ways, you can change the last line for this

Code: Select all

cout << Path;
Or, if you want to output via irrlicht's own logging system, use this line instead

Code: Select all

device->getLogger()->log(Path);
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.
If you don't have anything nice to say, don't say anything at all.
Post Reply