Author Topic: EDAF80 - Computer Graphics 2019 HT1  (Read 4449 times)

Offline MikeD

  • Full Member
  • ***
  • Posts: 213
EDAF80 - Computer Graphics 2019 HT1
« on: 2019-08-11 01:07:38 »
Welcome to the Computer graphics: Introduction to 3D discussion forum!  :)

Here you may ask questions about the labs or other issues. Teachers/assistants will be present here, but students are highly encouraged to participate.

Course-related announcements might pop up here as well, so make sure to stop by on a regular basis.

Editions from previous years (lots of useful stuff):
2018 forum: http://forum.student.lth.se/index.php/topic,13722.0.html
2017 forum: http://forum.student.lth.se/index.php/topic,13105.0.html
2016 forum: http://forum.student.lth.se/index.php/topic,12059.0.html
2015 forum: http://forum.student.lth.se/index.php/topic,12020.0.html
2014 forum: http://forum.student.lth.se/index.php/topic,11802.0.html
2013 forum: http://forum.student.lth.se/index.php/topic,1105.0.html
2012 forum: http://forum.student.lth.se/index.php/topic,1057.0.html
2011 forum: http://forum.student.lth.se/index.php/topic,999.0.html
2010 forum: http://forum.student.lth.se/index.php/topic,929.0.html

Offline elt15jkr

  • Newbie
  • *
  • Posts: 1
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #1 on: 2019-09-03 09:59:22 »
Hi,
I am looking for a lab partner. Is there somebody else who needs a partner?

All best,
Jonatan

Offline bbh13gst

  • Newbie
  • *
  • Posts: 3
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #2 on: 2019-09-04 16:51:06 »
I get an error when I try to get VS17 to run the CMake from the folder. It gives me this error message:

Severity   Code   Description   Project   File   Line   Suppression State
Error      CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Git (missing: GIT_EXECUTABLE)      C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake   137   


I have even installed the git extention on VS17 but to no avail.

Offline ax3557de-s

  • Newbie
  • *
  • Posts: 2
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #3 on: 2019-09-04 23:29:10 »
Hi,
I am looking for a lab partner. Is there somebody else who needs a partner?

All best,
Jonatan

Hi,
I am also looking for a lab partner. Have you found someone yet?

/Axel

Offline Pierre Moreau

  • Full Member
  • ***
  • Posts: 217
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #4 on: 2019-09-05 12:23:51 »
I get an error when I try to get VS17 to run the CMake from the folder. It gives me this error message:

Severity   Code   Description   Project   File   Line   Suppression State
Error      CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Git (missing: GIT_EXECUTABLE)      C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake   137   


I have even installed the git extention on VS17 but to no avail.

I tried it on my computer and found the problem: the Git client that Visual Studio comes with (from 2013 and on), is blacklisted by the CMake shipping with Visual Studio because this "minimal git [is] not meant for general use.".
You could unblacklist it by modifying the corresponding CMake file, but you are probably better off installing Git from https://git-scm.com/.

Offline Pierre Moreau

  • Full Member
  • ***
  • Posts: 217
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #5 on: 2019-09-07 21:46:40 »
A few bits of information:
  • If I remember correctly, posting on this thread does not automatically subscribe you to it, so please think of pressing the “Notify” button to get notified whenever a new message is posted.
  • Visual Studio 2019 has finally been installed on the computers in Uranus (probably in Elgkalv too, but I haven’t checked yet) on Wednesday, so feel free to start using those.
  • Improvements for this year were merged yesterday into the master branch on GitHub.
  • The notes for assignment 0 can now be found on the website, along with the other assignments.

Have a good weekend!

Offline fa8540az-s

  • Newbie
  • *
  • Posts: 1
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #6 on: 2019-09-09 15:12:08 »
Hello

I don't have a lab partner yet, anyone else who still needs one?

best regards,
Faraz

Offline mi0027mu-s

  • Newbie
  • *
  • Posts: 11
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #7 on: 2019-09-10 19:08:43 »
Hi, I've followed the instructions to the letter many times. It worked on one computer in school, but the same thing done on my login didn't work. We did the exact same thing on two different logins. It gives off an error after importing from Git.

Anyway, when I try it on my computer everything is imported form git, cmake runs, it compiles and builds perfectly. I just can't run the project. I get error messages like these (left first, then right):

I have tried Visual Studio 2019 community version and the enterprise version, even the preview build of VS.

Offline mi0027mu-s

  • Newbie
  • *
  • Posts: 11
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #8 on: 2019-09-10 19:56:33 »
I tried it on my other computer with VS 2019 and get this error when I try to run it now...

Offline mi0027mu-s

  • Newbie
  • *
  • Posts: 11
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #9 on: 2019-09-10 21:27:40 »
Ok so I solved it myself. VS tried to run the ALL_BUILD project. I set the startup project as assignment 1. It now works perfectly on one of my computers but my newest computer gets a weird error. It looks like it doesn't render the background. I have NOT changed the code. It is the original code and I only run assignment 1. The same code works on my other computer. I have tried installing the new graphics drivers. I have NVIDIA Geforce GTX 1060.

Offline Pierre Moreau

  • Full Member
  • ***
  • Posts: 217
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #10 on: 2019-09-10 21:41:00 »
I tried it on my other computer with VS 2019 and get this error when I try to run it now...

It’s the same problem as in your previous post; I forgot to mention that after building everything, you need to select which program to run. You can do that from the dropdown near the x64-release/x64-debug dropdown (I don’t have a Visual Studio at hand to post a screenshot); use the EDAF80_Assignment1 entry for assignment 0 and 1, the “src” one rather than the “install” one.

Sorry about forgetting that step; I’ll add it in tomorrow.

Offline Pierre Moreau

  • Full Member
  • ***
  • Posts: 217
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #11 on: 2019-09-10 21:45:24 »
It looks like it doesn't render the background. I have NOT changed the code. It is the original code and I only run assignment 1. The same code works on my other computer. I have tried installing the new graphics drivers. I have NVIDIA Geforce GTX 1060.

Okay, that is very weird! I will double-check the OpenGL Specification, but I am assuming it’s a driver bug cause all we are doing is clearing the whole framebuffer, and then drawing the Sun on top of it, and the clearing part is pretty straight forward.

Offline mi0027mu-s

  • Newbie
  • *
  • Posts: 11
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #12 on: 2019-09-10 21:58:10 »
I tried it on my other computer with VS 2019 and get this error when I try to run it now...

I forgot to mention that after building everything, you need to select which program to run. You can do that from the dropdown near the x64-release/x64-debug dropdown

I thought about that but it doesn't show up in any dropdown menu. it looks like this:

The only way I could find to run assignment 1 was to select it as "Set as startup project".

Offline Pierre Moreau

  • Full Member
  • ***
  • Posts: 217
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #13 on: 2019-09-10 22:03:38 »
I thought about that but it doesn't show up in any dropdown menu. it looks like this:

The only way I could find to run assignment 1 was to select it as "Set as startup project".

Oh, I guess you ran CMake manually and opened the generated project in Visual Studio, then? In that case, yes, you need to use the “Set as startup project” option.

Offline mi0027mu-s

  • Newbie
  • *
  • Posts: 11
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #14 on: 2019-09-10 22:04:30 »
It looks like it doesn't render the background. I have NOT changed the code. It is the original code and I only run assignment 1. The same code works on my other computer. I have tried installing the new graphics drivers. I have NVIDIA Geforce GTX 1060.

Okay, that is very weird! I will double-check the OpenGL Specification, but I am assuming it’s a driver bug cause all we are doing is clearing the whole framebuffer, and then drawing the Sun on top of it, and the clearing part is pretty straight forward.

Yeah, what's weirder is that I've tried 2 different driver versions. Both are the same.

 

joke