Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 16-Mar-2012 19:25:32

Alexandre_Brazil
Member
Registered: 8-Dec-2011
Posts: 227

Shadow

I would like to simulate the shadow of the animal on the paper, could give me a hint how I do it?
sombra.jpg

Offline

#2 17-Mar-2012 12:58:48

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Shadow

Hi !

create a file transShadow.material containing this

material TransShadow
{
   receive_shadows on
   transparency_casts_shadows on
   technique TransShadowTech
   {
      pass TransShadowTex
      {
         ambient 0.698039 0.698039 0.698039 0
         diffuse 0.698039 0.698039 0.698039 0
         specular 0.898039 0.898039 0.898039 0 20
         scene_blend src_alpha dest_alpha
      }
   }
}

then apply it to a plane under the object, and activate stencil shadows

Offline

#3 17-Mar-2012 20:17:25

Alexandre_Brazil
Member
Registered: 8-Dec-2011
Posts: 227

Re: Shadow

great, worked out and the result was very good.

Offline

#4 15-Apr-2012 15:36:55

Alexandre_Brazil
Member
Registered: 8-Dec-2011
Posts: 227

Re: Shadow

Hello friends
Some 3D objects with its shadow are defective. This is solely due to some detail in the 3D mesh or is there some setting in the material that may solve the problem?
I send a picture below to illustrate the problem.
Thanks again.

Link Image

Offline

#5 15-Apr-2012 16:11:53

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: Shadow

Yes sometimes the stencil shadows fail hmm this is a ogre issue
try to re export your object and be sure to weld all the vertices, it's usually due to multi sub object materials you can also try to change the poly material ids if you don't use them.

Offline

Board footer

Powered by FluxBB