Dario_ff
01-22-2011, 10:41 AM
Hello Polycount, just joined in to ask a question.
I'm playing around in doing a 2D ISO engine, and for some clever effects and game logic, I would need to know the "height" of each pixel in my rendered bitmaps. The height would just be the z coordinate it represents in the real model.
I've been trying out the Bake To texture option, but I'm not really familiar with the settings and I only got wrong results(since I guess it's relative to the projection but not the ground).
For rendering I need to set the projection plane in the way of an ISO camera. Since I also need to bake the normals(though I'm still not sure if it's alright, but I'll find out later.
The particular type of rendering I want would be something like this(faked in photoshop):
https://sites.google.com/site/ffstadium/css-dump/scr1.png
That'd be the "final" render, and this the height map. (Again, I did a quick photoshop to show the idea):
https://sites.google.com/site/ffstadium/css-dump/scr2.png
As you can see, the height map would correspond with the z coordinate. Is this possible with tweaking the settings in Render To Texture in some way?
I've tried doing a gradient material and put the UV Map coordinates, and it somehow worked(though messed up sometimes due to the weird nature of the meshes). But I didn't really like that way at all, and I'm willing to believe it's just possible with Render To Texture.
Thanks for reading, I'd appreciate any help. :)
I'm playing around in doing a 2D ISO engine, and for some clever effects and game logic, I would need to know the "height" of each pixel in my rendered bitmaps. The height would just be the z coordinate it represents in the real model.
I've been trying out the Bake To texture option, but I'm not really familiar with the settings and I only got wrong results(since I guess it's relative to the projection but not the ground).
For rendering I need to set the projection plane in the way of an ISO camera. Since I also need to bake the normals(though I'm still not sure if it's alright, but I'll find out later.
The particular type of rendering I want would be something like this(faked in photoshop):
https://sites.google.com/site/ffstadium/css-dump/scr1.png
That'd be the "final" render, and this the height map. (Again, I did a quick photoshop to show the idea):
https://sites.google.com/site/ffstadium/css-dump/scr2.png
As you can see, the height map would correspond with the z coordinate. Is this possible with tweaking the settings in Render To Texture in some way?
I've tried doing a gradient material and put the UV Map coordinates, and it somehow worked(though messed up sometimes due to the weird nature of the meshes). But I didn't really like that way at all, and I'm willing to believe it's just possible with Render To Texture.
Thanks for reading, I'd appreciate any help. :)