CGTalk > Software > Autodesk 3ds max > Particle Flow
Login register
Thread Closed share thread « Previous Thread | Next Thread »
 
Thread Tools Search this Thread Display Modes
Old 02-08-2010, 11:48 PM   #1
shirak23
Frequenter
portfolio
Shirak Agresta
3D Generalist
Portland, USA
 
Join Date: Nov 2004
Posts: 161
Unhappy Texture mapped particles/voxels in Krakatoa?

Basically, I have a tunnel (that a camera passes through) with particles emitting off it (using lock/bond) and I want to render them out as voxels via Krakatoa with the bitmapped texture of the tunnel mapped to the particles.

Basically, a camera flyby down a tunnel of particles/voxels.

I've been told MagmaFlow is a way to go (to apply the texture), but I'm a little lost. Also, I've seen the Box#3/Camera Mapping tut for Krakatoa, but again, Box#3 is a little over my head. I wasn't sure if the tut applied since the camera would be moving through the "tunnel" and it looked like the camera mapping tut relies on a static camera and its distance to the particles.

I'm certainly willing to dig in to both Magma and Box#3, but is there anyone who can help me figure this out?
 
Old 02-09-2010, 01:30 AM   #2
Bobo
Krakatoa Guy
 
Bobo's Avatar
Borislav Petrov
Product Specialist
Thinkbox Software
Vancouver, Canada
 
Join Date: Mar 2002
Posts: 5,321
When a particle is emitted from the wall, it should acquire the UV coordinates of the emitter.

The Particle Flow extension to Max 2009 which is an integral part of 2010 (and was previously available as Orbaz Particle Flow Tools Box #1) has an operator called Mapping Object that can be used to steal texture coordinates from the closest point of a mesh.

Alternatively, Krakatoa provides a Particle Flow operator called Krakatoa Geometry Lookup, but it is not enabled in Evaluation mode. If you have a commercial version of Krakatoa, then it would work. It could be used to steal surface properties like Normals, UVs etc. from a selected mesh.

Once you have your UVs, send out the particles to another event to avoid continuously sampling the wall as the particle is moving.

Apply a material with the same map as the emitter mesh, make sure the texture map uses the UVs you acquired and render in Krakatoa...
__________________
Bobo
 
Old 03-05-2010, 02:04 AM   #3
shirak23
Frequenter
portfolio
Shirak Agresta
3D Generalist
Portland, USA
 
Join Date: Nov 2004
Posts: 161
Sweet, thanks Bobo, I was hoping you'd reply. I do have access to Krakatoa at work and am learning it a bit at a time. I did end up using mapping object and it worked pretty well, but I'll also try the Geometry Lookup and your other tips, too.

Thanks again!
 
Old 03-15-2010, 04:41 PM   #4
th3ta
Veteran
 
th3ta's Avatar
portfolio
3d Artist
In a dark office, USA
 
Join Date: Dec 2003
Posts: 739
OK, i've read through this and am having a hard time with the details, I understand the general idea, just don't know how to go about doing it.

I'm using the Mapping Object method. The type is set to "Once on Event Entry". I'm not sure of all the other options in there and what they should be set to. From there I have the particles being sent out to another event. I don't know what Material node to use, so that it will use the UV's from the previous event. The material is being projected, and I can see that in the particle cloud, so I guess that part is working, the problem is the material doesn't stick to the particles. Can someone walk me through this? Thanks.
 
Old 03-15-2010, 06:31 PM   #5
PsychoSilence
3Delicious
 
PsychoSilence's Avatar
portfolio
Anselm von Seherr - Thoß
VFX Technical Director
Incendii VFX
New Orleans, USA
 
Join Date: Aug 2003
Posts: 2,480
Send a message via ICQ to PsychoSilence
I recorded a video tutorial about mapping object's UVs on particles with and without the help of any toolboxes (if you run max2010):

http://vimeo.com/6633107

Not sure if you watched this one yet. But it might be what you're looking for?

kind regards,
Anselm
 
Old 03-15-2010, 10:48 PM   #6
GeoffDuncan
New Member
 
GeoffDuncan's Avatar
portfolio
Geoff Duncan
VFX Artist, 3D Generalist, Music & Audio Producer
Wellington, New Zealand
 
Join Date: Jun 2007
Posts: 17
Allan McKay's Website

Allan also has a similar tutorial on his site - but looks like PsychoSilence has it covered too

Good luck
 
Old 03-16-2010, 01:38 AM   #7
Bobo
Krakatoa Guy
 
Bobo's Avatar
Borislav Petrov
Product Specialist
Thinkbox Software
Vancouver, Canada
 
Join Date: Mar 2002
Posts: 5,321
Quote:
Originally Posted by GeoffDuncan
Allan McKay's Website

Allan also has a similar tutorial on his site - but looks like PsychoSilence has it covered too

Good luck


Except that Allan's tutorial is wrong
He forgot to switch the map to UV coordinates, so it ended up using Object space mapping.
__________________
Bobo
 
Old 03-16-2010, 02:36 AM   #8
GeoffDuncan
New Member
 
GeoffDuncan's Avatar
portfolio
Geoff Duncan
VFX Artist, 3D Generalist, Music & Audio Producer
Wellington, New Zealand
 
Join Date: Jun 2007
Posts: 17
oops

(I hadn't used the tutorial, but I just remembered seeing the topic covered on his site....)

cheers Bobo
 
Old 03-16-2010, 11:33 PM   #9
asayan
As-Armo-As-It-Gets
 
asayan's Avatar
portfolio
Artur Sayan
3D Artist
freelancing around
Los Angeles, USA
 
Join Date: Nov 2004
Posts: 205
Sorry to jump in, but it seems like you guys have this issue covered, so I figured I'd ask a similar question. How about particles acquiring MultiSubObject IDs?

For example, you have a teapot as an emitter. You have a couple of materials on the teapot via MultiSubObject. You want the particles emitting from the teapot to have the appropriate materials based on the polys they're being emitted from...

How does one go about doing that?
 
Old 03-17-2010, 12:20 AM   #10
Bobo
Krakatoa Guy
 
Bobo's Avatar
Borislav Petrov
Product Specialist
Thinkbox Software
Vancouver, Canada
 
Join Date: Mar 2002
Posts: 5,321
Quote:
Originally Posted by asayan
Sorry to jump in, but it seems like you guys have this issue covered, so I figured I'd ask a similar question. How about particles acquiring MultiSubObject IDs?

For example, you have a teapot as an emitter. You have a couple of materials on the teapot via MultiSubObject. You want the particles emitting from the teapot to have the appropriate materials based on the polys they're being emitted from...

How does one go about doing that?


There are two sides to this - the PFlow side and the Krakatoa side.
*The Mapping Object operator in PFlow of Max 2010 (and 2009 with extension or Box #1) that can steal UVs can also steal Material IDs (see checkbox "Acquire Sub-Material Index"). If you assign a Multi-Sub Material to the PFlow using a Material Static or Dynamic operator, the particles will be assigned the Material ID of the closest point of the mesh selected in the Mapping Object. If you use the same mesh for Position Object, the emission point's Material ID will be acquired.

*Krakatoa on the other hand does not support the Material ID right now. While the MtlIndex channel is available on the list of channels to save, right now it defaults to 0 and does not save the actual value (I think this is a bug). Even if it were saved, a Multi-Sub material assigned to a PRT Loader for example would always show the first sub-material since it is not supported at this point. (I am quite sure this is on the wish list though).

Because of the above limitation, your only chance to do something about it until these bugs are fixed is to copy the Material ID channel to some other channel (like the particleInteger script channel) either using a Script Operator or a Box #3 DataOp, then use MagmaFlow to affect the channels of the particle if the ID matches (e.g. assign a color or texture to the Color channel)

If you really want one material by ID, you could also create multiple PRT Loaders, select all particles without the desired ID using a KCM and delete them using a Krakatoa Delete modifier, then assign a Standard Material to the Loader and repeat for the next ID in the next loader... Of course, this would mean that you would have to load the particles N times, so it might be an overkill, but it is a workaround.
__________________
Bobo
 
Old 03-17-2010, 12:24 AM   #11
PsychoSilence
3Delicious
 
PsychoSilence's Avatar
portfolio
Anselm von Seherr - Thoß
VFX Technical Director
Incendii VFX
New Orleans, USA
 
Join Date: Aug 2003
Posts: 2,480
Send a message via ICQ to PsychoSilence
In both the Mapping Object and the Box3 solution you can set the Material ID it should read the mapping from. You should be able to find that in the help

EDIT: What Bobo said

cheers,
Anselm

Last edited by PsychoSilence : 03-17-2010 at 12:33 AM.
 
Old 03-17-2010, 12:31 AM   #12
asayan
As-Armo-As-It-Gets
 
asayan's Avatar
portfolio
Artur Sayan
3D Artist
freelancing around
Los Angeles, USA
 
Join Date: Nov 2004
Posts: 205
Thanks a lot, Bobo! We have Krakatoa here at the studio, but I'm not familiar with it. So, I think I'll try to go about it using the Box#1 (we're still on Max 2008, for now). I'll report back, in a bit. Thanks again.
 
Old 03-17-2010, 06:09 PM   #13
asayan
As-Armo-As-It-Gets
 
asayan's Avatar
portfolio
Artur Sayan
3D Artist
freelancing around
Los Angeles, USA
 
Join Date: Nov 2004
Posts: 205
S-weet! Thanks a bunch, Bobo (and PsychoSilence)! I used the PFlow Tools Box1. Works like a charm.
 
Old 08-24-2010, 08:59 AM   #14
alexmurur
New Member
portfolio
Alex Murur
definitionjoint
Bangalore, IN
 
Join Date: Feb 2010
Posts: 3
Unhappy

how do i get the materials back after switching from scanline to krakatoa? i searched the forums but the link of the macro script is obsolete.. please help!
 
Old 08-25-2010, 06:21 AM   #15
Bobo
Krakatoa Guy
 
Bobo's Avatar
Borislav Petrov
Product Specialist
Thinkbox Software
Vancouver, Canada
 
Join Date: Mar 2002
Posts: 5,321
Quote:
Originally Posted by alexmurur
how do i get the materials back after switching from scanline to krakatoa? i searched the forums but the link of the macro script is obsolete.. please help!


What do you mean? What MacroScript? What materials?
Scanline and Krakatoa can use the same materials (as long as you use Standard materials).
__________________
Bobo
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 02:08 PM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.