sprockets The Snowman is coming! Realistic head model by Dan Skelton Vintage character and mo-cap animation by Joe Williamsen Character animation exercise by Steve Shelton an Animated Puppet Parody by Mark R. Largent Sprite Explosion Effect with PRJ included from johnL3D New Radiosity render of 2004 animation with PRJ. Will Sutton's TAR knocks some heads!
sprockets
Recent Posts | Unread Content
Jump to content
Hash, Inc. - Animation:Master

Sprites in sunlight and shade


Recommended Posts

I'm working on an outdoor scene that has direct sunlight and some shaded areas. Sprites are flowing from the lighted area into the shaded area, yet the sprites brightness does not diminish as it goes from sunlight to shade? The sprite particle is basically a white blob that stays bright no matter what the lighting conditions are. Can this be changed in the sprites properties? I want the sprites surface to be darker as it moves into the shaded area of the scene.

Link to comment
Share on other sites

  • Replies 22
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Sprites are rendered if i remember correctly last and are not effected by shadows if you know the timing you could adjust the sprite over time to darken later if its life but it might be a bit tricky..I'll try to play with the idea later tonight as time allows

Link to comment
Share on other sites

  • Hash Fellow

If it isn't possible to turn off ambience on a sprite, you may have to resort to using a particle effect that is an actual 3d shape, meaning the new "water". I think those really exist inthe scene and can be shadowed.

 

You'd have to experiment to get a particle setting that mimics what you were doing with sprites, presuming your sprite really was a blob, not a recognizable image.

Link to comment
Share on other sites

Wow, I was hoping there was something basic I was overlooking. I've got the look of the scene pretty much how I want except for the shadowed areas. It took a lot of time to get to this point. I hope I don't have to redo everything with something different.

 

When opening the sprite material, I don't see any setting for ambiance for the sprite. There is tint, color, and opacity. Even if there was an ambiance setting, this would not work right, since it would be impossible to control the ambiance as the sprite goes from sunshine to shadow. If the sprites themselves are not affected by shadow, as John pointed out, I'm going to either have to use something other than a sprite, or change the direction of the sunlight.

 

I'll see what water blobbies do. Are streaks also not affected by shadows?

 

Edit: As expected, a test confirms that streaks are also impervious to shadows. Since I can't do a search with "3d" sprites in the title, maybe someone has a link to a tutorial on them?

 

Edit: The new water feature will not do what I need it to do, besides, it takes way too long to render even with only one emitter - I have about 20 plus emitters in my scene.

Link to comment
Share on other sites

I had a go, just because I was wowed to be mentioned in the same breath as johnl3d. My blobbies appeared to hold a shadow - they looked less bright in the shade, but had the same specular appearance, but sprites would only cast a shadow. I think as robcat says it needs to be something with an actual 3d shape to hold a shadow.

Link to comment
Share on other sites

Are you able to animate the tinte-color over time?

 

Other than that, the post-approach could really help you. Render only particles out, than the other scene-elements.

Now load everything in for example AfterEffects and determine where the light/dark-borders are.

Draw a mask on a dark color-layer where the particles should look dark. Overlay it over the particles (not the other scene-elements).

 

Now you can animate the mask if your camera is moving, etc.

 

Another way would be to create a dark geometry which will cover the particles in dark areas. Now render this one out. After that, render particles to a separate image-sequence and then render the other stuff to another image-sequence. Now you can use the dark geometry as the coverage and it should work.

It is a little bit annoying, but it should work.

 

*Fuchur*

Link to comment
Share on other sites

  • Hash Fellow

If you have a complex shadow situation I doubt animating the color of the sprite over time will do.

 

I don't suppose a material effector will affect a sprite after it has been born, will it?

Link to comment
Share on other sites

Caroline, blobbies and water are out due to the increase in render times - my computer pretty much hangs up with the number of instances I need when using blobbies. It's sprites or nothing. Fuchur's idea of an overlay geometry may hold promise, I'll experiment with that and post my results.

Link to comment
Share on other sites

Overlay geometry in A:M could work. Depending on the resolution and quality needed, because this is a bit hazy on the particles.

 

This is a mess, but I don't have a lot of time today, and my particles would not go where I wanted them.

post-9673-1205743733_thumb.jpg

 

The green square is casting that square shadow on the orange. Notice that the 3 particles around the shadow square are a bit darker than the others. The shadow square has no influence on them.

 

As an experiment, I created a square that has a spherical combiner - spherical because I wanted the edges blurred, and i wanted it round so that I could tell what was what. The spherical combiner consists of one circle 100% transparent, the other 70% transparent and grey. They are blurred too.

 

In the picture you can probably make out the circular dark haze above the shadow square.

 

So you could move this square with the transparent material around and make it act like a shadow, and the particles are seen through the 70% transparency.

Link to comment
Share on other sites

You haven't mentioned what the sprites are supposed to represent - nor if this is for an animation or still ?

 

Perhaps you might be able to use hair instead ? Moving hair emitters that use the image you are using for sprites ? Hair responds to shadows. You can animate the density, length as well.

Link to comment
Share on other sites

Thinking it through, I believe the answer will be in compositing the scene. If I use semitransparent mesh to cast a shadow on the particels, the area behind the particles that already have shadow on them will also be affected by the screen and will get even darker, not desirable. I'd show you what I am doing, but it's Top Secret, the winning entry in this month's landscape contest :P

Link to comment
Share on other sites

the winning entry in this month's landscape contest

 

Huh. And you let us help you in all innocence. Never mind - you're going to need all the help you can get :D

 

Hair is a good idea. That's one of the things that's so great about A:M is there are multiple solutions.

Link to comment
Share on other sites

Well, I was able to render out just the sprites to a TGA with an Alpha channel. It was a bit tricky getting everything set up just right for the render because the sprites are bouncing off different surfaces. The solution was to group those surfaces and set their properties to transparent. That way the sprites could still bounce, but the background would still be black. The resultant render locks pretty cool. I'll share after the image contest. A slight but correctable drawback is the fact that the usual leakage of the sprites now also rendered behind the transparent bounce surfaces. A couple of dabs with the PS eraser took care of that.

 

Something quite annoying has been happening as I render these sprite intensive images. Since there are so many sprites in my scene, I usually have particles turned off as I am working on the chor. When I test render, I naturally want the particles turned on. The problem lies in the fact that after the render is done, the particles in my chor stay turned on. This in turn makes it almost impossible for me to continue working due to the slowdown. I would have thought that just because you turn on particles in the render, doesn't mean that it would also turn on particles in the chor after the render is finished. Is there a way to avoid having particles turned on by the render settings? Particles in render - Good! Particles in working chor - BAD!

Link to comment
Share on other sites

I didnt mean to cast a shadow with a object.

I meant overlay the particles with dark(black) geometry. Now render the geometry to one imagessequence. Then render the particles to another. Each one with an Alpha-Channel.

In a Post-programm (for example AfterEffects) you make the dark geometry transparent (for example 30%) and now the underlying particles (which are covered by the transparent geometry) should be darker for 30%.

 

That would work...

*Fuchur*

Link to comment
Share on other sites

Maybe I'm having a hard time visualizing or understanding how this would be done? The sprites are similar to clouds, semitransparent and all over the place. Think of them as fog rolling over a landscape, passing around the base of a cliff, going from sunlight to shade to sunlight. Everything except the particles are reacting properly to the shaded areas in the scene. The particles remain the same intensity through out. The compositing is taking care of that though.

 

Nancy:

 

This is for a still - I shudder to think the render times with that many sprites for a 30 second clip :blink:

Link to comment
Share on other sites

Nancy:

 

This is for a still - I shudder to think the render times with that many sprites for a 30 second clip :blink:

 

Then hair (sounds like it's for clouds) might do the trick if you use emitter images (same as your sprite) and comb it "cloud like" - use a variety of shapes for the surface emitting the hair - have it conform to your shape/path of the cloud area - use transparency (render times could be high)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...