Importing a Lightwave Object

I have looked much around. Obviously i can’t take this away as it is, i think, but what should i do, to make it work ?
This isn’t a model i need to use, but for the actual state of my project it would fit to put a cool looking base into the space, where my ship can lift of and fly wherever it shall fly, so i looked out the Celestra
http://www.foundation3d.com/index.php?categoryid=38&p13_sectionid=338&p13_fileid=87
It’s not too big … i tried out different formats to import, it swaps around 13 to 30 mb, but there is something wrong with the normals.
jme is saying me:

Unknown statement in OBJ! o
OBJ mesh celestra-geom-0 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-1 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-2 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-3 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-4 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-5 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-6 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-7 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-8 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-9 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-10 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-11 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-12 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-13 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-14 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-15 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-16 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-17 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-18 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-19 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-20 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-21 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-22 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-23 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-24 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-25 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-26 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-27 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-28 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-29 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-30 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-31 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-32 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-33 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-34 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-35 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-36 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-37 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-38 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-39 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-40 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-41 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-42 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-43 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-44 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-45 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-46 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-47 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-48 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-49 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-50 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-51 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-52 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-53 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-54 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-55 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-56 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-57 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-58 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-59 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-60 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-61 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-62 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-63 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-64 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-65 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-66 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-67 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-68 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-69 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-70 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-71 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-72 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-73 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-74 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-75 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-76 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-77 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-78 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-79 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-80 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-81 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-82 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-83 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-84 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-85 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-86 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-87 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-88 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-89 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-90 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-91 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-92 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-93 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-94 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-95 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-96 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-97 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-98 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-99 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-100 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-101 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-102 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-103 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-104 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-105 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-106 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-107 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-108 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-109 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-110 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-111 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-112 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-113 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-114 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-115 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-116 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-117 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-118 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-119 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-120 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-121 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-122 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-123 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-124 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-125 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-126 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-127 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-128 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-129 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-130 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-131 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-132 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-133 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-134 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-135 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-136 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-137 doesnt contain normals! It might not display correctly
OBJ mesh celestra-geom-138 doesnt contain normals! It might not display correctly

I looked a bit around and there is a function in blender, where i could bake normals, which is not working like i am trying it.
So my question: Is it impossible to import this for me ? How could i learn to import sth. like that, as i have similar problems with other various chosen models.
I am no 3D-Artist, so i need a platform, that gives me now the feeling, that i am really coming forward, so i would like to take a ship rather than just a platform ^^

Well if there are no normals at all, The only material that might work is the UNshaded one in jme. However you can completly forget about lighting then.

So you need some kind of external modeling programm to fix this error first.

Then after import you need to generate the tangents, using TangentBinormalGenerator, else you will get ugly light artifacts.

…if you use normal maps or bump maps. Otherwise, you don’t need tangents.

This doesn’t help me ^^
I am using exactly that model there ^^
I’ll look for a blender function to use a tangentbinormalgenerator later ^^

Well, if you want a lit model then it will need normals. That much is true. lighting = “how much is this surface facing the light” = has to have normals.

so if i can render it in blender, that doesn’t mean it has normals, okay. that’s something i didn’t even could think of first, when i started my question

When i rendered it, i thought this would reaallly look nice, if i could fly into that bay, even if i am also not used to blender itself now - quite 2 years ago, i touched that to build Mc Moneysacks Moneybin

When you export to OBJ in blender there is usually a little tick box on the left for “Export normals”. Tick that one :smile:

2 Likes

Wow ! That worked !

Another thing is that unknown Object o
and now another unknown object l’s

what could that say to me ?

Unknown statement in OBJ! o
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l
Unknown statement in OBJ! l

Aha,Aha,Aha,Aha - i also had to set a mark at “Triangulate Faces” - How bitter i didn’t see that before :wink:
These Errors are left, but my model is in and working, i don’t care, if there maybe failures in it - what i saw is fitting for the moment :wink:
Thx !

Later, when it is possible, i’ll make a small screenshot of it ! :wink:

Unknown statement in OBJ! l was saying, that i had to fix the normals - what i achieved, even if i don’t know what i really did - i just followed an youtube tutorial on that.
left is unknown statement in OBJ! o

As i have another object containing 5 main objects and this only one, the other one is throwing
Unknown statement in OBJ! o 5 times, i now know, that this unknown statement will be another null pointment in my file, in this case the base node of the object itself.
but has anybody an idea, what this error may hint me to ?
Is there a possibility to get more information about that ?
later i am running into this error

java.lang.OutOfMemoryError: GC overhead limit exceeded
	at com.jme3.scene.plugins.OBJLoader.readFace(OBJLoader.java:287)
	at com.jme3.scene.plugins.OBJLoader.readLine(OBJLoader.java:379)
	at com.jme3.scene.plugins.OBJLoader.load(OBJLoader.java:578)
	at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:288)
	at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:374)
	at com.jme3.gde.core.assets.SpatialAssetDataObject.loadAsset(SpatialAssetDataObject.java:94)
	at com.jme3.gde.core.assets.SpatialAssetDataObject.loadAsset(SpatialAssetDataObject.java:54)
	at com.jme3.gde.core.assets.AssetData.loadAsset(AssetData.java:130)
	at com.jme3.gde.modelimporter.ImportModel.copyModel(ImportModel.java:209)
	at com.jme3.gde.modelimporter.ImportModel.access$000(ImportModel.java:64)
	at com.jme3.gde.modelimporter.ImportModel$1.run(ImportModel.java:103)
	at java.lang.Thread.run(Thread.java:744)

Btw. One time missing object o fitted well, butin this case it’s a little bit more tricky, as the ship is another time a little bit bigger.

the unknown statments are usually fine to ignore.

Well increase your heap size -Xmx9000m (adjust for sane value)

It’s also working for big ones ! :wink:
Even if that is one model out of 6 pieces, but whatever, i have my own little Battlestar Galactica Testplace :wink:
Framerate is low due to several reasons. I am still no king in the 3d mesh thing, but i understood several things and will keep on going.
And by the hell - i have the feeling, that this kind of steering is more complicated than i just thought. If i didn’t had my “stopp all forces” button, that would be awful !

I finally learned a little bit more.
I reduced the polycount of my galactica model to about 35%, which really is an edge, where the loose of detail get’s visible, but this compromise is not that bad.
I also worked me out a new texture for texturing the ship, following the shading and all that stuff.
i don’t really know yet how to use the lightmaps correctly i got or how that glow may work, but i think this will come in the future too.
I also build me a new skybox out of a real star heaven, and i really would like to have that a spheremap, but for now i don’t know yet, how i could produce it.
Given my resource, which really is big (16kx8k), using 6 tiles with 1k for now, i think it should be possible to just get a spheremap out of that thing, not ?
Finally i implemented JMEPlanet for now for having something like a scene i need, by meaning a planet, where this setting is on.
I would love to use something like that, giving it the earths color, height and lightmap, but also that is out of scope right now.
I am just reimplementing my models, reducing some vertices counts and managing that files.
I know there are more productive usecases, but i am happy to have just achieved all this since now.
This modelling stuff is the most big problem of all, but i need them … so let’s continue.

https://scontent-fra.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/10565118_835135086568980_623949694191999440_n.jpg?oh=36501e29443af701bda25eb6274286e0&oe=557BBFC5

https://scontent-fra.xx.fbcdn.net/hphotos-xpa1/v/t1.0-9/10556217_835135083235647_3553302430544221996_n.jpg?oh=fffd89c4a43778d489aa4c57909b8c38&oe=55BD658F

https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xfa1/v/t1.0-9/10561699_835135076568981_3389585288837404375_n.jpg?oh=1a9329ed921cf5a4c124d58b09be97cc&oe=55BB4253&__gda__=1433496677_f7bd03da206a9d7d06ecce2bab63188d

https://scontent-fra.xx.fbcdn.net/hphotos-xap1/v/t1.0-9/11034103_833182230097599_20443471906050804_n.jpg?oh=ba87aa83dcba5617033bd7d5e696d0a3&oe=55A80069

https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xap1/v/t1.0-9/22684_833182656764223_4085400058642739914_n.jpg?oh=5eac018874dcf8c56aa8e3728c8198e4&oe=55779F5E&__gda__=1438215731_c25105467327d958efeeaf2b2413180e

https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/11069399_831944693554686_1706938551845155886_n.jpg?oh=a25386925645dc9323385f0f693c3743&oe=55A734FF&__gda__=1438262677_dc60c758b95fe96262acb5edb090ba9a

And finally my latest Snapshot with Fraps.
My machine is really bad - as i think, so it’s kinda slow.
I have a Core2Quad Q8200 and a Radeon HD4550, so i think, giving it too much details must result in some slow performance …

Ah - Finally i really have problems attaching my lights because all of this. They look fabulous, but i can’t attach as many of them as i wanted.