karansher / computer-graphics-ray-casting

Computer Graphics Assignment about Ray Casting
1 stars 0 forks source link

How to check triangle intersection part #5

Open zhuyuezx opened 1 year ago

zhuyuezx commented 1 year ago

I'm working on triangle intersection part but found that main.cpp doesn't contain any related part. I think I need to add insert code into main.cpp but don't have any clue.

image

image

How to get the output like these two pictures image

panuelosj commented 1 year ago

You can call the raycasting function with an argument pointing to whatever scene file you want. You can browse the scene files in the data directory. For example, you can do the bunny with "./raycasting ../data/bunny.json".

cccccz commented 1 year ago

You can call the raycasting function with an argument pointing to whatever scene file you want. You can browse the scene files in the data directory. For example, you can do the bunny with "./raycasting ../data/bunny.json".

Is this approach also possible in Windows terminal or in Visual studio?