WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-10-2012, 06:46 PM
shivanangel shivanangel is offline
Member
 
Join Date: Feb 2006
Location: New Jersey
Posts: 182
Smile Vizard and GLSL Compatibility Profile

Hello Worldviz,

I have what I hope to be a simple question.

In the past, I wrote shaders inside of Vizard using the now compatibility-profile enabled built-in types such as gl_Vertex, gl_Normal, gl_Color.

As I've been reading about GLSL post version 1.30.10 (where I believe most of the stuff I've used inside of Vizard was deprecated) I was wondering how exactly I know what inputs Vizard is feeding into my shader?

Are you utilizing a compatibility mode (since my old shaders seem to work just fine) and would you recommend working this way?

Your help file list the uniforms available with Vizard, but they are mainly bits from OSG and nothing that directly ties into the inputs that would be for the matrices, vertices, etc...

Thanks,
George Lecakes
Reply With Quote
  #2  
Old 04-16-2012, 10:48 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Vizard creates an OpenGL 2.x compatible context. From my understanding, the deprecated built-in uniforms (gl_Vertex, gl_Normal, ...) should still be available to shaders under this context. If your old shaders work fine, then I would recommend to continue using those uniforms. Are you experiencing any specific issues with your shaders?
Reply With Quote
  #3  
Old 04-16-2012, 11:25 AM
shivanangel shivanangel is offline
Member
 
Join Date: Feb 2006
Location: New Jersey
Posts: 182
No, no issues, I was just trying to rectify current OpenGL shader langauge tutorials and examples with what Vizard expects.
Thank you for the info and clarifying that Vizard is using a compatibility context.
~George
Reply With Quote
Reply

Tags
glsl, shader, version, vizard


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
which version of GLSL is supported by viz 3.0 knightgba Vizard 0 11-04-2010 09:20 AM


All times are GMT -7. The time now is 04:23 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC