Search found 36 matches

by brick
Mon Sep 12, 2011 3:53 pm
Forum: Beginners Help
Topic: Simple collision check between octrees?
Replies: 11
Views: 522

Re: Simple collision check between octrees?

The object falls on the ground when I place it in the air. Also when I put the camera object on the "wrong" coordinates and it's initially stuck, I look up (with the mouse) and press the forward key, and that makes the camera view rise slightly and the collision detection becomes accurate ...
by brick
Sun Sep 11, 2011 10:45 am
Forum: Beginners Help
Topic: Simple collision check between octrees?
Replies: 11
Views: 522

Re: Simple collision check between octrees?

@christianclavet: Thank you very much for the detailed response! I tried the camera and it didn't work at first, but when I positioned it on the same coordinates as in the tutorial, the collision worked properly (I guess because that's the intended position in quake3). Then I placed the node on the ...
by brick
Sat Sep 10, 2011 12:04 pm
Forum: Beginners Help
Topic: Simple collision check between octrees?
Replies: 11
Views: 522

Re: Simple collision check between octrees?

Only now did it strike me what you were talking about. I'm moving the node with WASD keys instead of arrow keys. Perhaps that's the reason why it isn't working properly? Is there a way to edit the above code to add the information that different keys are used for movement?
by brick
Wed Sep 07, 2011 12:05 pm
Forum: Beginners Help
Topic: Simple collision check between octrees?
Replies: 11
Views: 522

Re: Simple collision check between octrees?

Thanks for the answer. I'm not sure what you mean by checking how I move the node? I'm trying to have a mesh collide with quake3 instead of camera colliding, and I've tried increasing/decreasing ellipsoid radius, but the issue remains. The node occasionally starts going up as if the terrain is raisi...
by brick
Tue Sep 06, 2011 8:35 pm
Forum: Beginners Help
Topic: Simple collision check between octrees?
Replies: 11
Views: 522

Re: Simple collision check between octrees?

Sorry if this is a dumb question, but is it possible to just copy this code from tut07 and use it on a, say, IAnimatedMeshSceneNode instead of camera? That is, achieve collision detection between a mesh node and the quake 3 map.   scene::ITriangleSelector* selector = 0;           if (q3node)        ...
by brick
Tue Sep 06, 2011 3:55 pm
Forum: Beginners Help
Topic: Simple collision check between octrees?
Replies: 11
Views: 522

Simple collision check between octrees?

Is there a simple way to check collision between two nodes on the scene that is similar to this piece of code:

Code: Select all

node1->getTransformedBoundingBox().intersectsWithBox(node2->getTransformedBoundingBox());
but that uses octrees instead of boxes, or a combination of both?
by brick
Fri Sep 02, 2011 2:04 pm
Forum: Beginners Help
Topic: rotate scene node
Replies: 10
Views: 1170

Re: rotate scene node

You're right, thanks. I've found a way to rotate it successfully.
by brick
Thu Sep 01, 2011 3:55 pm
Forum: Beginners Help
Topic: rotate scene node
Replies: 10
Views: 1170

Re: rotate scene node

I have a somewhat similar question. Nodes that I have created can be moved by WASD keys. I want them to face the direction in which they're moving. Say, if they're facing east, I want them to instantly turn west when I push A. However, I just can't seem to find a way to turn the ndoes. There's a rot...
by brick
Thu Sep 01, 2011 10:11 am
Forum: Beginners Help
Topic: Stop animations from looping
Replies: 2
Views: 294

Re: Stop animations from looping

That's great. Thanks a lot!
by brick
Thu Sep 01, 2011 9:55 am
Forum: Beginners Help
Topic: Stop animations from looping
Replies: 2
Views: 294

Stop animations from looping

Sorry if I'm spamming the board with too many questions, but I'm really having trouble with this one. I can't seem to stop the animations (or the rotation) from looping. I've tried stopping it after a number of frames, but the number of scene and mesh frames doesn't match. I've found the following t...
by brick
Wed Aug 31, 2011 4:19 pm
Forum: Beginners Help
Topic: Movement tutorial errors
Replies: 4
Views: 337

Re: Movement tutorial errors

I did look for it on google, but I didn't solve the problem. I thought if it's a common problem it might save me some time to post it there, but it seems it's not. Thanks in any case, I'll keep looking.
by brick
Wed Aug 31, 2011 3:36 pm
Forum: Beginners Help
Topic: Movement tutorial errors
Replies: 4
Views: 337

Movement tutorial errors

I'm trying to run the Tutorial 4 pasting the exact same code from the site, but I always get the following errors. Does anyone know what might be causing them? Error 4 error LNK2028: unresolved token (0A00085B) "extern "C" class irr::IrrlichtDevice * __cdecl createDevice(enum irr::vid...
by brick
Tue Aug 30, 2011 3:32 pm
Forum: Beginners Help
Topic: Switching between nodes with a keystroke
Replies: 5
Views: 242

Re: Switching between nodes with a keystroke

Thanks! It works great now. Now, is there a way for the switching between two camera positions to include movement, rather than cutting? What I mean is that right now, when I press the key that switches, it cuts from the first to the second position. Is it possible for it to do a smooth pan from one...
by brick
Tue Aug 30, 2011 1:17 pm
Forum: Beginners Help
Topic: Switching between nodes with a keystroke
Replies: 5
Views: 242

Re: Switching between nodes with a keystroke

That makes sense. If the key is held for any longer than one frame, it switches back and forth. Do you have any suggestions about how I could block it? The class is basically the same one used in the movement tutorial, derived from EventReceiver.
by brick
Tue Aug 30, 2011 12:59 pm
Forum: Beginners Help
Topic: Switching between nodes with a keystroke
Replies: 5
Views: 242

Switching between nodes with a keystroke

I have placed two identical nodes on the scene, node1 and node2. I want to be able to alternate between them during runtime at the stroke of a key, and then to trigger the selected node's animations. I have created an additional pointer called "node" that points to one of the two nodes whi...