Horde3D

Next-Generation Graphics Engine
It is currently 23.11.2024, 00:44

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Shadow and Lighting
PostPosted: 11.08.2008, 16:35 
Offline

Joined: 29.07.2008, 19:49
Posts: 11
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 ?


Top
 Profile  
Reply with quote  
 Post subject: Re: Shadow and Lighting
PostPosted: 11.08.2008, 19:44 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Probably you haven't integrated the normal data into your hightmap. See also the "Using the Extension" section in the wiki.


Top
 Profile  
Reply with quote  
 Post subject: Re: Shadow and Lighting
PostPosted: 12.08.2008, 06:41 
Offline

Joined: 29.07.2008, 19:49
Posts: 11
thanks...


Top
 Profile  
Reply with quote  
 Post subject: Re: Shadow and Lighting
PostPosted: 12.08.2008, 07:05 
Offline

Joined: 29.07.2008, 19:49
Posts: 11
one more question
does horde3d scene editor work with command line argumants ?


Top
 Profile  
Reply with quote  
 Post subject: Re: Shadow and Lighting
PostPosted: 12.08.2008, 07:28 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
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)


Top
 Profile  
Reply with quote  
 Post subject: Re: Shadow and Lighting
PostPosted: 12.08.2008, 07:38 
Offline

Joined: 29.07.2008, 19:49
Posts: 11
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 ?


Top
 Profile  
Reply with quote  
 Post subject: Re: Shadow and Lighting
PostPosted: 12.08.2008, 07:48 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Shadow and Lighting
PostPosted: 12.08.2008, 12:41 
Offline

Joined: 29.07.2008, 19:49
Posts: 11
thanks i used scene editor the everyting is ok
but how can i do this programmatically ?


Top
 Profile  
Reply with quote  
 Post subject: Re: Shadow and Lighting
PostPosted: 12.08.2008, 12:55 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Just check the source code. The converter is an extra plugin.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group