|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi I tried to use min_extent and max_extent for a object I want
to drop on several others, the issue is that the result is only
a small part of it in the middle, is there any macro/function
available which is more succesful?
Regards,
Thor
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
If min_extent and max_extent don't give you the right results, then
you're object wouldn't be rendered correctly, either. So I guess that
not these functions, but the rest of your code is the problem. Perhaps
you can show us the relevant parts?
HTH,
Florian
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Wasn't it McHannemann who wrote:
>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
It's easy to show that the object is inside its bounding box. Just do
this:
#declare BBox = box {MinBox,MaxBox pigment {rgb x}}
difference {
object {OBCollision}
object {BBox}
}
This displays all the parts of the object that are outside the bounding
box, and the resulting render is completely blank. The object is
completely inside the bounding box.
Whatever's going wrong with your later processing can't be blamed on
min_extent and max_extent problems.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi Mike,
I just wondered too what happens there,
makesnow gets the object sorted properly,
so I will compare the two macros,
regards,
Thor
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
After comparing the macros and figuring that there was no
difference in the lines, I reinstalled PovRay and it was fine
after that, kinda weird to be honest.
THor
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|