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

Offline mi0027mu-s

  • Newbie
  • *
  • Posts: 9
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #15 on: 2019-09-10 22:09:06 »
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.

So the CMake GUI part isn't necessary? I tried without it but also got an error, but then that error probably has the solution you described. It is not super clear in the pdf that you don't need to do that step since one of the steps has "Visual Studio" as a choice. Anyway, that part is resolved now.

Offline Pierre Moreau

  • Full Member
  • ***
  • Posts: 214
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #16 on: 2019-09-10 22:16:09 »
Yeah, what's weirder is that I've tried 2 different driver versions. Both are the same.

I tried on my NVIDIA GeForce 1080 Ti (though on Linux), and didn’t get any issues there nor anything the driver was complaining about.

So the CMake GUI part isn't necessary? I tried without it but also got an error, but then that error probably has the solution you described. It is not super clear in the pdf that you don't need to do that step since one of the steps has "Visual Studio" as a choice. Anyway, that part is resolved now.

No it isn’t necessary: you either follow Section 1.1 or 1.2, but not both. Both approaches mention Visual Studio as a) 1.2 is the only way if you are using Visual Studio 2015 or earlier, and b) both approach work perfectly fine with Visual Studio 2019 (and probably 2017 too).
I’ll change the wording in the PDF to make it clearer.

Offline mi0027mu-s

  • Newbie
  • *
  • Posts: 9
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #17 on: 2019-09-10 22:34:45 »
I uninstalled my NVIDIA drivers completely so only my built in Intel GPU could have been used. The error still exists which is super weird. Something else must be going on. I'm going to try pulling it from the repo again.

Offline mi0027mu-s

  • Newbie
  • *
  • Posts: 9
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #18 on: 2019-09-10 23:30:33 »
Ok, I solved it. I forced it in NVIDIA control panel to use the NVIDIA graphics card instead of my integrated and it now renders the background. For some reason, VS used my integrated graphics card.

Offline Pierre Moreau

  • Full Member
  • ***
  • Posts: 214
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #19 on: 2019-09-11 08:11:35 »
The assignment notes have been updated to be clearer that only one of the two setups should be followed, and talked about selecting the startup project.

Ok, I solved it. I forced it in NVIDIA control panel to use the NVIDIA graphics card instead of my integrated and it now renders the background. For some reason, VS used my integrated graphics card.

Ah, good find! You can configure it to use the discrete GPU, from the CMake project as well; I can show it to you during the labs or the seminar.

Offline elt13oo1

  • Newbie
  • *
  • Posts: 1
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #20 on: 2019-09-11 12:36:26 »
Hello

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

best regards,
Faraz

Hi

I'm looking for a partner, want to work together?

Regards
Ola

Offline Pierre Moreau

  • Full Member
  • ***
  • Posts: 214
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #21 on: 2019-09-13 14:52:18 »
The updated notes for assignment 1 are now available online: http://fileadmin.cs.lth.se/cs/Education/EDA221/assignments/Assignment1_SolarSystem_new.pdf.
From the webpage, you can find them under the name “Assignment1 (new)”, with the previous version still available under “Assignment1 (old)”.

If you have already started (or even finished) assignment 1 using the old instructions, you don’t need to worry and can still pass the lab.

The main modification was to make use of the CelestialBody class in assignment 1, to make it easier for you, but the end result and the concepts used during the lab, are the same as in the previous version.

Offline bbh13gst

  • Newbie
  • *
  • Posts: 2
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #22 on: 2019-09-14 15:41:39 »
In assignment 1: 1.3.b (Create a translation matrix) you're suppose to make a translation matrix, but I can't really figure out of what. Is I understand it you want the parent transformation of the object of which we will be orbiting. So shouldn't it just be the parent_transform that the Render() function takes in?

EDIT:
Also in 1.3.h (Check that the code works appropriately, by calling this function with the  following  values:{(0, 1, 0), glm::radians(90.0f), 2.0f,0.0f}), which function is it referring to, Render(), SetOrbit()?
« Last Edit: 2019-09-14 15:45:59 by bbh13gst »

Offline Pierre Moreau

  • Full Member
  • ***
  • Posts: 214
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #23 on: 2019-09-17 09:39:05 »
In assignment 1: 1.3.b (Create a translation matrix) you're suppose to make a translation matrix, but I can't really figure out of what. Is I understand it you want the parent transformation of the object of which we will be orbiting. So shouldn't it just be the parent_transform that the Render() function takes in?
I updated the notes to be clearer; it’s the translation matrix that moves the celestial body onto its orbit, so a translation of `_orbit_radius` along the x-axis (z-axis would work too).

Also in 1.3.h (Check that the code works appropriately, by calling this function with the  following  values:{(0, 1, 0), glm::radians(90.0f), 2.0f,0.0f}), which function is it referring to, Render(), SetOrbit()?
Made it explicit in the notes, it is referring to `CelestialBody::set_orbit()` (and the first parameter should have been an angle rather than a vector, this has also been fixed).

Offline Robertled

  • Newbie
  • *
  • Posts: 2
  • Gender: Male
    • Hello
EDAF80 Computer Graphics 2019 HT1
« Reply #24 on: 2019-09-19 12:53:01 »
I know about computer programming, but Im not expert in math.

I know Computer Graphics is all based on math knowledge.

Please, could someone tell me which theorical math should I study to be able to make something like that?

I will appreciate a lot any help.

Thanks in advance.

Offline Pierre Moreau

  • Full Member
  • ***
  • Posts: 214
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #25 on: 2019-09-19 13:09:35 »
One thing I forgot to mention yesterday during the seminar: if you are having difficulties with C++, send me an email or private message on the forum, and I’ll setup some time to go over those issues in small groups (or individually). (Could be at the end of a seminar, since they don’t last 2 hours, or some other time.)

Please, could someone tell me which theorical math should I study to be able to make something like that?
That would be basic trigonometry and linear algebra mostly: so what are matrices, vectors, how do you multiply them together, etc.

Offline mi0027mu-s

  • Newbie
  • *
  • Posts: 9
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #26 on: 2019-10-05 19:27:33 »
I'd like to recommend this website for high-resolution cubemaps http://www.humus.name/index.php?page=Textures&start=0
You need to flip each image on the y-axis in an image editor and then switch names of negx.jpg and posx.jpg to get them to look right from the inside of the cube/sphere.

2048 x 2048 px images. A bit higher than the 256 x 256 ones that were provided.

Offline MikeD

  • Full Member
  • ***
  • Posts: 213
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #27 on: 2019-10-07 02:08:35 »
I'd like to recommend this website for high-resolution cubemaps http://www.humus.name/index.php?page=Textures&start=0
You need to flip each image on the y-axis in an image editor and then switch names of negx.jpg and posx.jpg to get them to look right from the inside of the cube/sphere.

2048 x 2048 px images. A bit higher than the 256 x 256 ones that were provided.

Nice find!

Offline Pierre Moreau

  • Full Member
  • ***
  • Posts: 214
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #28 on: 2019-10-13 21:29:54 »
There will be two extra lab sessions in week 8, taking place on Thursday 24th from 10–12 and 13–15.

Offline Pierre Moreau

  • Full Member
  • ***
  • Posts: 214
Re: EDAF80 - Computer Graphics 2019 HT1
« Reply #29 on: Yesterday at 17:46:01 »
There will be two extra lab sessions in week 8, taking place on Thursday 24th from 10–12 and 13–15.
They will take place in E:Uranus, as usual; the two sessions can now be found in TimeEdit.