[RESOLVED] Bug maybe on Collada vs 3DStudio

[RESOLVED] Bug maybe on Collada vs 3DStudio

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

[RESOLVED] Bug maybe on Collada vs 3DStudio

Post by FabriceFABS »

Hey,

I want to place some objects on a map.
I begin in 3D with Blender and I don't know why the result is OK on 3DStudio (.3ds) and why it is NOT OK on Collada (.dae) witch is format I prefer use.
I would prefer use .blend directly too but seems the .blender file format changed on rencent Blender version and is no-more compatible with ASSIMP ? (I did a try I got nothing that a transparency object to reclaim).

Have a look
1. My object as it is in Blender :
Image

2. Exportation and use with Collada .(dae) format :
Image

3. Exportation and use with 3DStudio (.3ds) format :
Image

I precise that all exports are OK : I've imported objects back and they render correctly in Blender.
Did I miss something with Collada ? or in Blender / or a ASSIMP bug discovered ?
Is there a chance to see in future .blend as native format objects for Spring ?

Thank you.
Last edited by FabriceFABS on 25 Mar 2015, 22:53, edited 1 time in total.
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Bug maybe on Collada vs 3DStudio

Post by Anarchid »

First things to check:

1) Which Spring version?
2) Do you have any non-applied scale on your objects? (ctrl+a to apply scale and fix it)
3) Most probable: did you parent the circle to the cube and then move it *afterwards*? I think such operations somewhy cause Spring to double the offset value, resulting in the model "blowing up". (clear and reapply parent to fix it).
I would prefer use .blend directly too but seems the .blender file format changed on rencent Blender version and is no-more compatible with ASSIMP ? (I did a try I got nothing that a transparency object to reclaim).
You can help!
User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

Re: Bug maybe on Collada vs 3DStudio

Post by FabriceFABS »

Sup,
Anarchid wrote:First things to check:
1) Which Spring version?
Well last spring version V98.
Anarchid wrote:2) Do you have any non-applied scale on your objects? (ctrl+a to apply scale and fix it)
Oh yeah !
You are true. I forgot to say that the nugget is not that size, it has been scaled to 3.
Rectangular as original scale.... to 1.
Should I have to place all objects first and scale after ?
Anarchid wrote:3) Most probable: did you parent the circle to the cube and then move it *afterwards*? I think such operations somewhy cause Spring to double the offset value, resulting in the model "blowing up". (clear and reapply parent to fix it).
Well, I laught Blender, with its original cube. I change its size.
I placed after this torus that was too small and change its size.

I've heard/read about parental liks btw ojects. I don't rememeber where. Is it important ?
I didn't do such operations btw rectangular and the torus....
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Bug maybe on Collada vs 3DStudio

Post by Anarchid »

Should I have to place all objects first and scale after ?
See if selecting all objects and then Ctrl+A -> Apply Scale solves this.
User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

Re: Bug maybe on Collada vs 3DStudio

Post by FabriceFABS »

OK Done.
No, it doesn't work better...

What is sure now is that
- Rendering on .dae Collada works ONLY (until we/I found what is wrong) if all objects scaled to 1 or original dimensions kept when added with Blender menu.
- 3DStudio .3ds format IS OK on any rendering situation.
User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

Re: Bug maybe on Collada vs 3DStudio

Post by FabriceFABS »

Interesting : When I put back both objects to scale = 1 in Blender, the display result in Blender is like in SpringGame ! :shock:
We see that both objects moved too... (in Blender).

I don't manage well Collada Specs that is now current trouble...
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Bug maybe on Collada vs 3DStudio

Post by Anarchid »

I think you have failed to apply scale.

It should have your objects like they are enlargened, but the scale value in transform panel will be 1.

However, this does tell us that collada scale parsing in spring is very likely shot even when the scale is uniform.
User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

Re: Bug maybe on Collada vs 3DStudio

Post by FabriceFABS »

Well I have no choice...

When I pull on an objet direction (mouse on line squarred at the end) to stretch it (on x and/or y, and/or z directions) the sizes values changes but also scale values changes too I don't know why...
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Bug maybe on Collada vs 3DStudio

Post by Anarchid »

If your object's grab arrows end up with squares, it means you are in scale mode.
So when you drag them, you change the object's scale.

Applying rotation changes it from object scale to mesh vertex positions.
User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

Re: Bug maybe on Collada vs 3DStudio

Post by FabriceFABS »

I understand, but I'm a bit confused...

After adding an object, how do I change its size for that fits to Collada mode ?
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Bug maybe on Collada vs 3DStudio

Post by Anarchid »

either:

a) scale it like you do now but apply scale afterwards, or
b) only change the sizes when in Edit mode, which you activate by pressing [tab].
User avatar
enetheru
Posts: 627
Joined: 11 Jun 2010, 07:32

Re: Bug maybe on Collada vs 3DStudio

Post by enetheru »

i just spent the last few hours exporting collada from blender and didnt have to apply the scale.

just say'n
User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

Re: Bug maybe on Collada vs 3DStudio

Post by FabriceFABS »

I'm currently AFK (on phone) and can't try.
Anarchid wrote:either:

a) scale it like you do now but apply scale afterwards, or
b) only change the sizes when in Edit mode, which you activate by pressing [tab].
I had a small think about edit mode and forgot it after. Nice say.
I will try it in few hours.
Anarchid wrote:
FabriceFABS wrote:I would prefer use .blend directly too but seems the .blender file format changed on rencent Blender version and is no-more compatible with ASSIMP ? (I did a try I got nothing that a transparency object to reclaim).
You can help!
Yes, thank you it's this thread I've seen.
We'll I would be glad to help this way... but TBH after Python learn few years ago, I've bought a C++ book 2 months ago and I'm still on the firsts chapters....
I do too much things + playing takes some time...
Just hope I'll manage well C++ one day.
enetheru wrote:i just spent the last few hours exporting collada from blender and didnt have to apply the scale.

just say'n
Yes but in case some objects are too small ?
However, I don't understand why objects should be so big in Blender to get a "normal" size on a map....
Scale1 objects results in micro-objets in spring...
User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

Re: Bug maybe on Collada vs 3DStudio

Post by FabriceFABS »

Anarchid wrote:either:

a) scale it like you do now but apply scale afterwards, or
b) only change the sizes when in Edit mode, which you activate by pressing [tab].
a) => How applying scales afterwards ?

Your exeperience pays ! I did b).
Image

.dae / Collada result :
Image

Thank you very much... some works waits me now :mrgreen:
PS : I don't know if I did it wrong @ the beginning, but it's strange why .blender - .3ds/3DStudio formats accept it (this "error") and not .dae/Collada...
Post Reply

Return to “Map Creation”