Thread Subject: openGL wont render

Subject: openGL wont render

From: phil

Date: 23 Apr, 2009 01:46:01

Message: 1 of 3

I have Matlab7R14 (for Linux) and I am trying to write an animation S-function and am using the aero_guidance demo animation S-function to get started.

Everything is working, but I want to include transparency and make the animation more efficient. When I try to change from zbuffer renderer to openGL, the animation is lost completely but no error is thrown.
 
I am not using Phong lighting, and I have tried to search for a similar problem but with no success. Has anybody else seen this? If so, apologies for a redundant post, but if not I welcome any helpful advice.

Subject: openGL wont render

From: Chaos

Date: 23 Apr, 2009 18:13:01

Message: 2 of 3

"phil " <prosteenNOSPAM@gmail.com> wrote in message <gsoh8p$mhk$1@fred.mathworks.com>...
> I have Matlab7R14 (for Linux) and I am trying to write an animation S-function and am using the aero_guidance demo animation S-function to get started.
>
> Everything is working, but I want to include transparency and make the animation more efficient. When I try to change from zbuffer renderer to openGL, the animation is lost completely but no error is thrown.
>
> I am not using Phong lighting, and I have tried to search for a similar problem but with no success. Has anybody else seen this? If so, apologies for a redundant post, but if not I welcome any helpful advice.

search the newsgroup, there are plenty of people reporting bugs and bombs with the OpenGL implementation, i've numerous bugs. i posted a kluge of how i got opengl to work.

Subject: openGL wont render

From: phil

Date: 27 Apr, 2009 16:22:02

Message: 3 of 3

Thanks for the response Chaos. I just now found the offending line of code, although I don't see how it really makes a difference.

I had specified a fixed camera location, with the projection set to perspective mode, so I thought the problem was that the animation was hidden from the projection view... but that doesn't make sense since it works perfectly well with zbuffer. The exclusion of the camera location fixed the problem though.

I did see your kluge, which is hilarious and awesome, and in the process of debugging this problem I encountered and fixed another issue with openGL and the Virtual Reality toolbox.

I guess my question here is: How the hell have so many bugs slipped through the cracks, especially for the most effecient renderer available?

You would think that, especially for Matlab, openGL would have the highest priority as a renderer, and that it would have the fewest bugs, not the most.

Cheers
-Phil

"Chaos" <rothko.fan@gmail.com> wrote in message <gsqb3d$lfp$1@fred.mathworks.com>...
> "phil " <prosteenNOSPAM@gmail.com> wrote in message <gsoh8p$mhk$1@fred.mathworks.com>...
> > I have Matlab7R14 (for Linux) and I am trying to write an animation S-function and am using the aero_guidance demo animation S-function to get started.
> >
> > Everything is working, but I want to include transparency and make the animation more efficient. When I try to change from zbuffer renderer to openGL, the animation is lost completely but no error is thrown.
> >
> > I am not using Phong lighting, and I have tried to search for a similar problem but with no success. Has anybody else seen this? If so, apologies for a redundant post, but if not I welcome any helpful advice.
>
> search the newsgroup, there are plenty of people reporting bugs and bombs with the OpenGL implementation, i've numerous bugs. i posted a kluge of how i got opengl to work.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
opengl phil 22 Apr, 2009 21:50:19
animation phil 22 Apr, 2009 21:50:19
rssFeed for this Thread

Contact us at files@mathworks.com