PDA

View Full Version : vertexpaint 4 faking shadows


countessZanne
08-15-2003, 09:29 AM
Hi, everyone.

I'm have a scene that looks good but has way too many lights so I wanted to use vertex paint to cut the # of lights down. Can someone here can clarify the "vertexpaint modifier" and "assign vertex color" utility (if needed) for me.

Just to test things out, I just placed a geosphere above a plane. I placed a dirt texture onto the plane and used vertexpaint to simulate a shadow coming from the geosphere. I have "vertex color" checked and shaded in the plane's display properties so I can see the shadow. Everything looks fine in the viewport, but I don't get the shadow when I render. Same goes for "assign vertex color" utility - changes in viewport and not in render.

Now I know that if I use vertex color in the diffuse map channel I can see the vertex color, but how do I see BOTH the dirt floor AND the vertex color/shadow I made? Using a blend material kinda worked, but is that a good way of going about things? <-- Specifically: dirt mat 1, vertex color mat 2, gray material for mask.

Is this where the note in Max's tutorials come into play: "Vertex color is used by video game real-time renderers to tint the 3D model. In general, if you’re going to render inside 3ds max, it's not a good idea to use vertex color as a substitute for a material." Am I not seeing anything becuase I'm not using a game renderer? And if true, (arrrgh! after all that) vertex painting will not be a shortcut for me to decrease the amount of lights in my scene...?

Thanks for your help,
Suzanne

spacefrog
08-15-2003, 10:45 AM
Hi Suzanne:

you are on the right track with the material-assignement:

But i would take a little different approach ( never used vertex-paint for myself, but did a quick test)

Why not use the Vertexcolor to Blend the clean texture with the dirt texture ?
with maps it would look like:

Diffuse Color: Mix
--> Color1: your clean texture
--> Color2: your dirt texture
--> Mix Amount: Vertex Color

you could use the same technique using a blendmaterial:

Blend Material:
--> Material 1: Your Clean Material
--> Material 2: Your Dirt Material
--> Mask: Vertex Color

As far i can see, you can only get the Vertex COLOR channel to
work in you Renderings, but not the Illumination or Alpha Vertex Channel ( at least in Max 4, maybe different in Max 5 )

but you could paint greyscale and then use "Vertex Color" in your illumination or opacity slot to use it for Light/shadow or transperancy effects

If the help files state, to not use "Vertex Color" for rendering, it does mean it's better to do this kind of stuff with normal texture maps that you can paint in photoshop etc, and use them for finetuning your bright and dark areas, cause you have more control and large resolution, cause verex painting depends on you geometry

;-) cheers Josef

countessZanne
08-17-2003, 09:07 PM
Thanks for the response, Josef! Sorry it took so long to reply - for some reason I wasn't able to post in these forums.

As your your advice, I tried all suggestions and they work well. I guess there's just so many ways to go about doing something in these programs and I'll just have to figure out what works the best and the quickest.

Thanks again,
Suzanne

CGTalk Moderation
01-15-2006, 09:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.