Chaos Corona Forum

General Category => Porting and API => [Archive] Corona Scatter 2.0 => Topic started by: ChrisJ on 2014-11-12, 16:05:33

Title: Scatter with collision detection
Post by: ChrisJ on 2014-11-12, 16:05:33
Scatter now has collision detection, which tests intersections with bounding boxes.
I wish this would go faster, but I have to do this in my spare time, around commuting to work for my day job.
Title: Re: Scatter with collision detection
Post by: romullus on 2014-11-12, 16:28:01
Nice to see progress here! I hope we can get control over overlapping, otherwise it's not very useful ;]
Title: Re: Scatter with collision detection
Post by: arqrenderz on 2014-11-12, 16:51:01
So nice to see the development of this great part of corona!Keep Up the good work! :)
Title: Re: Scatter with collision detection
Post by: agentdark45 on 2014-11-12, 17:12:59
Could I put in a request to give the user the ability to change the bounding box to a more complex shape? Kind of like how Mass FX automatically calculates a simple convex / concave hull object  to fit the object better than a simple box. This is especially important when you are scattering more complexly shaped objects - you can see already that no cylinders are scattered near the teapot spout in your example due to using a simple bounding box, so there's a lot of empty space that won't be filled. Overlapping control won't really solve this as it will just cause object intersections where you don't want them to occur.
Title: Re: Scatter with collision detection
Post by: Ondra on 2014-11-12, 17:14:21
That would be waaaay more complicated and waaaay slower
Title: Re: Scatter with collision detection
Post by: agentdark45 on 2014-11-12, 17:57:26
I thought it might have been a bit of a long shot. What about letting the user add their own simple bounding object shape? I can sacrifice speed for a super dense and collision free scatter.
Title: Re: Scatter with collision detection
Post by: maumau3d on 2014-11-25, 13:44:13
I`ve been using the script ultimate painter, which I downloaded from the scriptspot website and it has helped me a lot. It is not actually a scatter, but it allows you to specify a distance in-between the objects, it also has a collision feature too but that one only crashes with me. I am just suggesting that maybe since collision seems to be a long shot for the corona scatter at the moment, maybe just a minimum distance feature/spinner could help some people)
Title: Re: Scatter with collision detection
Post by: borisquezadaa on 2014-11-25, 20:05:03
Have you seen this?
http://km-3d.com/freestuff/uncollider.ms (http://km-3d.com/freestuff/uncollider.ms)

ITS FREEEEEEEE!!!!...
Title: Re: Scatter with collision detection
Post by: CiroC on 2014-11-26, 09:30:36
Keep the great work ChrisJ.

I look forward to explore the new scatter options. :)
Title: Re: Scatter with collision detection
Post by: antanas on 2014-11-26, 11:02:38
I thought it might have been a bit of a long shot. What about letting the user add their own simple bounding object shape? I can sacrifice speed for a super dense and collision free scatter.
I was thinking of exactly same type of thing + maybe selection between - custom, user made extremely low poly shape resembling original object (tree, grass, bushes, cars, whatever)  - box - cylinder - and maybe even sphere bounding shapes + the ability to set scaling of those + maybe some random scaling of those shapes would be good too, but I guess it will be really slow to calculate even if it would be quite useful in some cases.

Probably the most realistic thing to expect would be the ability to select between box and cylinder shapes and the ability to set scaling of those to semi-manually control overlapping like every other scatterers do + as I wrote before the ability to set some random scaling of those bounding shapes to randomize overlapping a bit would be quite welcome too :)
Title: Re: Scatter with collision detection
Post by: Utroll on 2014-12-07, 16:53:53
Nice to see progress here! I hope we can get control over overlapping, otherwise it's not very useful ;]
+1, with rand% eventually