Well made it past one hurdle

I spent a few evenings wrestling with a Lightmapping problem that should never have been happening… but a plugin switched a lighting mode flag that broke everything the way I wanted to do it. For those that might encounter this blog lighting was set to linear not Gamma… that broke all lightmaps in RGB… HARD TO FIND….andI still don’t know why … The shaders do not read the format just the colors. Thus feeding an RGB should work. Now linear lightapping must hit a different pipeline in the standard shader.

See these posts to see more:


After a LOT of frustration I tried Unreal for a day. I like a few things. However, the compiling of c++ code would slow me down several hundreds of percent. Along with debugging c# code is FAR easier. Keeping up with c# code through engine upgrades is a TON easier. Not managing a header .h and a implementation file .cpp for every code segment saves a ton of time. The blue print system is not strong enough to not use c++ code all over the place. It also seems you have to use a blueprint to interface to the c++ so another level of complexity. The speed gains of c++ over c# can be managed very well and in some cases c# may even win from my research. Thus the only item perceived as better is graphical power. (Not on mobile devices at all Unity kills there for speed and memory footprint) However, one real reason Unreal always looks better in demos is Epic has the VERY best artists in the world creating them. That is the big difference. Any scene in Unreal can be created in Unity and faster.. at least all the scenes I have scene. I have not seen anything graphically Unity cannot do that Unreal can. Also I must mention Unity supports 3-4 times the devices Unreal does last check. Unreal also has difficulties in dynamically generated worlds, items, etc. Unity does also but you can get around the hurdles with lots of research. It seems Unreal suffers from lightmapping issues that Unity used to as far as loading dynamic levels and storing lightmaps in the .map file as unity did in the lighting assets file (I did not research this fully so take it with a grain of salt. I did find work arounds in unity).

I got a simple scene running with blueprints testing dynamically loading in Unreal.. and made my decision to stick with unity. I am glad I took the time as it has bothered me since Unreal became free that I might be in the wrong engine with all those pretty demos. Also another added issue is the tax Unreal charged for any game over 3000.00 is 5% GROSS…not net.. thats about a 8-10% tax going to Epic. Add in what apple charges last check was 20%. So add them up with the governement and close to 50% of your hard work is gone. Unity’s charges are far better. All in all a good exercies and I am very happy to be sticking with unity…

Where I am now is I have the Characters generating from pieces. Their texture map is correct and atlased using Unity’s texture packer. However, the issue is it packs your colors great. Then you go to pack your normal maps and you have to use the same function again. Thus your UVs do not match up now to the normal map! Argh! I want as few hand coded shaders as usual so as to work across all the engine and plugins expecting the standard shader. Thus I do not want a seperate channel for Normal map UVs. So now I have to take the rectangles given back to me and do my own atlasing to fit the textures… again argh… Should not be to hard without filtering..What I will do is copy the texture by hand into the new normal map texture and scale it by the rectangles size to fit inside the recatangle.

Off to do another thing Unity should really do for you.. what good is a model without a normal map…..

Wow I wrote a book =) More later…..

And it is later…..
And Fixed. I may publish this code on the asset store I know I would buy it.. it does not scale up a normal map but it will scale down the normal map from the packed texture rects unity can do. Why we cannot provide multiple textures of multiple resolutions to pack I do not know. That would be best. And who needs a normal map greater size then a texture color map? Really who =)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s