Problems building or running the engine, queries about how to use features etc.
-
guillaumequest
- Kobold
- Posts: 32
- Joined: Thu Aug 11, 2011 10:00 pm
-
Quote
-
0
login to like this post
Post
by guillaumequest »
Hello,
I tried to add
to my material scirpt and it renders wireframe correctly except that we can't see through the mesh.
Anyone knows hot to fix that ?
Thanks,
Guillaume
-
lingfors
- Hobgoblin
- Posts: 525
- Joined: Mon Apr 02, 2007 12:18 am
- Location: Sweden
- x 79
-
Quote
-
0
login to like this post
Post
by lingfors »
guillaumequest wrote:Hello,
I tried to add
to my material scirpt and it renders wireframe correctly except that we can't see through the mesh.
Anyone knows hot to fix that ?
Thanks,
Guillaume
What do you mean "can't see through"? You can't see the backside of the object? In that case, use "cull_hardware none".
In case you mean you can't see other objects behind the wireframe one... I have no clue, I have never had that problem.
-
Mind Calamity
- Ogre Magi
- Posts: 1255
- Joined: Sat Dec 25, 2010 2:55 pm
- Location: Macedonia
- x 81
-
Quote
-
0
login to like this post
Post
by Mind Calamity »
And to fill in on lingfors, if you already have
in your material script, this could be the "problem" you are facing, to reverse it, either delete the line or set:
Which is the default behavior of OGRE materials.
-
guillaumequest
- Kobold
- Posts: 32
- Joined: Thu Aug 11, 2011 10:00 pm
-
Quote
-
0
login to like this post
Post
by guillaumequest »
Thanks a lot ! I just added "cull_hardware none" and it worked