[osg-users] EXTERNAL: Re: Value of a variable in shaders?

Rowley, Marlin R marlin.r.rowley at lmco.com
Fri Sep 28 06:42:34 PDT 2018


Thanks, I'll look into that.

----------------------------------------
Marlin Rowley
Software Engineer, Staff

Missiles and Fire Control
972-603-1931 (office)
214-926-0622 (mobile)
marlin.r.rowley at lmco.com

-----Original Message-----
From: Sebastian Messerschmidt <sebastian.messerschmidt at gmx.de> 
Sent: Friday, September 28, 2018 2:00 AM
To: OpenSceneGraph Users <osg-users at lists.openscenegraph.org>; Rowley, Marlin R (US) <marlin.r.rowley at lmco.com>
Subject: EXTERNAL: Re: [osg-users] Value of a variable in shaders?

Hi,

Usually you can use the output-colors in case of a fragment shader to inspect the values per fragment. Rendering to a texture and inspecting the values in the image is also an option.

Another approach to display incoming/per state values is this nifty shader:

http://mew.cx/drawtext/drawtext.html

Appart from this, in case you're using a modern Nvidia-GPU and
Visual-Studio:

https://developer.nvidia.com/nsight-visual-studio-edition

Cheers
Sebastian



Am 27.09.2018 um 20:14 schrieb Rowley, Marlin R:
> All,
> 
> Is there a way to examine variable values in shader code? I cant 
> figure out this problem that we are having unless I can see the values 
> in the shaders.
> 
> Any help would be appreciated
> 
> ----------------------------------------
> 
> Marlin Rowley
> 
> Software Engineer, Staff
> 
> cid:image002.jpg at 01D39374.DEC5A2E0
> 
> /Missiles and Fire Control/
> 
> 972-603-1931 (office)
> 
> 214-926-0622 (mobile)
> 
> marlin.r.rowley at lmco.com <mailto: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
> 


More information about the osg-users mailing list