Jump to content
  • Advertisement
Sign in to follow this  
Helderash

Ogre Textures

This topic is 4219 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

Hey guys! I'm currently working through the Wikipedia Tutorials on Ogre, and implementing some graphics using what im learning on one of my own projects. I just have a quick question. In all of the tutorials the author sets textures in the following manner: ent->setMaterialName("Examples/Rockwall"); The "Examples/Rockwall" is apparently a texturing script. I was just wondering how I use one of my own textures instead? I originally tried replacing the "Examples/Rockwall" with the filename of my texture, but alas no luck. Thanks for all the help, its very much appreciated! James.

Share this post


Link to post
Share on other sites
Advertisement
Ogre uses a material system, so "Examples/Whatever" refers to an entry in a pre-loaded material script. You will have to write your own material script and load it in order to use your own textures.
Look up material scripts in the Ogre Wiki.

HTH,
Pat.

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!