mercredi 30 mai 2012

double sided material


I am animating a page turn with textures mapped on both sides. I met some problems with projected UV and double side mapping. Here's my turnaround :

 -I first animate a plan with non-flat start due to the book curvature. -the best way to project the UV (one by side)from the camera view (particular need for me) was export the page animation (with 2 modifiers) as lightwave mdd then import the mdd back on the plan after killing the modifiers. Mdd solution convert animation to one shape per frame. At the wanted frame, select the actual shape, create a square texture in the image editor then select the page in edit mode then project UV from camera view. Done
Same thing for the last frame with last shape. You have now both front and back UV .

-Create 2 materials for both sides.

-Create a node material with the 2 materials linked to a Mix node. Use a Geometry node Front/Back linked to the Mix Factor.

-Back in the 2 materials textures entry, choose the appropriate UV

Done

Now, here's the problem I met: trying to project UV from the camera on a animated mesh with the UV Project modifier fail most of time. Project UV from view doesn't work whith the modifiers because done in edit mode. To obtain a correct UV from Project UV from view you need to open a square texture in the image editor. Using texture with material node results overbright textures compare to standard material. No official solution except from RGB curves correction. The back side texture can not be anti aliased.

Aucun commentaire:

Enregistrer un commentaire