Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CG/2014-Hauptklausur 2 a-d, f #10

Open
StephanGocht opened this issue Mar 3, 2016 · 6 comments
Open

CG/2014-Hauptklausur 2 a-d, f #10

StephanGocht opened this issue Mar 3, 2016 · 6 comments
Labels

Comments

@StephanGocht
Copy link

Es ist der Reflexionsstrahl für das Raytracing gesucht also von der Kamera aus. (Nicht von der Lichtquelle aus).

Ich denke mal das es bein transmittierten Strahl genauso ist, wobei hier die Aufgabenstellung nicht ganz klar ist.

Der Winkel alpha lässt sich dann als R_V \cdot L (= R_L \cdot V - so ist er jetzt eingetragen) eintragen.

Hinweis zu f. Der Phongexponent ist auch Materialparameter, er gibt ja an wie sehr die Oberfläche streut.

@MartinThoma
Copy link
Owner

Könntest du ein Bild zeichnen, abfotographieren und z.B. auf http://imgur.com/ hochladen das zeigt was du meinst?

(Oder halt wie ich mit Screenshot + Shutter so eine Zeichnung machen)

@dudanueben
Copy link

Ich bin der selben Ansicht wie steohan. Hier mal meine Lösung der Aufgabe.
http://imgur.com/7Ur3Sz3

@MartinThoma
Copy link
Owner

@dudanueben Danke für die Zeichnung. Ich habe es mal als "alternative Lösung" hinzugefügt. Natürlich ist nur eines richtig, aber ich bin mir nicht sicher welches von beiden tatsächlich richtig ist.

@dudanueben
Copy link

Ich vermute, dass das Wort "rekursiv" ausschlaggebend ist. Für die Phongbeleuchtung wird keine Rekursion benötigt. Womit der einzuzeichnende Vektor r nicht der R_L der Phongbeleuchtung ist. Transmission wird für die Bleuchtungsberechnung glaube ich gar nicht verwendet.

Im Foliensatz 2 Folie 92 ist auch dieses dot(R_L, V) = dot(R_V, L) erwähnt, womit die Notwendigkeit von R_L zur Einzeichnung des Winkels alpha entfällt.

@StephanGocht
Copy link
Author

"Den Reflexionsstrah r, der auch für rekursives Raytracing verwendet wird." Es gibt doch auch bei Brechung einen reflektierten anteil (Stichwort Fresnel-Effekt) diesen muss man ja mithilfe eines neuen Strahls (rekursiv) berechnen. Und der ist halt der von der Kamera aus also so wie es @dudanueben in seinem Bild hat.

@Craeckie
Copy link
Contributor

Craeckie commented Mar 1, 2017

Die alte Lösung hatte

  1. r nicht als Reflektionsstrahl
  2. t wurde nicht zum Lot hin, sondern darüber hinaus gebrochen
    Neue Lösung ist korrekt, weil a = (R_L * V) = (R_V * L), also ist der Winkel zwischen l und r korrekt (s. Kapitel 2, Folie 54)
    Ich werd die alte Lösung dann weg machen, wenn das ok ist.

Craeckie pushed a commit to Craeckie/KIT-Musterloesungen that referenced this issue Mar 1, 2017
MartinThoma pushed a commit that referenced this issue Mar 1, 2017
…klausur (#87)

* CG/2012-Nachklausur: a few improvements
* CG/2013-Hauptklausur: a few additions and corrections
* CG/2013-Nachklausur: minor improvement
* A few corrections
* Cleaned up, see Issue #10
Craeckie pushed a commit to Craeckie/KIT-Musterloesungen that referenced this issue Mar 1, 2017
MartinThoma pushed a commit that referenced this issue Mar 1, 2017
* CG/2013-Nachklausur: minor improvement
* A few corrections
* Cleaned up, see Issue #10
* CG/2014-Hauptklausur: additions and improvements
* CG/2014-Hauptklausur: a few improvements
MartinThoma pushed a commit that referenced this issue Mar 2, 2017
* CG/2013-Nachklausur: minor improvement
* CG/2014-Hauptklausur: additions and improvements (Cleaned up, see Issue #10)
@MartinThoma MartinThoma added the CG label Mar 6, 2017
MartinThoma pushed a commit that referenced this issue Sep 14, 2017
* Cleaned up, see Issue #10
* CG/2014-Nachklausur: Several improvements
* CG/2016-Nachklausur: small corrections to shaders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants