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

EStormlynnbranch #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions apps/pbrtdemoapp/imgui.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[Window][Debug##Default]
Pos=60,60
Size=400,400
Collapsed=0

[Window][Render statistics]
Pos=316,41
Size=247,234
Collapsed=0

[Window][Tips]
Pos=34,45
Size=268,114
Collapsed=0

[Window][Camera parameters]
Pos=38,201
Size=219,226
Collapsed=0

[Window][Material parameters]
Pos=1345,43
Size=138,370
Collapsed=0

10 changes: 8 additions & 2 deletions apps/pbrtdemoapp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,15 @@ int main()
ImGui::Text( "# deep rays: %6ik (%6.1fM/s)", coreStats.deepRayCount / 1000, coreStats.deepRayCount / (max( 1.0f, coreStats.traceTimeX * 1000000 )) );
ImGui::Text( "# shadw rays: %6ik (%6.1fM/s)", coreStats.totalShadowRays / 1000, coreStats.totalShadowRays / (max( 1.0f, coreStats.shadowTraceTime * 1000000 )) );
ImGui::End();
ImGui::Begin("Tips", 0);
ImGui::Text("Use W,S,A,D to move");
ImGui::Text("Use R,F to up or down");
ImGui::Text("Use up down left right to turn round");
ImGui::Text("Use B to refresh");
ImGui::End();
ImGui::Begin( "Camera parameters", 0 );
float3 camPos = renderer->GetCamera()->position;
float3 camDir = renderer->GetCamera()->direction;
float3 camPos = renderer->GetCamera()->transform.GetTranslation();
float3 camDir = renderer->GetCamera()->transform.GetForward();
ImGui::Text( "position: %5.2f, %5.2f, %5.2f", camPos.x, camPos.y, camPos.z );
ImGui::Text( "viewdir: %5.2f, %5.2f, %5.2f", camDir.x, camDir.y, camDir.z );
ImGui::SliderFloat( "FOV", &renderer->GetCamera()->FOV, 10, 90 );
Expand Down