Search found 71 matches

by kendric
Mon Jun 25, 2007 3:36 pm
Forum: Beginners Help
Topic: I'll scratch your back you scratch mine?
Replies: 15
Views: 1276

Just to give credit first, this is not my code mostly, its Armen's So I am not an expert in vector math but I think I see how what your saying works. I tried it out and it ends up giving you long line across the entire map :) I may need to tweak this at some point so it uses intersection point, it s...
by kendric
Fri Jun 22, 2007 5:51 am
Forum: Beginners Help
Topic: I'll scratch your back you scratch mine?
Replies: 15
Views: 1276

Isn't that what this is?

trinormal=tri.getNormal();
by kendric
Fri Jun 22, 2007 2:19 am
Forum: Beginners Help
Topic: I'll scratch your back you scratch mine?
Replies: 15
Views: 1276

Oh i meant to say whats the problem :) It works sorta, but the bullet holes are applied at the angle of impact, or I don't have their rotation quite right or something, and not along the surface of the box\whatever they are on. So sometimes they look ok, other times they are sticking out at an angle...
by kendric
Fri Jun 22, 2007 2:16 am
Forum: Beginners Help
Topic: I'll scratch your back you scratch mine?
Replies: 15
Views: 1276

I'll scratch your back you scratch mine?

I reworked the Armen138 decal system which was working, then broken with a version of irrlicht and then fixed, but then the link went dead. Feel free to use it. It works great on level geometry. However when I modified it to work on moving things, it is close, but not quite right. So if you want to ...
by kendric
Wed Jun 20, 2007 6:51 pm
Forum: Beginners Help
Topic: Advanced picking question
Replies: 6
Views: 664

Ok i think I know how to do this effectively. Do a getSceneNodeFromRayBB If you found a scene node, do getCollisionPoint on the world gemoetry(fixed so you can save off the selector for speed) Then compare the distance of the world collision with the scene node(for some reason you can see through wa...
by kendric
Wed Jun 20, 2007 5:52 pm
Forum: Beginners Help
Topic: Advanced picking question
Replies: 6
Views: 664

Well I started to implement this and then I realized something.. I will have to remake a triangle selector for every scene node every single time i want to fire a bullet since their animations will be changing, and you use animation frame to build a triangle selector. This sounds like I am doing som...
by kendric
Mon Jun 18, 2007 1:25 pm
Forum: Beginners Help
Topic: Advanced picking question
Replies: 6
Views: 664

Thanks. Can anyone say if this is normally how you would detect where a bullet hit? Also do I have to do a scene node check as well as the triangle to get the scene node that was hit or can you get the node from a triangle as well? Finally I will want to put a decal of some kind at the x,y,z that th...
by kendric
Sun Jun 17, 2007 2:13 pm
Forum: Beginners Help
Topic: Advanced picking question
Replies: 6
Views: 664

Advanced picking question

In the collision tutorial it shows how to pick a scene node and how to pick a triangle from the world map. But what I need to do is pick a triangle from everything in the game. What I want to do is to be able to pick the thing the user is pointing at, determine what it is, and then process on that, ...
by kendric
Wed May 30, 2007 9:53 pm
Forum: Beginners Help
Topic: Texture problem
Replies: 1
Views: 197

Apparently this was caused by me having a animated mesh with no texture elsewhere in the code.
by kendric
Wed May 30, 2007 8:45 pm
Forum: Beginners Help
Topic: Texture problem
Replies: 1
Views: 197

Texture problem

Hi, I was working on a project based off of the irrilicht\newton tutorial and I had it compiling and running just fine. I started a set of modifications and when i try to run now I get an Access violation writing location 0x81d15a3a when doing this: IAnimatedMesh *mesh = smgr->getMesh("data/sma...
by kendric
Tue May 29, 2007 9:07 pm
Forum: Beginners Help
Topic: Mouse motion question
Replies: 2
Views: 241

Mouse motion question

Learning this engine, its really cool. I have a question on mouse movement. if(event.MouseInput.Event==EMIE_MOUSE_MOVED) { printf("Mouse is now at x=%d",event.MouseInput.X); } This gives me the position. But if I want to get motion, ie to control the camera myself, is there a function for ...