While I am posting, heres a bit of the town using them...
While I am posting, heres a bit of the town using them...
Great post Redrobes. I'm definately going to try to implement it in my next city map.
Torq
The internet! It\'ll never catch on.
Software Used: Terranoise, Wilbur, Terragen, The Gimp, Inkscape, Mojoworld
The lighting on your buildings seems a little disarrayed. It looks like you need to create your thatch texture unshaded, and then apply your shading in situ.
So if I get what you are doing here, you are using your differently lit versions of the object to index the various thatch images by orientation.
Using a Sobel algorithm(I think) to calculate the partial derivatives of the HF in the vertical direction and then calculating atan(∂y/∂x). You can use the result, truncated to [0, 7] to select thatch images by index. This could be quicker than running a full 3d render eight times. I will leave the implementation as an exercise for smarter people than myself(you).
Astrographer - My blog.
Klarr
-How to Fit a Map to a Globe
-Regina, Jewel of the Spinward Main(uvmapping to apply icosahedral projection worldmaps to 3d globes)
-Building a Ridge Heightmap in PS
-Faking Morphological Dilate and Contract with PS
-Editing Noise Into Terrain the Burpwallow Way
-Wilbur is Waldronate's. I'm just a fan.
Your right in that the shadows are in all directions. I try and avoid shadows and if I have them then I light stuff straight down. It looks a little fake but you can reuse bitmaps that have captured the lighting in them over and over.
Buildings tho don't ever look like buildings without some shadow. Its the same with terrain hills, humps, ditches and so on. You cant adequately show them without some shading or else they look flat.
So I could render them without the shading and use the height maps in place of the houses in VDale and render out a full height map of the whole town, then shade that and apply that to the flat color icons and it would look great but it would use one image for lighting for the whole town but each house would have its own color image. So the resolution of the shading would be much much less than the color. Probably not a big issue and it would also allow shadows from the houses too but its not ideal.
When rendering out the lightmaps in GTS I already have the normal vector for the height map so I don't need to do any more partial diff calcs. I could do a max of dot products for the 8 X-Z planar directions and get the index and your right I could add code to output an index image or even write some bigger code to take in 8 images and pick one. But this way is very similar and it has a little advantage of allowing some blending across two indexes - but I guess you could interpolate between two indexes too.
It takes about 30 secs from start to finish to generate the final shaded thatched model from the 8 bit gray-scale height map. Its not a huge wait thats worth coding up something special for.
Your points are all very valid tho.
Artists...
Bryan Ray, visual effects artist
http://www.bryanray.name
I like artists. I'd like to be one someday when I grow up.
I have to say Ravells, most of what you said went straight over my head, but I completely agree with you about the cheesecake. Mmmm, cheesecake!
Astrographer - My blog.
Klarr
-How to Fit a Map to a Globe
-Regina, Jewel of the Spinward Main(uvmapping to apply icosahedral projection worldmaps to 3d globes)
-Building a Ridge Heightmap in PS
-Faking Morphological Dilate and Contract with PS
-Editing Noise Into Terrain the Burpwallow Way
-Wilbur is Waldronate's. I'm just a fan.
Well, pop on over and have a look, bigTF went up last night!I'm looking forward to seeing Seers GMaps
Any way, I gave your lighting method a modified run through in Global mapper using its sunlight shader(modifying sun azimuth and declination) to make masks for terrain cover based on direction/ sun exposure, works real good to position hi res Terragen generated textures (applied via photoshop in to an image)...then I realized I can get a mask out of Saga gis which can be set to an ungodly number of distinct colors for different facings/directionality of the terrain.....then I realized you probably already do it in GTS easier , so once again I am behind the curve...
SeerBlue
Using a Sobel algorithm(I think) to calculate the partial derivatives of the HF in the vertical direction and then calculating atan(∂y/∂x). You can use the result, truncated to [0, 7] to select thatch images by index. This could be quicker than running a full 3d render eight times. I will leave the implementation as an exercise for smarter people than myself(you).
Rockwell
I think you guys may enjoy this as much as your thesis on light effects.