Raycaster Project Issue - Triangle Ray collision

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Search this Thread Display Modes
  03 March 2015
Raycaster Project Issue - Triangle Ray collision

Hello, for my c++ class I am trying to create a simple raycaster and am having some issues. For some reason I keep getting just 1 white pixel instead of the triangle I am expecting. Could someone tell me what I am doing wrong? I ziped the entire project but the main area in question is located in PrimTriangle.cpp.

I am using the algorithm explained here: http://www.scratchapixel.com/old/le...etric-solution/

Any help would be appreciated!

https://www.dropbox.com/s/uc8bah3d3...aster2.zip?dl=0

James S.
__________________
JVSpad.com
http://www.jvspad.com/
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 04:57 PM.


Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.