I bet someone can make use of this :)
http://polish-game-developer.blogspot.com/2015/03/normal-map-generator-from-diffuse-maps.html
I bet someone can make use of this :)
http://polish-game-developer.blogspot.com/2015/03/normal-map-generator-from-diffuse-maps.html
There are photoshop and gimp plugins for normal maps already. Also, normal maps should never be generated from diffuse maps directly. They always come out looking horrible because artistically it just highlights the contrasting parts of the diffuse and you get no actual surface representation. Same thing with specular, never just take a diffuse and make it grayscale. Both ways produce awful results.
Sometimes you simply don't have "curvature data" and want to have *any* normal maps :P.
Do these plugins work in command-line?
Do these plugins work in command-line?
Photoshop can operate in batch mode, and it's possible to trigger that from the command line, so... not really, but sort of.
Sometimes you simply don't have "curvature data" and want to have *any* normal maps .
What I mean is, it is fine to take a picture etc and convert to a normal map. Just don't use the same source image as the basis for your D,S,N maps. They will have the same parts with the same contrast and it always looks awful. Use different images to generate all 3 if you are doing it that way.
@cozzie: hard to tell since I dropped the idea of using crazybump as soon as I realized I would need to click over so many files. I think it's just best if you just try my tool's results against those from crazybump and see it for yourself :).
@swiftcoder: the downside of this solution is that, well, you need Photoshop in the first place :P. GIMP is a free alternative so probably that could work using it in batch-mode.
@dpadam: not sure what you mean. So as input I have one diffuse map. What do you mean by "use different images"?
@dpadam: not sure what you mean. So as input I have one diffuse map. What do you mean by "use different images"?
Well I am totally aware of the fact that normal map generated from just a diffuse map can be far from being correct but for a great deal of textures it will be just fine and players won't even notice it.
We're not living in idealistic or not-time-constrained world :P. I'm making a commercial game and *quickly* needed normal maps for some of the assets and the solution I came up with did the job for me :).
I'm making a commercial game
Then you should definitely swap a couple normal textures in game to see the difference it makes when sourcing different images, whether for this project or the next. It is a huge difference. I've never had a good result doing what you are suggesting, even though I did it for a while too.