Material issue (normal map)
Posted: Sat Jan 18, 2014 11:08 pm
Hello there,
First, nice to meet you, I'm Noadasi, 2D/3D artist.
When I saw that I could mod Legend of Grimrock, I was like "Ooooh !" and when I tried to create new assets to the game (I want to make a complete new set of walls, floors etc etc) I was very happy to come as far as I can, that mean, creating new models, new textures, make them usable in game. But I'm stuck !
I have a peculiar issue, when I script my materials for my floor and wall (currently I have one model for the floor and one for the walls, if I can solve my problem I plan to do a set of three of each plus one extra that can appear less frequently, I hope my dungeon will look less repetitive in the future) my diffuse and specular maps appear correctly but not my normal map.
It's strange because the first version of the floor that I did just to test worked fine, but it's true that it was just a clone of the dungeon_floor_01. Now that I added some polygon, the normal map is no more than a fugitive eccho of the past and I miss it...
I tried many things, I thought it could come from a wrong preset in the DDS files conversion so I tried different versions... Didn't work. I thought the size of the picture could be a problem so I scaled it down to 512*512 but that didn't change a thing. I thought I made a mistake writting my material script but I checked it again and again, rewritting it, saving it and reloading the project... With the very good result of becoming each time a little more crazy.
It's just strange to me because the editor do not detect any mistake in the code, so logically it find the normal map. And what is more strange is that he has absolutelly no problem at all with the spec and dif maps. And I don't think it come from the density of polygon because I had this issue on my wall too, wich was a damnmonopolygonal planar.
I just checked it again, removing the dif and spec maps from the material just to leave the normal, my model is as flat as my little sister. Which is a tragedy. For my 3D model I mean... well, for my sis too maybe, that's not relevant anyway.
So if anyone here had the same issue than me and know how to make everything work, that would litterally make my day since I lost this entire saturday trying everything I could. Right now I'm a sad panda.
Also, can someone explain me (or give me a tuto, that work too) how to incorpore some lights to my 3D in game ? I want to try something !
For those of you who may ask some screenshot, I'm not sure that it's really helpfull, just imagine a brickwall flat and white without brick, color or bump. Seems like a white piece of plastic which is not very medieval.
But if you want to, I'll show you this plastic.
Regards.
First, nice to meet you, I'm Noadasi, 2D/3D artist.
When I saw that I could mod Legend of Grimrock, I was like "Ooooh !" and when I tried to create new assets to the game (I want to make a complete new set of walls, floors etc etc) I was very happy to come as far as I can, that mean, creating new models, new textures, make them usable in game. But I'm stuck !
I have a peculiar issue, when I script my materials for my floor and wall (currently I have one model for the floor and one for the walls, if I can solve my problem I plan to do a set of three of each plus one extra that can appear less frequently, I hope my dungeon will look less repetitive in the future) my diffuse and specular maps appear correctly but not my normal map.
It's strange because the first version of the floor that I did just to test worked fine, but it's true that it was just a clone of the dungeon_floor_01. Now that I added some polygon, the normal map is no more than a fugitive eccho of the past and I miss it...
I tried many things, I thought it could come from a wrong preset in the DDS files conversion so I tried different versions... Didn't work. I thought the size of the picture could be a problem so I scaled it down to 512*512 but that didn't change a thing. I thought I made a mistake writting my material script but I checked it again and again, rewritting it, saving it and reloading the project... With the very good result of becoming each time a little more crazy.
It's just strange to me because the editor do not detect any mistake in the code, so logically it find the normal map. And what is more strange is that he has absolutelly no problem at all with the spec and dif maps. And I don't think it come from the density of polygon because I had this issue on my wall too, wich was a damnmonopolygonal planar.
I just checked it again, removing the dif and spec maps from the material just to leave the normal, my model is as flat as my little sister. Which is a tragedy. For my 3D model I mean... well, for my sis too maybe, that's not relevant anyway.
So if anyone here had the same issue than me and know how to make everything work, that would litterally make my day since I lost this entire saturday trying everything I could. Right now I'm a sad panda.
Also, can someone explain me (or give me a tuto, that work too) how to incorpore some lights to my 3D in game ? I want to try something !
For those of you who may ask some screenshot, I'm not sure that it's really helpfull, just imagine a brickwall flat and white without brick, color or bump. Seems like a white piece of plastic which is not very medieval.
But if you want to, I'll show you this plastic.
Regards.