VideoGL

Post Reply
TommyX
Posts: 2
Joined: Fri Sep 24, 2010 3:14 pm

VideoGL

Post by TommyX » Fri Sep 24, 2010 3:22 pm

Hi,

i started with OpenGL on PC using opentk. And it went well.

Now trying to do something on DS, is making me crazy!

How I get GL_FOG and GL_BLEND to work?

glEnable(GL_BLEND) / glEnable(GL_FOG) is doing nothing.

I thought its like on openTk .. just enable and lets go.
But nothing is happening.
Also some other features arent working like i was used to in openTK.

can anybody help?

Thank U ,

Thomas

elhobbs
Posts: 358
Joined: Thu Jul 02, 2009 1:19 pm

Re: VideoGL

Post by elhobbs » Fri Sep 24, 2010 5:24 pm

the ds does not support opengl. there is a pseudo gl-ish interface in libnds. the only demo I am aware of that touches on ds fog is the Volumetric Shadow Demo. you can find it if you search http://forum.gbadev.org/

ShotgunNinja
Posts: 34
Joined: Tue May 11, 2010 2:29 am

Re: VideoGL

Post by ShotgunNinja » Sat Sep 25, 2010 7:50 pm

There's been an update, which includes the addition of glFog().

Announcement thread for the update (from 9/22/2010):
http://devkitpro.org/viewtopic.php?f=13&t=2222

zeromus
Posts: 212
Joined: Wed Mar 31, 2010 6:05 pm

Re: VideoGL

Post by zeromus » Sun Sep 26, 2010 9:28 am

TommyX wrote:Hi,
I thought its like on openTk .. just enable and lets go.
But nothing is happening.
Also some other features arent working like i was used to in openTK.
Unreasonable expectation. Things arent the same as openTK. They are merely similar, to make you comfortable. There is no guarantee that anything will work exactly like you're used to, and in fact, it probably won't.

In this case, you have to configure a number of other parameters to make fog work. And, enabling GL_BLEND does nothing unless youve actually rendered something translucent, which you didnt tell us about--and thats got to be the case in openTK as well, so I am skeptical as to your overall comprehension of what youre doing.

TommyX
Posts: 2
Joined: Fri Sep 24, 2010 3:14 pm

Re: VideoGL

Post by TommyX » Mon Sep 27, 2010 9:19 am

hmm i just started to do something on the DS. I know that the openGL for the DS is made just to make it comfortable
to make 3d graphics. So in opentk i loaded a models or even draw a simple cube.. and by simply enabling the GL_BLEND
with glEnable() -> it went translucent. Maybe transparency is only available for sprites. I don´t know.. like is said i´m new
at this..

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests