Page 1 of 1

Wierd wall color problem

Posted: Fri Feb 13, 2009 1:24 am
by Bambino
I want to make a wall drive through and add color to it and make it slightly transparent. What I do is something like this:
box
name box
position 100 0 0
rotation 0
size 5 30 50
drivethrough
color 0.75 0.75 0.75 0.75
end

Then when I go to test it I can drive half way then I just get stick and can't go all the way though it, is there something I'm doing wrong?

Re: Wierd wall color problem

Posted: Fri Feb 13, 2009 2:06 am
by blast
It is likely that you are colliding with another object. As a test, try with just the above object and see if you can drive through it properly. If that works, then it's another object you're hitting.

Re: Wierd wall color problem

Posted: Fri Feb 13, 2009 2:54 am
by Bambino
Alright, tried it with just that object and I can only go about half way through it before I stop, then it's the same problem as above. :?

Re: Wierd wall color problem

Posted: Fri Feb 13, 2009 2:57 am
by dango
There is a problem with the box and pyramid objects when they are drivethrough and have a material/textures/colors. Use meshboxes and meshpyramids instead. Or heck, just use meshes.

Re: Wierd wall color problem

Posted: Fri Feb 13, 2009 3:21 am
by Bambino
So it's a bug, ok. Time to learn something new :D

Re: Wierd wall color problem

Posted: Fri Feb 13, 2009 4:22 am
by Agent West
or do something like this:

material
name clear
diffuse .75 .75 .75
end

box
name box
position 100 0 0
rotation 0
size 5 30 50
matref clear
drivethrough
end

:)

Re: Wierd wall color problem

Posted: Fri Feb 13, 2009 4:53 am
by Bambino
Ok, I copied and pasted exactly what Agent west did and I got stuck again around half way through. If it make any difference I run Windows Vista

Re: Wierd wall color problem

Posted: Fri Feb 13, 2009 6:07 am
by trepan