Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: FixSeams and GetBoundingBox Bug  (Read 231 times)
tom_namibia
Customers
Community Member
*****
Posts: 79


WWW
« on: June 16, 2008, 01:37:47 PM »

Hi,

I moved this to bugs:
http://www.truevision3d.com/forums/tv3d_sdk_65/still_fixseams-t17903.0.html

It loads two landscapes, which are perfectly fitting together:


On loading of the landscapes, the boundingbox is calculated in Sub CheckBoundingBoxes(land).
Here is the first problem, because the minimum y-value as returned from land.GetBoundingBox() is always 0, which is wrong. To confirm I read the y-values with GetHeightArray().

Then, second problem, I call land(1).FixSeams(land(0)) to adjust the normal-vectors of the edge where the landscapes touches to give a smooth transition.
This is totally ignored, nothing happens, but on the other side of the landscape, the y-values are suddenly flipped up Huh



Is it a bug in FixSeams? Am I wrong somewhere?
I would like to have the edge between the two landscapes in a way smoothened, that it lookes like one big landscape, no visible edges anymore. Since the y-values are ok, so there is no need to adjust altitude-values, it only has to do with the normals, I think.

I prepared a small test-project in vb.net 2005:
http://www.ttqv2.de/tmp_tom/tv3d/fixseamstest.zip
It reproduces both bugs.

I really hope for a fast fix, since this is very important for the progress of the project we are working on.

Best reards,
Tom
Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4449


WWW
« Reply #1 on: June 21, 2008, 11:29:40 AM »

Thanks a lot for the sample.

Looking this week end, it doesn't seem too complicated to fix at first sight.
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks