[osg-users] EXTERNAL: Re: EXTERNAL: Re: Texture unit not turning ON

Chris Hanson xenon at alphapixel.com
Thu Mar 14 14:34:12 PDT 2019


Glad you got it working!

On Thu, Mar 14, 2019 at 5:55 PM Rowley, Marlin R <marlin.r.rowley at lmco.com>
wrote:

> Hello,
>
>
>
> Just wanted to say I solved this problem.  The projection was working, but
> it was using the texture coordinates from unit 0 which was the entire
> globe.. so the texture was stretched to a solid color.  After I corrected
> this to use the projection texture coordinates, all is working now.
>
>
>
> ----------------------------------------
>
> Marlin Rowley
>
> Software Engineer, Staff
>
> [image: cid:image002.jpg at 01D39374.DEC5A2E0]
>
> *Missiles and Fire Control*
>
> 972-603-1931 (office)
>
> 214-926-0622 (mobile)
>
> marlin.r.rowley at lmco.com
>
>
>
> *From:* osg-users <osg-users-bounces at lists.openscenegraph.org> *On Behalf
> Of *Rowley, Marlin R (US)
> *Sent:* Thursday, March 14, 2019 9:05 AM
> *To:* OpenSceneGraph Users <osg-users at lists.openscenegraph.org>
> *Subject:* EXTERNAL: Re: [osg-users] EXTERNAL: Re: Texture unit not
> turning ON
>
>
>
> I tried osg::StateAttribute::PROTECTED | osg::StateAttribute::ON.  I’m
> going to search our entire solution and look for any calls that might be
> turning it off.  Is there a way to trace and output the scene graph
> traversal?
>
>
>
> ----------------------------------------
>
> Marlin Rowley
>
> Software Engineer, Staff
>
> [image: cid:image002.jpg at 01D39374.DEC5A2E0]
>
> *Missiles and Fire Control*
>
> 972-603-1931 (office)
>
> 214-926-0622 (mobile)
>
> marlin.r.rowley at lmco.com
>
>
>
> *From:* osg-users <osg-users-bounces at lists.openscenegraph.org> *On Behalf
> Of *Chris Hanson
> *Sent:* Wednesday, March 13, 2019 5:34 PM
> *To:* OpenSceneGraph Users <osg-users at lists.openscenegraph.org>
> *Subject:* EXTERNAL: Re: [osg-users] Texture unit not turning ON
>
>
>
> Could there be a State OVERRIDE above it in the graph shutting it
> down? Try adding the  osg::StateAttribute::PROTECTED as well as ON and see
> if it changes.
>
>
>
> On Wed, Mar 13, 2019 at 6:36 PM Rowley, Marlin R <marlin.r.rowley at lmco.com>
> wrote:
>
> Hello,
>
>
>
> I am running across a problem that I am trying to figure out.
>
>
>
>
>
>
>
> I have some code where it takes a texture2d pointer and sets the texture
> mode and turns the texture to ON.  However, I’m not seeing this in the
> debugger.  It appears to be set to GL_FALSE and I’m pretty sure that’s why
> I’m not seeing my texture.  Am I missing something?
>
>
>
> -M
>
> ----------------------------------------
>
> Marlin Rowley
>
> Software Engineer, Staff
>
> [image: cid:image002.jpg at 01D39374.DEC5A2E0]
>
> *Missiles and Fire Control*
>
> 972-603-1931 (office)
>
> 214-926-0622 (mobile)
>
> marlin.r.rowley at lmco.com
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
>
> --
>
> Chris 'Xenon' Hanson, omo sanza lettere. Xenon at 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 • Forensics • Imaging • UAVs • GIS • GPS •
> osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
> iPhone/iPad/iOS • Android
>
> @alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
> 623-PIXL [7495]
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. Xenon at 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 • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190314/1a0ad5e4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3114 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190314/1a0ad5e4/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 148780 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190314/1a0ad5e4/attachment-0003.jpg>


More information about the osg-users mailing list