Search found 50 matches

by pippy
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...
by pippy
Thu Dec 20, 2007 10:16 am
Forum: Code Snippets
Topic: ITexture -> IImage & IImage -> ITexture
Replies: 1
Views: 4262

Thanks, this code is a great resource
by pippy
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...
by pippy
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...
by pippy
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 ...
by pippy
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"...
by pippy
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...
by pippy
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...
by pippy
Wed Oct 10, 2007 8:16 am
Forum: Beginners Help
Topic: Softwares you use?
Replies: 19
Views: 1016

I personally just use nero wave editor to crop & edit sounds. Its small and handy (v6 anyway). Also use 3ds max7 and photoshop.

On another note I read about a sound making program (such as arcade beeps, not beats or loops) that would be really handy for making games. Anyone know what its called?
by pippy
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, ...
by pippy
Mon Oct 08, 2007 4:44 am
Forum: Beginners Help
Topic: mesh->setFrameLoop() access violation
Replies: 3
Views: 191

Thanks for your reply trivtn.

Using a boolean to set the frame loop would mean i could only set it once, and i want to change it twice
by pippy
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?
by pippy
Fri Oct 05, 2007 9:23 am
Forum: Beginners Help
Topic: Where do I start?
Replies: 18
Views: 1134

Start with an example and build on it.

The code might not be so clean to a beginner, but understanding it will give a real foot in the door.

one thing I didn't like about the Irrlicht examples is that none of them show how to make classes in c++. If you are to make a large game it's essential.
by pippy
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...
by pippy
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]