I think Paul Martz did already.

http://thread.gmane.org/gmane.comp.graphics.openscenegraph.cvs/9237/focus=9304

jp

On 29/09/2011 13:46, Per Nordqvist wrote:
I also struggled with this issue once and I believe osgspotlight suffers
from exactly the same "quadrant defect" if you look closely.
Would be really nice if somebody submitted a fix.

/Per

On 29 September 2011 01:59, Brad Colbert <bcolb...@rscusa.com
<mailto:bcolb...@rscusa.com>> wrote:

    Glenn,____

    __ __

    Bingo!  That was it.  I wasn’t quite sure that would work with
    TexGen but there you go!____

    __ __

    Thanks!____

    __ __

    ____

    __ __

    -B____

    __ __

    *From:*osg-users-boun...@lists.openscenegraph.org
    <mailto:osg-users-boun...@lists.openscenegraph.org>
    [mailto:osg-users-boun...@lists.openscenegraph.org
    <mailto:osg-users-boun...@lists.openscenegraph.org>] *On Behalf Of
    *Glenn Waldron
    *Sent:* Wednesday, September 28, 2011 4:40 PM


    *To:* OpenSceneGraph Users
    *Subject:* Re: [osg-users] GLSL shaders and projective texturing____

    __ __

    Brad,____

    I once had the same issue; calcuating my texgen matrix like this
    worked:____

    __ __

    texGenMat =____

         modelViewMat *____

         projectionMat *____

         osg::Matrix::translate(1, 1, 1) *____

         osg::Matrix::scale(0.5, 0.5, 0.5);____

    __ __


    Glenn Waldron / Pelican Mapping / @glennwaldron

    ____

    On Wed, Sep 28, 2011 at 7:34 PM, Brad Colbert <bcolb...@rscusa.com
    <mailto:bcolb...@rscusa.com>> wrote:____

    Hi Chris,

    Thanks!  I found that one too but it still doesn't help me figure
    out how to fix the coordinates so that my projected texture renders
    in the center of the projection frustum instead of the upper right
    quadrant.  It's strange and I can't figure it out.

    -B____



    -----Original Message-----
    From: osg-users-boun...@lists.openscenegraph.org
    <mailto:osg-users-boun...@lists.openscenegraph.org>
    [mailto:osg-users-boun...@lists.openscenegraph.org
    <mailto:osg-users-boun...@lists.openscenegraph.org>] On Behalf Of
    Chris 'Xenon' Hanson
    Sent: Wednesday, September 28, 2011 3:31 PM
    To: OpenSceneGraph Users
    Subject: Re: [osg-users] GLSL shaders and projective texturing____

    On 9/27/2011 7:21 PM, Brad Colbert wrote:
     > I am closer!

      Looks like the other example I have is FFP not GLSL. Here's a
    working GLSL
    implementation (not OSG) that should be relatively easy to feed with
    OSG uniforms and such:

    http://www.ozone3d.net/tutorials/glsl_texturing_p08.php#part_8

    --
    Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
    http://www.alphapixel.com/
      Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training.
    Consulting. Contracting.
    "There is no Truth. There is only Perception. To Perceive is to
    Exist." - Xen
    _______________________________________________
    osg-users mailing list
    osg-users@lists.openscenegraph.org
    <mailto:osg-users@lists.openscenegraph.org>
    http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
    _______________________________________________
    osg-users mailing list
    osg-users@lists.openscenegraph.org
    <mailto:osg-users@lists.openscenegraph.org>
    
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org____

    __ __


    _______________________________________________
    osg-users mailing list
    osg-users@lists.openscenegraph.org
    <mailto: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

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

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

Reply via email to