Outerra forum

Anteworld - Outerra Game => Modding: Importer, Tools & Utilities => Topic started by: maxdmg on January 02, 2013, 05:11:07 pm

Title: Odd shadow-like thing on imported models
Post by: maxdmg on January 02, 2013, 05:11:07 pm
Trying to import just a few assets to test and we keep getting this dark shadow look:

(http://s2.postimage.org/srp2u0vyx/Bad_Shadowsor_Lighting_ping.png)

Using DXT1 format, made several changes, all with same result.

If I import it into UDK it had no issues.

Any ideas?
Title: Re: Odd shadow-like thing on imported models
Post by: Midviki on January 03, 2013, 01:19:41 am
Well... you need to give more details.For starters... what software are you using? Cause I had a problem.. and it was a full black texture on the object.But the cause of the problem was directory path problem.But now it works fine, and I'm using 3ds Max + Photoshop.

And the DXT1 format option... try to use the "default".There are other options that work as well with Outerra.. but my "default" is :

(http://i.minus.com/jFpT7opZsmp5u.jpg) (http://minus.com/lFpT7opZsmp5u)
Title: Re: Odd shadow-like thing on imported models
Post by: Midviki on January 03, 2013, 01:32:35 am
Ah.. yeah.. and the Collada export options ( make sure you export it directly to a short path( long links may not read the texture ), and yeah dont copy the export... it doesent work sometimes or most of the times (use the original export) ):

(http://i.minus.com/jInjCpMzBU5B8.jpg) (http://minus.com/lInjCpMzBU5B8)
Title: Re: Odd shadow-like thing on imported models
Post by: angrypig on January 04, 2013, 06:11:44 am
Can you send us exported COLLADA file?
Title: Re: Odd shadow-like thing on imported models
Post by: maxdmg on January 04, 2013, 08:27:57 am
Sure no problem.

See attached.
Title: Re: Odd shadow-like thing on imported models
Post by: maxdmg on January 05, 2013, 11:17:00 am
Can you send us exported COLLADA file?

Any news on this yet Angrypig?

I have even attached a new file (dae) with the model saved as Triangles.
Title: Re: Odd shadow-like thing on imported models
Post by: angrypig on January 05, 2013, 11:52:29 am
It seems like an older bug in the engine, try to add another object into scene like cessna or tatra... i'm trying to find this bug but it's not easy...
Title: Re: Odd shadow-like thing on imported models
Post by: maxdmg on January 05, 2013, 03:31:13 pm
I tried to import just a wall and had some odd results. See below.
                              In the engine                                                                              Not in the engine

(http://s7.postimage.org/cmo91p9wb/Dark_N_Lightwall1.png)

Is this related to the same Bug?

BTW using the build from yesterday, still getting same results.
Thanks
Title: Re: Odd shadow-like thing on imported models
Post by: angrypig on January 05, 2013, 04:07:24 pm
You can't compare texture with screenshot from the engine. In the engine the sun light and sky ambient light is applied. There is another set of parameters from material definition like color multiplier, roughness, reflectance that can completely change the final color.

And it seems the wall is in the shadow that is why it has blueish tint.
Title: Re: Odd shadow-like thing on imported models
Post by: maxdmg on January 05, 2013, 04:25:44 pm
I agree, It looks like a shadow..but where in the middle of no where at the airport you guys have in the engine is it getting it?

See below:

(http://s2.postimage.org/c1befu805/Wall_Color_Issue.jpg) (http://postimage.org/image/c1befu805/)
Title: Re: Odd shadow-like thing on imported models
Post by: angrypig on January 05, 2013, 04:46:32 pm
please send me the imported package, there is something wrong there...
Title: Re: Odd shadow-like thing on imported models
Post by: Midviki on January 05, 2013, 04:47:51 pm
I think he needs more polys.I think I had that problem with huge objects with few polys.
Title: Re: Odd shadow-like thing on imported models
Post by: angrypig on January 05, 2013, 04:50:08 pm
hmm yes if such big object has 6 triangles it can be problem
Title: Re: Odd shadow-like thing on imported models
Post by: maxdmg on January 05, 2013, 05:07:34 pm
Great idea looking in to this now.  Details to follow.
Title: Re: Odd shadow-like thing on imported models
Post by: maxdmg on January 05, 2013, 10:54:03 pm
hmm yes if such big object has 6 triangles it can be problem

Ok have now shrunk the assets, and increased the Tri count, here are the results:

(http://s7.postimage.org/wtqsvmycb/Dark_N_Lightwall2.png)
Be Damned if I know where the shadow is coming from... Prob Aliens!!
Title: Re: Odd shadow-like thing on imported models
Post by: Midviki on January 06, 2013, 03:35:41 am
Have you tried to rotate the object.. move it... test it in different positions... see how it behaves?Try it again with some other object and different texture... something more simple.Or if not... start looking in to the software you are using to create the object and texture, maybe the problem is there.As I told you before, my problem was from Photo-Shop when I had my "black texture" problem.
Title: Re: Odd shadow-like thing on imported models
Post by: maxdmg on January 06, 2013, 10:33:41 am
Have you tried to rotate the object.. move it... test it in different positions... see how it behaves? YES
Try it again with some other object and different texture... something more simpleYES.
Or if not... start looking in to the software you are using to create the object and texturePhotoshop, maybe the problem is there.As I told you before, my problem was from Photo-Shop when I had my "black texture" problem.

Tried Diff assets, Diff Poly counts, Diff Angles, Diff Textures,  All render great in UDK and Cryengine,  They are only having
those odd shadow effects in Outerra.
Title: Re: Odd shadow-like thing on imported models
Post by: angrypig on January 06, 2013, 10:50:17 am
Please send me COLLADA file for the "big object". The cube issue was caused by engine bug but this is different.
Title: Re: Odd shadow-like thing on imported models
Post by: Midviki on January 06, 2013, 11:21:35 am
Hehe... after all I managed to participate in here with an object as well ;D.

(http://i.minus.com/j7gf1p6Zk5u2z.jpg) (http://minus.com/l7gf1p6Zk5u2z)


And here is the .DAE file object.
Title: Re: Odd shadow-like thing on imported models
Post by: Midviki on January 06, 2013, 11:26:10 am
If you can't see the attachment, it is on the upper right of the screen.I don't know if its a visual bug on my side of the line.. but in case if it is the same... that's where I see it :D.
Title: Re: Odd shadow-like thing on imported models
Post by: Midviki on January 06, 2013, 11:46:28 am
I started playing with the object, rotating it, touching it with the ground... and the "shadow" is persisting only on that side of the object.

Details about the geometry... it has a 20,0 unit range on the edge around the face, 400 height and 265 width.. you can see from this print screen:

(http://i.minus.com/jXdM9h4ugkP0u.jpg) (http://minus.com/lXdM9h4ugkP0u)

The height of a "soldier" model that you have from the engine is like 75 and 85 units height, maybe it gives you some perspective of the values.

Title: Re: Odd shadow-like thing on imported models
Post by: Midviki on January 06, 2013, 11:52:37 am
And if it helps... I think this shadow bug is chained with the older "black with stripes" texture bug.I still have 2 screen shots I think with it:

(http://i.minus.com/jkeZ0f7AoQHjT.png) (http://minus.com/lkeZ0f7AoQHjT)



(http://i.minus.com/joPMbYLbPKutV.png) (http://minus.com/loPMbYLbPKutV)
Title: Re: Odd shadow-like thing on imported models
Post by: maxdmg on January 06, 2013, 12:16:06 pm
Please send me COLLADA file for the "big object". The cube issue was caused by engine bug but this is different.

Attaching Wall segment.  I have a hirez ver but too lrg to attach that does the same thing.
Title: Re: Odd shadow-like thing on imported models
Post by: maxdmg on January 11, 2013, 05:10:16 pm
any update on this yet Pig?
Title: Re: Odd shadow-like thing on imported models
Post by: cameni on January 12, 2013, 05:58:40 am
It's a depth buffer nonlinearity problem when using large coarsely tesselated objects in connection with huge view distances. There's a fix that slows down things a bit, but we want to make it adaptive when objects get close.

We'll make the fix an option in the configuration in the next version.
Title: Re: Odd shadow-like thing on imported models
Post by: maxdmg on January 12, 2013, 10:23:09 am
Thanks for the heads up.

Have a great day.
Title: Re: Odd shadow-like thing on imported models
Post by: maxdmg on January 20, 2013, 10:05:11 pm
Just checking on when you think there may be an update posted.  Would love to see our many assets placed in
Outerra.  If you need any further assets to test with just shout, we are happy to help get the problem resolved.

Thnx
Title: Re: Odd shadow-like thing on imported models
Post by: cameni on January 21, 2013, 02:40:06 am
Oh almost forgot about this, going to add that workaround flag.
There's one perf.problem with time flow on Nvidia that we need to fix, after that there will be an update.
Title: Re: Odd shadow-like thing on imported models
Post by: cameni on January 21, 2013, 10:25:54 am
From what program are you exporting the models? When we load it into Blender and then export from it, it looks ok. It seems to be a bug in the importer, but we don't know what is causing it yet.
Title: Re: Odd shadow-like thing on imported models
Post by: angrypig on January 21, 2013, 10:40:01 am
The problem is certainly in the importer and it is probably cause by Y_UP parameter.
Title: Re: Odd shadow-like thing on imported models
Post by: maxdmg on January 21, 2013, 03:45:31 pm
From what program are you exporting the models? When we load it into Blender and then export from it, it looks ok. It seems to be a bug in the importer, but we don't know what is causing it yet.
We are using Softimage 2013
Title: Re: Odd shadow-like thing on imported models
Post by: maxdmg on March 01, 2013, 09:49:48 pm
Hi,

Any movement or updates on this thread?

Thnx.
Title: Re: Odd shadow-like thing on imported models
Post by: cameni on March 02, 2013, 04:31:35 pm
The shadow problem was fixed in some previous update, I forgot to update this thread. About the Y_UP we are not sure if it was fixed or not :)
Please test it with the latest version.
Title: Re: Odd shadow-like thing on imported models
Post by: maxdmg on March 02, 2013, 08:06:11 pm
Sure thing and will post an update to the findings.