Re: [osg-users] Limit rendering a texture up to a given pixel

2017-06-29 Thread Christian Buchner
A uniform specific to each tile that defines the dimensions for the valid
part of the tile? The shader would get the gl_FragCoord, compare it against
the threshold and return a transparent color for pixels outside the valid
bounds.

Christian


2017-06-29 11:28 GMT+02:00 Bruno Oliveira :

> Hello,
>
>
> I have a big image to be rendered (100k pixels each side), hence I am
> partitioning that image in Image Tiles.
>
> Each tile has 256 x 256 pixels. Each tile consists of a osg::Geometry
> quad, with a texture bound to it. I put all those tiles in an osg::Group.
> I use a fragment shader that is global to all tiles (I apply it to the
> osg::Group's StateSet). It is a very simple shader and consists only of a
> texture lookup in each tile:
>
> gl_FragColor = texture2D(texture, vec2(x, y));
>
> The problem now is that in the image limits, some extra pixels are
> rendered (because my images' size is not multiple of 256). For instance, if
> my image size is 1000 pixels in x, the last 24 pixels are not valid and
> shall be transparent (because it will have 4 tiles = 256 * 4 pixels =
> 1024). The last tile should only be rendered up to the pixel 232 ( 256 - 24
> = 232)
>
> What is the best way of limiting my rendering up to that pixel, WITHOUT
> defining a new shader for EVERY tile? ( I really want a single fragment
> shader bound to the whole group for performance reasons)
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG forum error: phpBB : Critical Error - Could not connect to the database

2017-06-29 Thread Chris Hanson
If Art can't be found, AlphaPixel could take over hosting. But we'd
presumably need Art's assistance to get the web media and database copied
to our server, which makes it sort of a chicken and egg problem. :(

On Thu, Jun 29, 2017 at 9:22 AM, Sebastian Messerschmidt <
sebastian.messerschm...@gmx.de> wrote:

> Hi Glenn,
>
> We are aware the forum is down. We're still waiting for some contact with
> Art Tevs.
>
> Cheers
> Sebastian > Greetings!
>
>> Subject OSG forum error:
>> Got message:
>>
>> phpBB : Critical Error
>>
>> Could not connect to the database
>>
>> That is all!
>>
>> David Glenn
>> Senior Graphics Software Engineer
>> TARIF Lab!
>> david.e.glenn@navy.mil
>> 760-939-3291
>>
>>
>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Code Forensics • Digital Imaging • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG forum error: phpBB : Critical Error - Could not connect to the database

2017-06-29 Thread Sebastian Messerschmidt

Hi Glenn,

We are aware the forum is down. We're still waiting for some contact 
with Art Tevs.


Cheers
Sebastian > Greetings!

Subject OSG forum error:
Got message:

phpBB : Critical Error

Could not connect to the database

That is all!

David Glenn
Senior Graphics Software Engineer
TARIF Lab!
david.e.glenn@navy.mil
760-939-3291



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] OSG forum error: phpBB : Critical Error - Could not connect to the database

2017-06-29 Thread Glenn, David E CTR NAVAIR, 535100D
Greetings!
Subject OSG forum error:
Got message:

phpBB : Critical Error

Could not connect to the database

That is all!

David Glenn
Senior Graphics Software Engineer
TARIF Lab!
david.e.glenn@navy.mil
760-939-3291



smime.p7s
Description: S/MIME cryptographic signature
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Limit rendering a texture up to a given pixel

2017-06-29 Thread Bruno Oliveira
Hello,


I have a big image to be rendered (100k pixels each side), hence I am
partitioning that image in Image Tiles.

Each tile has 256 x 256 pixels. Each tile consists of a osg::Geometry quad,
with a texture bound to it. I put all those tiles in an osg::Group.
I use a fragment shader that is global to all tiles (I apply it to the
osg::Group's StateSet). It is a very simple shader and consists only of a
texture lookup in each tile:

gl_FragColor = texture2D(texture, vec2(x, y));

The problem now is that in the image limits, some extra pixels are rendered
(because my images' size is not multiple of 256). For instance, if my image
size is 1000 pixels in x, the last 24 pixels are not valid and shall be
transparent (because it will have 4 tiles = 256 * 4 pixels = 1024). The
last tile should only be rendered up to the pixel 232 ( 256 - 24 = 232)

What is the best way of limiting my rendering up to that pixel, WITHOUT
defining a new shader for EVERY tile? ( I really want a single fragment
shader bound to the whole group for performance reasons)
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org