Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Print variables from shader  (Read 1037 times)
0 Members and 1 Guest are viewing this topic.
Offline 4fingers

JGO n00b
*

Posts: 8



« on: 2007-11-06 17:59:04 »

Hi,
I was just wandering if it is possible to display a variable defined in a vertex or fragment shader and display it in the console like you would do in Java using System.out.
Just that I am finding it hard to debug shaders when I currently cant see what some of the variables are set to.

Thanks
Offline Chris61182

Full Member
**

Posts: 168



« Reply #1 on: 2007-11-06 18:19:25 »

Hi,
I was just wandering if it is possible to display a variable defined in a vertex or fragment shader and display it in the console like you would do in Java using System.out.
Just that I am finding it hard to debug shaders when I currently cant see what some of the variables are set to.

Thanks

The short answer is no, there's no way to print out variables.

That's not to say that others haven't developed tools to aid this process... I haven't used it but I've seen it linked from opengl.org http://www.vis.uni-stuttgart.de/glsldevil/
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.076 seconds with 21 queries.