Kore Mipmap and Graphics

PicoJr
Nichts ist wie es scheint
Beiträge: 23
Registriert: 28. Okt 2017 20:25

Kore Mipmap and Graphics

Beitrag von PicoJr » 21. Jan 2018 15:08

Hallo/Hello,

I have several questions regarding the Kore lib:

What does the numbering mean for Graphics(1,2,3,4,5) and Audio(1,2,3), is it an abstraction level?

Texture.h contains:

Code: Alles auswählen

void generateMipmaps(int levels);
void setMipmap(Texture* mipmap, int level);
What are those methods used for?
Could those methods have been used for Assignment 10 (Coarse Texture Streaming)?

Best regards,

PicoJr.

RobDangerous
Computerversteher
Computerversteher
Beiträge: 363
Registriert: 14. Okt 2014 17:05

Re: Kore Mipmap and Graphics

Beitrag von RobDangerous » 21. Jan 2018 15:17

Graphics(1,2,3,4,5) and Audio(1,2,3) target different hardware generations. We used Graphics1 and Graphics4 during the lecture. Graphics 1 just sets pixels directly so that basically goes back to how an Apple II worked. Graphics4 does shader based 3D graphics, Graphics5 requires manual CPU/GPU sync and so on, akin to Vulkan and Direct3D12. I will talk about the audio APIs next Tuesday.
We did talk about mipmaps in the lecture, I think during the third graphics lecture. You can look it up in the script or just google for mipmaps. They mostly help with cleaning up images which are reduced in size during rendering, so it wouldn't have helped with the core problem of exercise 10.

PicoJr
Nichts ist wie es scheint
Beiträge: 23
Registriert: 28. Okt 2017 20:25

Re: Kore Mipmap and Graphics

Beitrag von PicoJr » 21. Jan 2018 15:47

Hallo/Hello,

Thank you for your reply,

I know mipmapping was discussed during the lectures,
I was just wondering if the mimap mechanism could be used to efficiently switch between texture resolutions in Exercise 10.

We could load mimap texture once (+33% memory consumption), and avoid disk I/O and new/delete operations altogether?

Maybe I missed something obvious here...

As a side note: I don't really understand what improvement we achieved with coarse texture streaming in Exercise 10.

Best regards,

PicoJr.

RobDangerous
Computerversteher
Computerversteher
Beiträge: 363
Registriert: 14. Okt 2014 17:05

Re: Kore Mipmap and Graphics

Beitrag von RobDangerous » 21. Jan 2018 16:09

Ex 10 was about minimizing memory basically (see the comments in the code). Using mipmaps increases memory usage.

PicoJr
Nichts ist wie es scheint
Beiträge: 23
Registriert: 28. Okt 2017 20:25

Re: Kore Mipmap and Graphics

Beitrag von PicoJr » 21. Jan 2018 19:29

Hallo/Hello,

Thank you for your reply,

Best regards,

PicoJr.

Antworten

Zurück zu „Archiv“