A scattering tool for Indigo

Announcements, requests and support regarding the 3DS MAX exporter
User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

A scattering tool for Indigo

Post by suvakas » Tue Oct 09, 2007 3:04 am

Hi guys!

I've had this idea for a while now, but i started to script it on the weekend. It's a small scattering tool for Indigo that scatters a model over the surface of another model. It is similar to 3ds Max scatter except that it uses Indigo instances. The actual scattering is created during the export process so there is no heavy geometry in the max viewports. You can also have multiple "layers" of different objects on one model.
I think it could be useful for making carpets and stuff like that. It can't cover very large areas though, but I got quite good results using it on 10x10 meter square. So i guess it can be used for doing grass for very small areas.

There is no user interface yet. I'm thinking, that maybe i'll integrate it into Maxigo some day...as a modifier or something like that.

Here is a quick grass test (rendered in Indigo of course). There are 2 "layers" scattered on to a plane. One is a weed model and other is flower.
Attachments
teapot+grass.jpg
teapot+grass.jpg (162.8 KiB) Viewed 110830 times

User avatar
filippo
Posts: 658
Joined: Sat Aug 05, 2006 8:46 pm
Location: italia(senigallia-an)
Contact:

Post by filippo » Tue Oct 09, 2007 4:12 am

wonderfull idea!!!!!!!
thaks suvakas!!!!!!!!!!!!!!!
filippo
2x Xeon quad core ghz 2.66(8 core)+4g ram+quadro fx
2 x Xeon Quad 5540 (16 core)+16GB ram+ Nvidia GTX 295 1800mb

sth
Posts: 57
Joined: Mon Mar 05, 2007 1:55 am

Post by sth » Tue Oct 09, 2007 4:47 am

it's going to be interesting thing 8)
are indigo colored flowers also full geometry or sprites?

BTW...
nice to see you again here :D :)

User avatar
zsouthboy
Posts: 1395
Joined: Fri Oct 13, 2006 5:12 am

Post by zsouthboy » Tue Oct 09, 2007 6:02 am

Let's steal that for Blendigo, stat.

:D

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Tue Oct 09, 2007 6:08 am

wow! great!
@zsouthboy: lol, I kinda thought the same^^
but in a bit different nuance:
suv, learn python and script it :twisted: :P

User avatar
Whaat
Developer
Posts: 1827
Joined: Fri Dec 22, 2006 6:15 am
Location: Canada
Contact:

Post by Whaat » Tue Oct 09, 2007 6:36 am

That's awesome, suv! I had the same idea for SketchUp/Indigo but haven't got around to working on it yet. Great work!

Whaat

vansan
Posts: 67
Joined: Fri May 04, 2007 2:35 am

Post by vansan » Wed Oct 10, 2007 2:05 am

Great result!
By the way, there is a script in my collection already, that does the same thing, if I'm not mistaken.
I share it here.

User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Post by suvakas » Wed Oct 10, 2007 4:24 am

Thanks!

@sth
Everything is geometry. No alpha maps.

I added texture support. Scattered models can now get their color from ground. Should be good for making carpets. Exporting time is a bit longer when using a texture though.

Some tests of different carpet types...
Attachments
carpet3-small.jpg
carpet3-small.jpg (201.31 KiB) Viewed 110651 times
carpet2-small.jpg
carpet2-small.jpg (239.42 KiB) Viewed 110655 times
carpet1-small.jpg
carpet1-small.jpg (223.12 KiB) Viewed 110667 times

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Post by OnoSendai » Wed Oct 10, 2007 4:28 am

O_O

You made some kind of super micro poly displacement! :)

User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Post by suvakas » Wed Oct 10, 2007 4:36 am

OnoSendai wrote:O_O

You made some kind of super micro poly displacement! :)
:lol:
It kind of reminds displacement indeed though.

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Oct 10, 2007 4:59 am

O.o GREAT FUR!!

User avatar
Whaat
Developer
Posts: 1827
Joined: Fri Dec 22, 2006 6:15 am
Location: Canada
Contact:

Post by Whaat » Wed Oct 10, 2007 5:11 am

suvakas wrote: I added texture support. Scattered models can now get their color from ground.
Simply awesome! :shock: :shock:

But...how??? Do you have to create a different Indigo material for each color of the texture map at export time? How do you extract the color of the texture and apply it to the scattered model? I am guessing there are some Maxcript functions that can help you out here.

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Oct 10, 2007 5:20 am

... or do you UV-map the fur, as if it was a single plane, which gives the correctly coloured effect?...

User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Post by suvakas » Wed Oct 10, 2007 5:29 am

Whaat wrote: But...how??? Do you have to create a different Indigo material for each color of the texture map at export time? How do you extract the color of the texture and apply it to the scattered model? I am guessing there are some Maxcript functions that can help you out here.
If I place an object on to the surface model, then I'm storing the UV coordinates of surface from that exact spot and then I'm geting the pixel color of texture bitmap according to those UV coords.
When i have the pixel color, then I'm creating an indigo material with that color.
In short it is just tracking UV vertex back to bitmap pixel.

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Oct 10, 2007 6:30 am

that means, it's diffuse, only - right? :)

Post Reply
73 posts

Who is online

Users browsing this forum: No registered users and 7 guests