| Horde3D http://horde3d.org/forums/ |
|
| Shadow and Lighting http://horde3d.org/forums/viewtopic.php?f=2&t=459 |
Page 1 of 1 |
| Author: | onurakkaya [ 11.08.2008, 16:35 ] |
| Post subject: | Shadow and Lighting |
hi in terrain sample i created a 1024 x 1024 heightmap.tga and replaced to original heightmap.tga but i lost shadow and lighting when i replaced original heightmap.tga everyting is ok what's the problem ? |
|
| Author: | Volker [ 11.08.2008, 19:44 ] |
| Post subject: | Re: Shadow and Lighting |
Probably you haven't integrated the normal data into your hightmap. See also the "Using the Extension" section in the wiki. |
|
| Author: | onurakkaya [ 12.08.2008, 06:41 ] |
| Post subject: | Re: Shadow and Lighting |
thanks... |
|
| Author: | onurakkaya [ 12.08.2008, 07:05 ] |
| Post subject: | Re: Shadow and Lighting |
one more question does horde3d scene editor work with command line argumants ? |
|
| Author: | Volker [ 12.08.2008, 07:28 ] |
| Post subject: | Re: Shadow and Lighting |
You can specify a .scn File that's all. But it shouldn't be too much work to add additional things (although I currently couldn't imagine what else may be useful) |
|
| Author: | onurakkaya [ 12.08.2008, 07:38 ] |
| Post subject: | Re: Shadow and Lighting |
i created a pgm(from a raw data) in my program and i converted that pgm file to tga(heightmap.tga) using irfan view(in my program i run irfan view with cammand line argumants to convert pgm file to tga) so need to calculate normals in my program to give shadow and lighting in my terrain, what can i do ? |
|
| Author: | Volker [ 12.08.2008, 07:48 ] |
| Post subject: | Re: Shadow and Lighting |
Don't convert it yourself, use the Editor's tool. It calculates the normal data and stores it together with the heightmap in the correct format. The editor's heightmap converter tool should be able to read 16bit pgms, too. |
|
| Author: | onurakkaya [ 12.08.2008, 12:41 ] |
| Post subject: | Re: Shadow and Lighting |
thanks i used scene editor the everyting is ok but how can i do this programmatically ? |
|
| Author: | Volker [ 12.08.2008, 12:55 ] |
| Post subject: | Re: Shadow and Lighting |
Just check the source code. The converter is an extra plugin. |
|
| Page 1 of 1 | All times are UTC + 1 hour |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|