ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:
Ambiera Forum > CopperCube > Help with CopperCube
Imported static mesh - collisions
Author Text

Robo
Guest
Quote
2020-01-14 12:17:10

I have so far found that imported static mesh often have a one sided collisions when used in CC.

I really wanted double sided collisions as will enter buildings from the outside and walk inside it and want all collisions to work as expected.

.X = inside collisions work well but not outside
.ms3d = outside collisions work but not inside
.obj = no collisions work by default

Using Blender to solidify is a bad idea as creates another layer inside the old one and causes collision issues a lot...doesn't work.

Can anyone suggest a fix to this big headache of mine as its wrecking my game prospects at the moment.... ???

any ideas ?


carlosm
Registered User
Quote
2020-01-14 16:29:51

If you understand well, you made a room or place and next to a collision works, but when you enter the room inside it does not work?


carlosm
Registered User
Quote
2020-01-14 16:43:52

well if that's a look at the example of the coppercube itself. the first person shooter name example.

I have a wall myself that they are colliding on one side and the other.


j9907
Registered User
Quote
2020-01-14 17:04:29

That is very odd. Collision should just work. I'm having issues too, but with static X meshes with vertex clors. They disappear depending on the camera angle..


Robo
Guest
Quote
2020-01-14 23:24:34

wrote:
well if that's a look at the example of the coppercube itself. the first person shooter name example.

I have a wall myself that they are colliding on one side and the other.


ok - so is that a wall you made with CC itself or an imported mesh ? My post refers to imported meshes only...


Robo
Guest
Quote
2020-01-14 23:27:29

wrote:
That is very odd. Collision should just work. I'm having issues too, but with static X meshes with vertex clors. They disappear depending on the camera angle..


I'm not sure if I ever seen that happen to me yet.
I have noticed a big improvement to lighting on some meshes if you remove the vertex colors then recalculate normals and tangents - try that.

select object / right click modify selection / etc..


Robo
Guest
Quote
2020-01-15 11:20:17

Robo wrote:
I have so far found that imported static mesh often have a one sided collisions when used in CC.

I really wanted double sided collisions as will enter buildings from the outside and walk inside it and want all collisions to work as expected.

Can anyone suggest a fix to this big headache of mine as its wrecking my game prospects at the moment.... ???



I found the solution to my own problem:

The 'colsmalldistance' adjustments does indeed make things easier to walk over objects (use like 0.015 - 0.02) or less likely to walk through the walls (using like 0.01 - 0.015) BUT and yes its a BIG 'but' that from my testing will not 100% stop the player walk through certain tight spots on your 3D static mesh and out the other side (ie fall through map or walk through the wall).

The solution I found was to create a child copy of the 3d mesh inside the original one but just slightly smaller so instead of 1,1,1 - use 0.99,0.99,0.99 or something like that.

This way you can 2x lots of collisions stopping the player going through walls etc and definitely makes a nice difference - it actually works like 99.99% fine now...

The other benefits of this method is that you now can have different textures for inside and out if you wish. Also the inside mesh can make use of normal textures and the outside one not if you want to use fog outside...so there is that benefit also.

ps dont use Blender to add solidify - its stuffs things up.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (you are not logged in)


Text:

 

  

Forum Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   





Software: Ambiera Light Forum. © 2008-2019 Nikolaus Gebhardt, Ambiera e.U.