Search found 5 matches
- Mon Jun 18, 2012 6:06 pm
- Forum: Beginners Help
- Topic: getSceneNodeAndCollisionPointFromRay does not work
- Replies: 1
- Views: 418
getSceneNodeAndCollisionPointFromRay does not work
Hi, i tried to use the named function to do some collision detection in a game of mine. Here is some test code: ISceneCollisionManager* cm= sceneManager->getSceneCollisionManager(); vector3df pos = getNode()->getPosition(); vector3df rayStart = pos + vector3df(0,+DIMY,0); // startPos vector3df ray...
- Mon Jun 11, 2012 10:01 pm
- Forum: Beginners Help
- Topic: multiple textures on one mesh
- Replies: 6
- Views: 1167
Re: multiple textures on one mesh
the textures aren't loaded by getMesh. If they should, it's not done. Yes, there is a mtl file in the same directory as the .obj file. About the collada: I was not correct when I said, it's not loaded at all. It does load, but there is only 1 Material (this ugly person figure of Sketchup). I use Irr...
- Mon Jun 11, 2012 9:37 pm
- Forum: Beginners Help
- Topic: multiple textures on one mesh
- Replies: 6
- Views: 1167
Re: multiple textures on one mesh
So you have to find the right meshbuffer (for example checking for the texturenames of it's material) and then you can change the texture of that material. I'm loading the .obj mesh, but there are no textures set at all. So I cannot check the texturenames, can I? (If yes, how?) There are just -in m...
- Mon Jun 11, 2012 8:44 pm
- Forum: Beginners Help
- Topic: multiple textures on one mesh
- Replies: 6
- Views: 1167
Re: multiple textures on one mesh
Thanks, that helped. But in my simple Sketchup model there were 11 Materials exported. Dunno why, I just made a very basic house with the walls and the roof. I found out, that my walls were Material at index 2, and the roof was index 3 (at sceneNode->getMaterial()) I wonder, how I can easily find ou...
- Mon Jun 11, 2012 7:12 pm
- Forum: Beginners Help
- Topic: multiple textures on one mesh
- Replies: 6
- Views: 1167
multiple textures on one mesh
Hi everybody, (sorry for my English ahead, it's not my main language:)) I'm a quiet experienced C++ programmer, but new to Irrlicht I made the tutorials and little own games with the default media and everything worked just fine. Now I created a simple mesh with Google Sketchup and exported it as Co...