POV-Ray : Newsgroups : povray.advanced-users : Bounding Box issue : Re: Bounding Box issue Server Time
28 Jul 2024 10:17:38 EDT (-0400)
  Re: Bounding Box issue  
From: McHannemann
Date: 6 May 2006 04:40:01
Message: <web.445c60d49ee0a6791b541b390@news.povray.org>
ok,
here are the nominees ;-)

first the object to drop on is a mesh heightfield, I used a simple version
of a rectangle to define the area...:
#declare OBCollision = mesh2 {
 vertex_vectors
{4,<1,4.80723e-007,1>,<-1,2.14342e-007,1>,<-1,1.82865e-007,-1>,<1,3.50524e-007,-1>
}
 normal_vectors
{4,<-1.3319e-007,1,-1.57385e-008>,<-1.3319e-007,1,-1.57385e-008>,<-1.3319e-007,1,-1.57385e-008>,<-1.3319e-007,1,-1.5738
5e-008>
}
 texture_list { 1, texture{blender_default_tex}}
 face_indices { 2,<0,1,2>,0,<2,3,0>,0}
 normal_indices {0}
 matrix <18.9097,0,0,0,18.9097,0,0,0,22.1856,-2.29326,-1.36449,9.97583>}

and then I defined the function to drop on:
#declare Object = object{OBCollision};
#declare MinBox = min_extent(Object);
#declare MaxBox = max_extent(Object);

and this is the result of the drop on function I use:
http://img69.imageshack.us/img69/5162/bug0015cw.jpg

I hope you guyz are able to help me,
by the way the object(Mesh Heightfield) is properly recognized by
makesnow.inc

regards,

Thor


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.