Correlation between OpenGL and KOS PVR?

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
epicasian
DCEmu Fast Newbie
DCEmu Fast Newbie
Posts: 23
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Fri Mar 26, 2010 8:34 pm
Location: WoFoCo, KY
Has thanked: 0
Been thanked: 0

Correlation between OpenGL and KOS PVR?

Post by epicasian »

My question is, would it be beneficial to learn OpenGL and firmly grasp the concepts before using the Dreamcast's PVR? I'm coming from SDL and would love to use PVR but I have no idea how to begin to use it correctly or efficiently.

Thanks in advance,
~Asian
Image
Image
User avatar
BB Hood
DC Developer
DC Developer
Posts: 189
Joined: Fri Mar 30, 2007 12:09 am
Has thanked: 41 times
Been thanked: 10 times

Re: Correlation between OpenGL and KOS PVR?

Post by BB Hood »

No, learn the Parallax library it is much easier to understand when you go through its source. Of course the PVR examples provided with KOS are also very good to learn from. There are also threads on this forums that are of some use also but you will have to find those(such as the palette thread by BlackAura). You could also look for open source projects that use the Dreamcast's PVR directly (DCMappy[doesn't deal with 3d stuff]). I converted some NeHe OpenGL Lessons into Parallax Lessons. It helps you learn how to do 3d stuff and if you understand how parallax works by looking at its source you should be able to do the same thing by using the PVR directly (always good to use a 3d library though). DCMappy and Parallax lessons can be found on this page: http://sourceforge.net/users/bbhoodsta under "My Projects".
User avatar
epicasian
DCEmu Fast Newbie
DCEmu Fast Newbie
Posts: 23
Joined: Fri Mar 26, 2010 8:34 pm
Location: WoFoCo, KY
Has thanked: 0
Been thanked: 0

Re: Correlation between OpenGL and KOS PVR?

Post by epicasian »

I forgot to mention I'm doing 2D, nowhere near 3D yet.
Image
Image
User avatar
BB Hood
DC Developer
DC Developer
Posts: 189
Joined: Fri Mar 30, 2007 12:09 am
Has thanked: 41 times
Been thanked: 10 times

Re: Correlation between OpenGL and KOS PVR?

Post by BB Hood »

http://dcemulation.org/?title=PowerVR_Introduction You can check out BlueCrab and BlackAura's tutorial on the PVR here: http://dcemulation.org/?title=PowerVR_Introduction
User avatar
epicasian
DCEmu Fast Newbie
DCEmu Fast Newbie
Posts: 23
Joined: Fri Mar 26, 2010 8:34 pm
Location: WoFoCo, KY
Has thanked: 0
Been thanked: 0

Re: Correlation between OpenGL and KOS PVR?

Post by epicasian »

What would be the advantage of using Parallax over Direct PVR?
Image
Image
User avatar
BB Hood
DC Developer
DC Developer
Posts: 189
Joined: Fri Mar 30, 2007 12:09 am
Has thanked: 41 times
Been thanked: 10 times

Re: Correlation between OpenGL and KOS PVR?

Post by BB Hood »

Parallax is just a wrapper around direct pvr functions. You can do without it but it is easier to use it if you're doing 3D stuff. Since you're not you can use direct pvr just fine. I also forgot to mention that the png example included with kos is also useful to teach you how to display images. Pay attention to the back_init(), draw_back(), and draw_frame() functions in that example.
Post Reply