View Single Post
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 07-26-2014 , 16:40   Re: About normals, tracerays and accuracy
Reply With Quote #10

Not exactly sure why you are not using getplanenormal, and also, the trace will always hit something with that filter.. Eventually because world and sealed. I'm not all familiar with this method, so I don't see why you are using 89 degrees instead of 90. Also, why add 100 to pos instead of using getclienteyeposition, not that it really matters. You'll have to excuse the fact that it's been some 10+ years now since I'v taken linear algebra classes, and I only use what little maths now I need to get by. Shit, the farthest I could probably get at something simple like integrating would be to draw the integral symbol at this point.

I'm going to assume that there is some inaccuracy in this method vs the other. A lot of model stuff will often store normals for each triangle explicitly, rather than calculate them on the fly (like via smoothing groups). I'd assume physics data has them indexed for quick lookup, but I'm likely to be totally wrong here.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 07-26-2014 at 16:42.
friagram is offline