Search found 36 matches

by sfncook
Sun Jan 11, 2009 12:37 am
Forum: Beginners Help
Topic: Irrlicht Drawing a Blank MFC Window
Replies: 1
Views: 470

Irrlicht Drawing a Blank MFC Window

Hey Folks, I'm trying to adapt tutorial #14 for MFC but am only getting a blank black window. I know the Irrlicht device is drawing something because it turns black. But there are no shapes. I basically made a new MFC project and added some of the code from tutorial 14 to the CMainFrame class in a s...
by sfncook
Fri Jan 25, 2008 5:56 pm
Forum: Beginners Help
Topic: Snake game
Replies: 8
Views: 1860

Wait a minute! I'm getting a psychic transmission from the mystics! They tell me... this 'snake game'... is for a ... school project!

(Look about ten posts down from yours in the forum, homee).
by sfncook
Mon Jan 21, 2008 8:09 am
Forum: Beginners Help
Topic: Newbie question
Replies: 3
Views: 367

FYI: I create only one instance of an IrrlichtDevice and extern it (global) for other classes to use. Totally lame use of globals, I'm sure. But it's easy and I really haven't had any problems with it yet.
by sfncook
Mon Jan 21, 2008 8:02 am
Forum: Beginners Help
Topic: Mouse controlled spaceship and chase cam. [SOLVED]
Replies: 5
Views: 540

What do you mean by "goes in loops"? Is it rotating too fast? Is it only rotating in one direction? Does it not stop spinning?
by sfncook
Thu Jan 10, 2008 6:45 pm
Forum: Advanced Help
Topic: Does Irrlicht provide spatial indexing (searching) utility?
Replies: 18
Views: 1491

That book looks pretty interesting. Amazon reviews are pretty high. How about this one though? http://www.amazon.com/Game-Programming- ... im_b_img_5 Has anyone ready it or heard any positive/negative reviews?

-S
by sfncook
Wed Jan 09, 2008 8:11 pm
Forum: Beginners Help
Topic: Adding object during game play
Replies: 6
Views: 702

That sounds like about five different questions in one. It sounds like what you want to know is how to make something your character has bought appear on the screen. Is this what you really want to know? If so then here is a quick (and very simplified ) series of steps: 1) make the mesh in a 3D prog...
by sfncook
Wed Jan 09, 2008 7:30 pm
Forum: Advanced Help
Topic: Does Irrlicht provide spatial indexing (searching) utility?
Replies: 18
Views: 1491

I think hash<int, list<obj_reference>> would make it a little quicker to remove items from a bucket.

Also, in terms of a spatial grid, would an R-Tree be too costly to maintain? (http://en.wikipedia.org/wiki/R-tree)
by sfncook
Tue Jan 08, 2008 4:56 am
Forum: Advanced Help
Topic: Does Irrlicht provide spatial indexing (searching) utility?
Replies: 18
Views: 1491

Ah, I see. Sounds like I'm heading for a single axis search algorithm. Thanks guys!
by sfncook
Mon Jan 07, 2008 11:36 pm
Forum: Advanced Help
Topic: Does Irrlicht provide spatial indexing (searching) utility?
Replies: 18
Views: 1491

In fact, it *is* a 3d space-based RTS and I am considering a unit count on par with Supreme Commander. So, ~5000 units max (all teams) would be about right. I'm thinking that the unit positions will tend to be very "clumpy" - that is many units will tend to be clustered around resources or...
by sfncook
Mon Jan 07, 2008 3:54 pm
Forum: Advanced Help
Topic: Does Irrlicht provide spatial indexing (searching) utility?
Replies: 18
Views: 1491

Does Irrlicht provide spatial indexing (searching) utility?

Hi folks, I am making an RTS and need a quick way to allow units to "see each other" by search through all scene nodes and determining who is within a certain proximity - like radar. I was thinking something along the lines of the octtree as defined by wikipedia (http://en.wikipedia.org/wi...
by sfncook
Thu Jan 03, 2008 7:21 pm
Forum: Advanced Help
Topic: I need a better way to mouse pick.
Replies: 8
Views: 1051

Forget it and please don't vote me off the island for being stupid. I'm going to continue using getSceneNodeFromScreenCoordinatesBB() for when the meshes are close to the camera then I'll use a GUI element like a button or something similar for when the mesh is far from the camera.
by sfncook
Thu Jan 03, 2008 7:01 pm
Forum: Advanced Help
Topic: I need a better way to mouse pick.
Replies: 8
Views: 1051

Exactly, keless, this an RTS (perhaps I should have mentioned that in the first post, duh). So there will be potentially many hundred if not a couple thousand game pieces. I assume that getSceneNodeFromScreenCoordinatesBB does this in a more efficient manner than just checking every mesh with a for ...
by sfncook
Thu Jan 03, 2008 4:39 am
Forum: Advanced Help
Topic: I need a better way to mouse pick.
Replies: 8
Views: 1051

I need a better way to mouse pick.

Hi folks, I have a scene in which I may zoom far out and wish to still be able to easily determine which game piece the mouse is currently over. Currently I'm using this method: irr::scene::ISceneNode* selectedSceneNode = smgr->getSceneCollisionManager()->getSceneNodeFromScreenCoordinatesBB(irr::cor...
by sfncook
Mon Dec 17, 2007 1:26 am
Forum: Off-topic
Topic: Heap corruption detected using std::vector in threaded app
Replies: 9
Views: 1714

Hehe, thanks for the help thus far, folks. The irrlicht community is truly the best (most polite and helpful) I've ever encountered. I think i was a little confused by the threading situation. I had a thread for RakNet functionality and have now moved that functionality into the main thread. I thoug...
by sfncook
Fri Dec 14, 2007 6:56 am
Forum: Off-topic
Topic: Heap corruption detected using std::vector in threaded app
Replies: 9
Views: 1714

Poorly. hehe. Here's the code:

Code: Select all

bool Lock(void)
	{
		if(!lock) {
			lock=true;
			return true;
		}
		else {
			return false;
		}
	};