SUPPORT BOARD OVERVIEW & TIPS:

About Receiving Help from the Support Board: While all members may answer questions posted in the Support board, you should only rely on responses posted or confirmed by support moderators and website administrators. Any solutions provided by members of the community that are not verified by a staff member (as indicated by a light-green background) are provided as-is, and we cannot take responsibility for any of the results of said actions.

About Responding to Support Threads: If you feel you know the answer to a question, you are welcome to respond to the thread and politely offer assistance. Please be courteous and try to provide detailed and helpful solutions to users who may not be as advanced as you. We ask that you refrain from posting one-sentence solutions.

Please search for existing topics before creating one! It's quite likely someone else has already encountered a similar issue which was resolved. You can search for existing support threads by clicking here .

About Topic Tags:

* Topics denoted with the [OPEN] tag are awaiting a response from the end user. You are welcome to post in these threads if you are experiencing a similar issue so we may provide further support.

* Topics denoted with the [RESOLVED] title have been successfully answered and confirmed by a support moderator and the end user, and should be used as a reference. These topics are locked.

* Topics denoted with the [CLOSED] tag were either inactive for more than 30 days or the end user did not respond to a suggestion and confirm if the issue was resolved. These topics are locked.

lock [CLOSED] Custom Specular/Normal Maps Not Working

  • Weather
  • Weather's Avatar Topic Author
  • Offline
  • Professional Marbler
  • Professional Marbler
  • Posts: 487
  • Thank you received: 264
24 Jan 2016 19:29 - 02 Mar 2016 00:06 #1
Not sure if this is the correct forum for this, if not, please move it.
I recently designed two textures (one including color variants, so more than two files, but the color variants are supposed to share the same spec/normal maps), and made specular and normal maps. One had the .normal.png and .spec.png files named the same as the diffuse map, and the other diffuse maps had different names than the spec/normal maps, so I was told by Threefolder to add this line to the .mis file:
Code:
registerMaterialTextures("platinum/data/interiors/WeatherWonders/GlassPlating-Blue", "platinum/data/interiors/WeatherWonders/GlassPlating-Normal.normal.png", "platinum/data/interiors/WeatherWonders/GlassPlating-Specular.spec.png");
...Where GlassPlating-Blue is the diffuse map. None of the textures had spec/normals in-game, including the one I didn't need a function for. The Ultra levels were working fine.

I even tried to move the spec/normal maps to platinum/data/shaders/WeatherWonders/ but nothing I tried worked.
Each time the level loaded, it showed this in the console: Register new texture: platinum/data/interiors/WeatherWonders/GlassPlating-Blue

Here is an image of what I want if that was not clear enough:
Attachments:
Last edit: 02 Mar 2016 00:06 by Aayrl.
The topic has been locked.
  • HiGuy
  • HiGuy's Avatar
  • Offline
  • Lead Developer
  • Lead Developer
  • PQ Developer Emeritus
  • Posts: 1334
  • Thank you received: 605
24 Jan 2016 22:01 #2
Poked around with this for a bit and found the issue. Apparently the graphics extender has issues with capitalized texture names. However, there is an easy solution. Simply use this code instead:
Code:
registerMaterialTextures("platinum/data/interiors/weatherwonders/glassplating-blue", "platinum/data/interiors/weatherwonders/glassplating-normal.normal.png", "platinum/data/interiors/weatherwonders/glassplating-specular.spec.png");

Note the lack of capitals. The files themselves don't need to be renamed, this should work (tested and shows for me). I'll get on a fix for this weird necessity, but this should work until then.

This signature is real code
Code:
function clientcmd12dothepq() { commandToClient(LocalClientConnection, '34onthedancefloor'); }
The topic has been locked.
  • Weather
  • Weather's Avatar Topic Author
  • Offline
  • Professional Marbler
  • Professional Marbler
  • Posts: 487
  • Thank you received: 264
24 Jan 2016 23:05 #3
Thanks! It worked, but I also need to run that function for Glue.png. Another bug is that you cannot use tildes or periods (like ~/data/... or ./WeatherWonders/...) in the paths either.

Lock thread.
The topic has been locked.
  • HiGuy
  • HiGuy's Avatar
  • Offline
  • Lead Developer
  • Lead Developer
  • PQ Developer Emeritus
  • Posts: 1334
  • Thank you received: 605
25 Jan 2016 00:48 #4
Yep. I noticed that as well, and I will push a fix in the near future that fixes both of these issues.

Locked

This signature is real code
Code:
function clientcmd12dothepq() { commandToClient(LocalClientConnection, '34onthedancefloor'); }
The topic has been locked.
Moderators: Doomblah
Time to create page: 1.656 seconds
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.