Normals Tag data limit?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/09/2010 at 09:13, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11.5
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;---------
Hi,is there a limit of how big a normals tag can be? I have a mesh with 12 million polygons (actually all triangles) and whenever I try to generate a normals tag with this size (12 million * 12 of course) I get a null pointer. Lower polygon counts seem to work and the tag is correctly allocated. I used MakeVariableTag. Is there a limit to the size of the data a normals tag can hold? My RAM is also not nearly filled up (6GB left).
Thanks in advance
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/09/2010 at 02:09, xxxxxxxx wrote:
Sorry I can't confirm. Creating a Normal tag for a 16 millions polygon object works fine here. Maybe something wrong with the value you pass to MakeVariableTag?
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/09/2010 at 02:41, xxxxxxxx wrote:
thanks. Nope, at least I don´t think so, I debugged it several times and the polycount is just fine (I first create the polyobject and then directly take the count from GetPolyCount() to make sure there is no discrepancy. oh and according vertices are also all valid and available). My call is then simply:
poly->MakeVariableTag(Tnormal, poly->GetPolygonCount()*12);
The polygon object I create on my own and I do all this within GetVirtualObjects if that makes any difference (though I wouldn´t see why). It really seems strange
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/09/2010 at 03:01, xxxxxxxx wrote:
Originally posted by xxxxxxxx
poly->MakeVariableTag(Tnormal, poly->GetPolygonCount()*12);
Afaik you shouldn't multiply the polygon count by 12. Simply pass the polygon count and MakeVariableTag creates the internal structure depending on the passed VariableTag type.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/09/2010 at 04:42, xxxxxxxx wrote:
oh ok, I´ll try that. I just thought that I need to give the data allocation size explicitly as the data is accessed accordingly.