• Add Review
  • Subscribe
  • Nominate
  • Submit Media
  • RSS

Update 8 : Tutorials, new mouse picking method, halloween !

  • Wano
  • 10/31/2015 10:36 PM
  • 2559 views
Hey !

This week I wasn't really on holidays (only 1/2 during one week), but I took this small opportunity to relax (maths strike). Of course, I worked on the project too !


Tutorials :

I started a tutorial page HERE. This will be transfered on the future website.



I think that it's a really great way to see where I'm going on, I only write things that are (normaly) certainly working. I can clearly know what I'm doing and what needs to be done, and it also prepare the tutorial part I wanted to make for users. Actually, there are really trivial tips, but I'm still working on. I will often update this page.

For now, I will tell you each blog the new features I put.

Mouse picking :

On the last blog, I presented you a way to get the object that the mouse is pointing on with colors picking. However, I don't want to use that method anymore because :

- That can become quickly heavy
- It's not an "elegant" way

So what I'm using now ? Unfortunately, the new method is more mathematic (uh my maths strike is ruined). I'm using RAY CASTING :

The concept is just to get a ray (first of all its vector) starting on the camera position and pointing according to the mouse coordinates and camera position. A simple illustration (from that TUTORIAL) :



I'm still applying it, and I try to find the best way to use the ray in my case. I trully need to work hard on optimization, 'cause if I don't, that's just low. I'm always seeing my FPS bar, and I want it to stay at 60FPS, even for big maps. But it's really hard for me because of ruby and because it'sthe first time of my life I'm doing that. It's fascinating, but hard.

Halloween !

Hey, it's enough theory, it's HALLOWEENN !



This tileset will be included into the RTP pack, of course. :)







That's all. I feel like it's not progressing fast, but I hope I will improve my time. It's a really short blog because I'm working hard on complex subjects, but I wanted to show you that I'm still here ! :D

See you in two weeks.
Pages: 1