Destruction question about piece generation

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Destruction question about piece generation

Postby JoeJ » Sat Jul 26, 2014 11:22 am

I'll not implement it so soon, but i need to think about the generated pieces now when i make a preprocessing tool to create the data structure for GI lighting.
Basically i have a huge lightmap, and every face in the world needs its uv space with no overlaps. So nothing special, just a single texture atlas and a single lightmap.

The question is, either precalculate all pieces and their uv's at level loading (you seem to do so in structured fracture demo),
Or generate (and optionally delete) all geometry during runtime (you seem to do so in simple fracture demo), requiring complex uv mangement.

Julio, do you think runtime generation is fast enough to be practical at all?
If you have dynamic generation in mind, can you give some approx number of how much pieces can be generated per step without a noticable slowdown?

The other minor question is how do you create your uv's?
Do you take the scale from the original object? Or is it some fixed relation to world size?
It seems all texels have the same size which is nice and saves me some work.
User avatar
JoeJ
 
Posts: 1489
Joined: Tue Dec 21, 2010 6:18 pm

Re: Destruction question about piece generation

Postby Julio Jerez » Sun Jul 27, 2014 12:12 am

JoeJ wrote:Julio, do you think runtime generation is fast enough to be practical at all?
If you have dynamic generation in mind, can you give some approx number of how much pieces can be generated per step without a noticable slowdown?


The tool that build the fracture is fairly fast, but that Fat for tool usage not for realtime generation. Bascially the tool has to build and voronoid map in three D, and it is dealing with lots of data, memory allocation, and heavy extended precision arithmetic.
The algorithm is lean time\, but I will no count on using in real time. I will using by making prefabricated objects.


JoeJ wrote:The other minor question is how do you create your uv's?
Do you take the scale from the original object? Or is it some fixed relation to world size?

The UV is simple, you pass an texture projection matrix and the UV are planar projection on an infinity plane, you can set the scale, in the texture matrix and that seem to do a relatively good job.

BTW I fixed the crash bug in the structured destruction demo, you can try it now.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Destruction question about piece generation

Postby JoeJ » Sun Jul 27, 2014 7:34 am

That's good news, makes life easier for me :)
User avatar
JoeJ
 
Posts: 1489
Joined: Tue Dec 21, 2010 6:18 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron