Search found 71 matches

by Xharock
Tue Feb 27, 2007 7:33 pm
Forum: Advanced Help
Topic: Portal effect
Replies: 2
Views: 541

Portal effect

Hi, I've been trying to create a portal affect similar to what is seen in the game Narbacular Drop (And Prey it seems) whereby there are two portals and as you look out of one you see whats on the other side of the other. I haven't done very well. I've been looking at the tech docs for the game and ...
by Xharock
Fri Dec 29, 2006 6:50 pm
Forum: Beginners Help
Topic: triangle3df, getTriangles
Replies: 2
Views: 244

For arraySize you could just do: sizeof(TriangleDatas) But this would only work if you gave TriangleDatas a size i.e. triangle3df TriangleDatas[99]; As for triangle3df I guess it's a vector and you should be able to access the data you want like you would any other data structure: triangle3df.X tria...
by Xharock
Fri Dec 29, 2006 11:24 am
Forum: Beginners Help
Topic: undefined reference to blah blah blah....
Replies: 4
Views: 196

Hmm not sure whether this would cause linker errors but in your child class you only need to include "ILoadedMesh.hpp" as in that file it also includes the other two. So essentially you're including the same files twice. Could you post the errors you are receiving? That might help.
by Xharock
Wed Dec 27, 2006 8:46 pm
Forum: Beginners Help
Topic: [SOLVED] return i = crash!? :S
Replies: 11
Views: 418

OK Turns out I was debugging the wrong section of code. I've located the real trouble. Sorry about that :oops:
by Xharock
Wed Dec 27, 2006 6:17 pm
Forum: Beginners Help
Topic: [SOLVED] return i = crash!? :S
Replies: 11
Views: 418

I think you are right. I just replaced the function contents with this: int x; x = 0; return x; With the same crash. This is how I'm calling the function: int elementNo; elementNo = this->getElementNoFromName(onSelectName); It is being called from within another function which belongs to the same cl...
by Xharock
Wed Dec 27, 2006 6:09 pm
Forum: Beginners Help
Topic: [SOLVED] return i = crash!? :S
Replies: 11
Views: 418

OK It seems it doesn't work now if I replace return i with return 0 or any other number.
by Xharock
Wed Dec 27, 2006 5:35 pm
Forum: Beginners Help
Topic: [SOLVED] return i = crash!? :S
Replies: 11
Views: 418

getName() simply returns a value in the cMenuElements class which is what m_elements[] is. The else statement is just a remnant from a previous incarnation of the function so I just left it there as it's no cause of a problem. I'm not sure if xstring might be related to std::string in any way?
by Xharock
Wed Dec 27, 2006 5:15 pm
Forum: Beginners Help
Topic: How to lighten screen when look to sun?
Replies: 7
Views: 596

Are you sure Red is the right colour? Nice effect though :)
by Xharock
Wed Dec 27, 2006 4:49 pm
Forum: Beginners Help
Topic: [SOLVED] return i = crash!? :S
Replies: 11
Views: 418

It doesn't reach those in the tests I'm doing. The function will break from that loop as soon as it finds a match for the string provided and in the tests I'm doing m_elements[0] is that match.
by Xharock
Wed Dec 27, 2006 4:36 pm
Forum: Beginners Help
Topic: [SOLVED] return i = crash!? :S
Replies: 11
Views: 418

No, I've done debugging and m_elements[0] is definatly a valid pointer. If it wasn't surely it would not like the line where I compare the two strings? Anyway it is valid as this is an excerpt from a menu system I'm writing and it gets set through the menu file which has all worked up until now when...
by Xharock
Wed Dec 27, 2006 4:12 pm
Forum: Beginners Help
Topic: [SOLVED] return i = crash!? :S
Replies: 11
Views: 418

[SOLVED] return i = crash!? :S

int cMenu::getElementNoFromName(std::string name) { int i; for(i = 0; i < 20; i++) { if(m_elements[i]->getName() == name) break; else continue; } return i; } For some reason this function will crash on the return i line with this error: Unhandled exception at 0x1048c1fe (msvcp80d.dll) in Metal Gear...
by Xharock
Tue Dec 26, 2006 9:26 pm
Forum: Beginners Help
Topic: Image sizes
Replies: 5
Views: 326

I'll try making my logo Image a size that is a power of 2. How can I tell IGUIImage to only display part of it?
by Xharock
Tue Dec 26, 2006 10:05 am
Forum: Beginners Help
Topic: Image sizes
Replies: 5
Views: 326

Image sizes

OK So I know I can't use textures that are not a square size i.e. 512 x 512 etc. So what if I want to display a logo which is 500 x 200 or something short of splitting it up into several square textures? I'm using IGUIImage to display 2D images on the screen.
by Xharock
Sat Dec 23, 2006 6:38 pm
Forum: Beginners Help
Topic: Is model collided with model
Replies: 4
Views: 269

You need to apply a Collision Animator to the camera using the second TriangleSelector.
by Xharock
Sat Dec 23, 2006 12:51 pm
Forum: Beginners Help
Topic: walls intro my racegame issues
Replies: 8
Views: 518

Well first you need to create a Triangle Sleecter for your mesh: scene::ITriangleSelector* selector = 0; selector = smgr->createOctTreeTriangleSelector(levelmesh->getMesh(0), levelnode, 128); levelnode->setTriangleSelector(selector); selector->drop(); Then you need to apply a Collision Animator to w...