Skip to main content
gamedev.net
🔒 Locked

Ogre Textures

Started by Helderash Jan 28, 2007 at 11:45 AM 0 replies 850+ views
Original Post
Helderash
Helderash
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.
darookie
darookie
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.