Bah this makes no sense ><

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Bah this makes no sense ><

Postby KingSnail » Fri Apr 22, 2011 1:45 pm

Image

Newton crashes when trying to make a tree collision in the new build (200).
How can the arrow even get inside there because the variable is clearly smaller than it tries to check against.

My guess is that newton doesnt like large face datas (2mil+ polygons)
I dunno what to do, sometimes I hate programming :(
Working on an MMORPG powered by Newton Dynamics.
User avatar
KingSnail
 
Posts: 112
Joined: Sat Jan 02, 2010 9:55 pm

Re: Bah this makes no sense ><

Postby Julio Jerez » Fri Apr 22, 2011 3:08 pm

some how the number on entry is 1 billion points, if you mutiply that by the tyope size wih I beleive is a vector (16 byte) that is 16 giga byte whu will crash windows.
32 bit windows has a memory limit of 2 gygabytes.
if you are going to make collision tree that big, you will definitly have to use 64 bit windows, or brake then into smaller maps maybe a quater of million faces each.
the scene collison let you add then all to single shape.

what kind of collision tree is that?
if this is a heightfield you can just use the Heightfield collision instead, it will use few megabytes instead if few Gigabytes.

you say you are passing 2 million faces, that dos no soudn liek it will use that much memory.
2 milion faces assuming triangles, will use 2 * 3 points * 16 bytes = 48

around 100, maybe 200 begabytes, but it seems your using 10 time that, you should be able to add 10 million faces without problems.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest