Page 1 of 1

Custom textures not working, is this the right code?

Posted: Thu Jun 09, 2011 6:37 pm
by RyanHoots
The following code is part of the file shipdata.plist. The only thing not working in the OXP is the textures. I have checked and the texture names are correct.

Code: Select all

<key>materials</key>
		<dict>
			<key>oneric_top.png</key>
			<dict>
				<key>diffuse_map</key>
				<string>oneric_top.png</string>
				<key>specular_map</key>
				<string>oneric_top.png</string>
			</dict>
			<key>oneric_bottom.png</key>
			<dict>
				<key>diffuse_map</key>
				<string>oneric_bottom.png</string>
				<key>specular_map</key>
				<string>oneric_bottom.png</string>
			</dict>
		</dict>
This is my first time working with custom textures.

Re: Custom textures not working, is this the right code?

Posted: Thu Jun 09, 2011 6:56 pm
by CaptSolo
I use openstep so looking at the XML listing is a bit confusing. Why are you using the same texture for diffuse and specular maps? Open the latest log for specific error mssg and line number.

Re: Custom textures not working, is this the right code?

Posted: Thu Jun 09, 2011 7:29 pm
by RyanHoots
CaptSolo wrote:
I use openstep so looking at the XML listing is a bit confusing. Why are you using the same texture for diffuse and specular maps? Open the latest log for specific error mssg and line number.
The OXP I'm using as a base used the same texture for almost everything, I don't know why. I worked on a new texture but all I got was a ship that would go right though anything and was invisible. Not working.

Re: Custom textures not working, is this the right code?

Posted: Thu Jun 09, 2011 8:01 pm
by RyanHoots
Just got it figured out. The texture wasn't the problem, it was the model.