Custom textures not working, is this the right code?

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

Custom textures not working, is this the right code?

Post 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.
Image
User avatar
CaptSolo
---- E L I T E ----
---- E L I T E ----
Posts: 909
Joined: Wed Feb 23, 2011 10:08 pm
Location: Preying Manta
Contact:

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

Post 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.
User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

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

Post 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.
Image
User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

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

Post by RyanHoots »

Just got it figured out. The texture wasn't the problem, it was the model.
Image
Post Reply