Jump to content

  • Log In with Google      Sign In   
  • Create Account


Gaius Baltar

Member Since 06 Jul 2014
Offline Last Active Today, 08:38 AM

Posts I've Made

In Topic: c# method question

28 August 2014 - 10:53 AM

Wow, thanks for the quick replies. Both of the suggestions above work and I will keep both in mind for the future.

 

It appears, I was wrong, go with Nypyren's suggestion, in this case it would be the better solution overall.


In Topic: c# method question

27 August 2014 - 03:54 PM

Disregard this post. 


In Topic: c# method question

27 August 2014 - 03:22 PM

Disregard this post


In Topic: Line vs Triangle collision in 3D

27 August 2014 - 09:06 AM

Thanks for that, i like when tutorials have some simply graphic's, i think i understand it better now.


You're welcome! The thing is, I've never actually done anything in 3d so this is completely theoretical... would be logical though.

 

Also I would be interested to know how one would find the position where the line and triangle pass each other, I could probably figure it out for 2d but it seems more complex for 3d.If anyone knows, would be great to note into my reference book.


In Topic: Line vs Triangle collision in 3D

26 August 2014 - 03:42 PM

I'm just guessing right now, so this might be wrong:

 

First check if the line ever passes the triangle, if yes, take the point where the line passes the triangle and make three more triangles with each of the points of the original triangle and the point like so:

 

7zog0Lp.png

 

 

If the area of the three triangles is equal to the area of the larger triangle, you have yourself an intersection.

I actually had a quick glimpse at a youtube video talking about this kind of intersection, thought it might be worth sharing my two cents.

 

Edit: Here's the video: 


PARTNERS