Jump to content
  • Advertisement
Sign in to follow this  
akira32

OpenGL Does OpenGL support XFile and HLSL?

This topic is 3794 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
If you write or find an X Model loader for OpenGL then yes it can. X is just a file format. It's up to you to take that data and turn it into something usable. OpenGL has the GLSL, which is very similar to HLSL.

Share this post


Link to post
Share on other sites
DirectX supports CG.
OpenGL supports GLSL,but supports CG?

[Edited by - akira32 on February 29, 2008 5:57:59 PM]

Share this post


Link to post
Share on other sites
Quote:
Original post by V-man
For X file loading, there is a lib from PandaSoft but I haven't used it myself.

For Cg,
http://developer.nvidia.com/object/cg_toolkit.html
the toolkit contains support for GL but I don't recommend it since for ATI, would be forced to compile for ARB_vertex_program and ARB_fragment_program.
Just code in GLSL.


In Cg 2.0 there are GLSL vertex and fragment shader profiles, so you should be able to code in Cg and let the runtime translate to GLSL to run on ATI cards.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!