Search found 50 matches
- Thu Dec 20, 2007 10:58 am
- Forum: Beginners Help
- Topic: line/plane intersection
- Replies: 7
- Views: 1088
JP Thanks for your response. I had a few beers and got cracking on the problem and ended up with much what you said. For those who where wondering this is my code. (Selector is just an extension of scene node, position is where its at) if(selector == NULL){ selector = new Selector(mysmgr->getRootSce...
- Thu Dec 20, 2007 10:16 am
- Forum: Code Snippets
- Topic: ITexture -> IImage & IImage -> ITexture
- Replies: 1
- Views: 4262
- Thu Dec 20, 2007 10:14 am
- Forum: Beginners Help
- Topic: line/plane intersection
- Replies: 7
- Views: 1088
line/plane intersection
I'm trying intersect a line with a plane. The line is the camera position to the mouse position, and to the plane is the where X and Z equal 0. The result is a 3d position The desired effect would be the user to drag over units in a 3d space and form a square to where the mouse is on the plane in 3d...
- Thu Dec 20, 2007 3:44 am
- Forum: Beginners Help
- Topic: string< T > Assignment operator
- Replies: 11
- Views: 493
Rogerborg: you where right, the error was between keyboard and chair. In another part of my program I had this: #pragma pack(1) struct MAPMATRIX{ unsigned int width; unsigned int height; unsigned short cellsize; }; The pragma pack caused the protected variables order in the Example class to be chang...
- Wed Dec 19, 2007 8:45 am
- Forum: Beginners Help
- Topic: string< T > Assignment operator
- Replies: 11
- Views: 493
string< T > Assignment operator
I have some problems assigning one string to another. The string is in it's a custom namespace, and is private: namespace ExampleNameSpace{ class Example { public: Example (); ~Example (); // problem is here: void setName(core::string<char> str) { name = str; }; core::string<char> getName() {return ...
- Thu Dec 06, 2007 10:09 am
- Forum: Beginners Help
- Topic: Creating a custom image
- Replies: 3
- Views: 501
Heres my solution
Surfing a while I found a way to do it. I'm still hammering out some of the bugs, but it works /** createMapPreview - builds chmapPreview * texture from the Scolor inTile class * * @return void nothing */ void Map::createMapPreview(){ // name of the map char chmapPreview[11] = "mapPreview"...
- Wed Dec 05, 2007 11:58 pm
- Forum: Beginners Help
- Topic: Creating a custom image
- Replies: 3
- Views: 501
Creating a custom image
I have a large map (of a Tile class), and I want to make a 'map preview'. So far I have void Map::createMapPreview(){ char chmapPreview[20]; mapPreview = driver->addTexture(core::dimension2d<s32> (256,256), chmapPreview, video::ECF_A1R5G5B5); } Which is a no-brainer, but how would I set the individu...
- Wed Dec 05, 2007 11:45 pm
- Forum: Beginners Help
- Topic: Creating a custom image
- Replies: 0
- Views: 95
Creating a custom image
I have a large map of a custom class, and I want to make a 'map preview'. So far I have void Map::createMapPreview(){ char chmapPreview[20]; mapPreview = driver->addTexture(core::dimension2d<s32> (256,256), chmapPreview, video::ECF_A1R5G5B5); } Which is a no-brainer, but how would I set the individu...
- Wed Oct 10, 2007 8:16 am
- Forum: Beginners Help
- Topic: Softwares you use?
- Replies: 19
- Views: 1016
- Mon Oct 08, 2007 9:48 pm
- Forum: Beginners Help
- Topic: mesh->setFrameLoop() access violation
- Replies: 3
- Views: 191
I found the problem, it was that mesh was undefined in some cases. so if(NULL != mesh){ //what state you are in if(state != tmpstate){ switch (state){ case 0://idle mesh->setFrameLoop(myType->idle_start, myType->idle_end); tmpstate = 0; break; case 1://walking mesh->setFrameLoop(myType->walk_start, ...
- Mon Oct 08, 2007 4:44 am
- Forum: Beginners Help
- Topic: mesh->setFrameLoop() access violation
- Replies: 3
- Views: 191
- Sun Oct 07, 2007 3:39 am
- Forum: Beginners Help
- Topic: mesh->setFrameLoop() access violation
- Replies: 3
- Views: 191
mesh->setFrameLoop() access violation
I have a scene::IAnimatedMeshSceneNode*. I want to change its animation according to what state it's in
i can call mesh->setFrameLoop() just after it has loaded, but if I call it at render time it gets an "access violation" and crashes
any ideas why?
i can call mesh->setFrameLoop() just after it has loaded, but if I call it at render time it gets an "access violation" and crashes
any ideas why?
- Fri Oct 05, 2007 9:23 am
- Forum: Beginners Help
- Topic: Where do I start?
- Replies: 18
- Views: 1134
- Fri Oct 05, 2007 9:20 am
- Forum: Beginners Help
- Topic: animate 2d image?
- Replies: 12
- Views: 497
A better way would be to resize your image. Crop it to be a multiple of 2^X. It will then display correctly in Dx8, openGL etc. multiples of 2^X are sizes like: 16 32 64 128 512 1024 2048 and so on. You can mix them to, like 64x512. I changed my game to use these sizes and it ran perfectly on all dr...
- Sat Sep 29, 2007 4:52 am
- Forum: Beginners Help
- Topic: How do I make md2 files?
- Replies: 5
- Views: 343
MD2 tutorial done.
Please tell me if I have any spelling mistakes/ simple errors or if I haven't elaborated enough on a subject (I left out a lot as there are tutorials else where)[/url]
Please tell me if I have any spelling mistakes/ simple errors or if I haven't elaborated enough on a subject (I left out a lot as there are tutorials else where)[/url]