Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ogre Projector shines through objects

In Ogre, i'm projecting a decal onto a sphere. However, the decal shines straight through the sphere and projects another decal onto the opposite side! How do I stop that?

material planets/Planet_Earth { 
  technique { 
    pass { 
      texture_unit { 
        texture earth_surface.png 
        filtering trilinear 
        scale 1 1 
      } 
    } 
  } 
} 

I'm afraid neither of the below answers are working. I have tried every shadow setting ald explored blender's texture settings, but nothing seems to work. The decal just renders both sides! It even happens in Ogre Tutorial 6! Any possible suggestion appreciated!

Note: I'm editing someone elses code, and just discovered that it's not a mesh, the sphere is being created in the code :O sowwy :(

like image 812
Magicaxis Avatar asked Sep 09 '26 02:09

Magicaxis


1 Answers

Enabling some form of shadows should fix it. Ogre Basic Shadows

like image 153
carpat Avatar answered Sep 11 '26 17:09

carpat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!