Hi~
I am working on my first mantra procedural,and want to do some LOD calculation in it.I wrote some code like below to test VRAY_Procedural::getLevelOfDetail method:
UT_BoundingBox box;
box.initBounds(-12,-12,-12);
box.enlargeBounds(12,12,12);
fpreal lod = VRAY_Procedural::getLevelOfDetail(box);
cout<<“the LOD is: ”<<lod<<endl;
the returned “lod” is always a fraction digit as I expanding the bounding box and will suddenly goes to 1000 when it gets too close to my camera. I checked the VRAY_DemoSprite sample and it implied that LOD is not just a fraction digit and will be great than 1 sometimes ,so what is wrong with my code?