Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > Re: Picture wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 4882 of 5041
Post > Topic >>

Re: Picture within a picture effect

by Wolfgang Draxinger <wdraxinger@[EMAIL PROTECTED] > Aug 23, 2008 at 01:08 PM

fungus wrote:

> On Aug 22, 8:30=C2=A0pm, Flark <flark...@[EMAIL PROTECTED]
> wrote:
>> Hi,
>>
>> Suppose I want to show a model twice, but I want
>> the 2nd view of it to be in a smaller window tucked into
>> the corner of the main OpenGL window
>>
>> Is there a standard way to achieve this?
>=20
> It's tricky - OpenGL can zoom images but I don't think
> you can shrink them. Hardware to shrink images would
> be quite complicated.

I beg to differ. The filtering function required for shrinking
can be described in terms of a convolution. And convolutions can
be implemented quite efficiently using shaders. Once filtered
you just have to subsample.

> You could render it to a texture and draw quads for each
> size but the small image would only have GL_NEAREST
> filtering and would probably look horrible (though full screen
> antialiasing would help with this).

You can also do GL_LINEAR minification filtering w/o having
mipmaps. Although aliasing/moire artifacts may appear.
=20
> There's an extension to generate mipmaps for a texture
> in hardware but it won't work for non-power-of-two textures
> and I'm not sure that many cards sup****t it anyway.
>=20
> http://www.opengl.org/registry/specs/SGIS/generate_mipmap.txt

The extension has been around for some time and even my good old
GeForce2 can do it. It's no suprise though: You need
generate_mipmap for all kinds of render to texture stuff,
otherwise things would look horrible.

> PS: What happened to www.delphi3d.net ? I used to use
> it all the time to check which cards sup****ted OpenGL
> extensions but it's been broken for months.
>=20
> Are there any other web sites with lists of cards/extensions?

Not that I'm aware of, but I could start such a database, if
there's a wide interest.

Wolfgang Draxinger
--=20
E-Mail address works, Jabber: hexarith@[EMAIL PROTECTED]
 ICQ: 134682867
 




 4 Posts in Topic:
Picture within a picture effect
Flark <flarkino@[EMAIL  2008-08-22 11:30:03 
Re: Picture within a picture effect
fungus <openglMYSOCKS@  2008-08-22 21:02:20 
Re: Picture within a picture effect
Wolfgang Draxinger <wd  2008-08-23 13:08:16 
Re: Picture within a picture effect
fungus <openglMYSOCKS@  2008-08-23 13:55:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 23:53:45 CST 2008.