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

Error building the pbrtdemoapp #13

Open
rgba32 opened this issue Apr 8, 2020 · 1 comment
Open

Error building the pbrtdemoapp #13

rgba32 opened this issue Apr 8, 2020 · 1 comment

Comments

@rgba32
Copy link

rgba32 commented Apr 8, 2020

Camera has no position or direction members...

5>D:\lighthouse2\apps\pbrtdemoapp\main.cpp(189,51): error C2039: 'position': is not a member of 'lighthouse2::Camera'
5>D:\lighthouse2\lib\RenderSystem\camera.h(25): message : see declaration of 'lighthouse2::Camera'
5>D:\lighthouse2\apps\pbrtdemoapp\main.cpp(190,52): error C2039: 'direction': is not a member of 'lighthouse2::Camera'
5>D:\lighthouse2\lib\RenderSystem\camera.h(25): message : see declaration of 'lighthouse2::Camera'
5>Done building project "pbrtdemoapp.vcxproj" -- FAILED.

@EStormLynn
Copy link

EStormLynn commented Apr 19, 2020

change code use camera transform.
float3 camPos = renderer->GetCamera()->transform.GetTranslation();;
float3 camDir = renderer->GetCamera()->transform.GetForward();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants