Search found 12 matches

by TaviO!
Sun Nov 15, 2009 5:56 pm
Forum: Project Announcements
Topic: Indoors portal rendering
Replies: 13
Views: 3164

Updated the first post with a video of a demo stage.

In this demo stage, the player must hit the button (small square) with the bouncing ball, in order to open the door (big rectangle) and reach the end of the level.
by TaviO!
Mon Nov 02, 2009 7:32 pm
Forum: Project Announcements
Topic: Indoors portal rendering
Replies: 13
Views: 3164

Just a quick update: We implemented an algorithm to determine if a portal fits on the wall the player clicked on. We decided to use line collision detection to search for adjacent triangles. This was a little troublesome, because there's no native way to detect collision between 3D lines in Irrlicht...
by TaviO!
Sun Oct 25, 2009 5:12 pm
Forum: Project Announcements
Topic: Indoors portal rendering
Replies: 13
Views: 3164

Thanks for the tips! Our next step now is to find out how to check for triangles adjacent to the one picked by the player. Having the portal's size be bigger than the character' height is a very good idea. That way, we can guarantee that if a portal has been created, than the player can teleport tho...
by TaviO!
Sat Oct 24, 2009 9:02 pm
Forum: Project Announcements
Topic: Indoors portal rendering
Replies: 13
Views: 3164

Indoors portal rendering

Me and a friend have started a project for rendering indoor portals in walls (like in the game Portal, by Valve) using Irrlicht. We are still at a very crude stage but already have some nice things to show. The code is not yet available because right now it's just a total mess. We are fixing it and ...
by TaviO!
Sat Oct 24, 2009 7:42 pm
Forum: Beginners Help
Topic: A question about rotating a scene node
Replies: 8
Views: 397

Ok, I will try that!

Thanks for the answer!
by TaviO!
Sat Oct 24, 2009 7:24 pm
Forum: Beginners Help
Topic: A question about rotating a scene node
Replies: 8
Views: 397

Using that method gives me no guarantee of where the model will be looking at after the rotation. To know that, I must know where the model is looking at initially. And that's what I'm asking: where do I find this information?
by TaviO!
Sat Oct 24, 2009 7:00 pm
Forum: Beginners Help
Topic: A question about rotating a scene node
Replies: 8
Views: 397

I am sorry, but I read the first tutorial again (HelloWorld) and I could not find any references to what the initial rotation of the model is and wheter that depends on the md2 file or the engine.
by TaviO!
Sat Oct 24, 2009 6:36 pm
Forum: Beginners Help
Topic: A question about rotating a scene node
Replies: 8
Views: 397

A question about rotating a scene node

I've created an AnimatedMeshSceneNode, using the sydney md2 from the tutorials. By running some tests, I found that the model has an initial rotation that makes it look in the direction of the X axis. What I want to do is position the camera so that it looks like it is inside the model's head. The f...
by TaviO!
Tue Sep 22, 2009 11:58 pm
Forum: Beginners Help
Topic: How to rotate a scene node around an arbitrary vector?
Replies: 1
Views: 266

How to rotate a scene node around an arbitrary vector?

How can I rotate a scene node around an arbitraty vector?

The setRotation() method only alows me to rotate around a scene node.

Thanks!
by TaviO!
Sun Sep 20, 2009 8:03 pm
Forum: Beginners Help
Topic: How to rotate a surface so it has a given normal?
Replies: 3
Views: 318

Nevermind, the matrix had a getRotationDegrees method that returns what I need for the setRotation method on the node.

Thanks!
by TaviO!
Sun Sep 20, 2009 7:43 pm
Forum: Beginners Help
Topic: How to rotate a surface so it has a given normal?
Replies: 3
Views: 318

How do I apply the 4x4 rotation matrix to the node?

The setPosition method only accepts a vector3df.

Thanks for the answer!
by TaviO!
Sun Sep 20, 2009 6:55 pm
Forum: Beginners Help
Topic: How to rotate a surface so it has a given normal?
Replies: 3
Views: 318

How to rotate a surface so it has a given normal?

Say I have a triangle with normal X. How do I rotate so it has a given normal Y?