Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+12 votes

Has anyone tried to use the reflection or highlight feature of raytracing? If so which did you find to work better?

asked in CSC 150 January201920 by (8 points)

4 Answers

+6 votes
 
Best answer

Yup, it's at the bottom of the first page of the sheet he gave us today!

It can be used on both turtle as well as the patches.

raytracing: set-reflection 0.2 <-- this reflects 20% of the light

answered by (8 points)
selected by
+5 votes

For highlights:

raytracing: set-highlight 0.4 30 <-- bright spot with brightnes 0.4 and size 30

answered by (8 points)
+4 votes

It depends on what you are trying to achieve, but for me I found that I didn't want that much of a highlight.

answered by (8 points)
+2 votes

I found that highlight works much better for what I was doing.

answered by (8 points)
...