[SOLVED]lighting material apply to j3o problem

Its time i can use JME to use j3o(long time i cant using it)

I have also issue that sometimes i cant create ”Advanced j3o”. it just do nothin when i click this option. But i have done this option on my character.

Then i tried do: http://www.youtube.com/watch?v=Feu3-mrpolc

but UV coords seem to be lost.

long time ago normen said:

”Just select a geometry in the SceneComposer and in its properties, select “create j3m”, then you have a j3m material file you can edit, assign textures to etc. UV coords wont be changed.”

but on ”+man-geom-1 Properties” and on SceneSomposer Window i have no option to “create j3m”

or maybe someone know how to change unshaded material to lighting without change uv coords (IN CODE)?

Help will be greatful :slight_smile:

UV coords have nothing to do with the material, they are stored in the mesh, so you just need to apply a new Lighting.j3md based material. Why you want to do this for each model in code if you can do it once in the SDK, you will probably have to adapt some things about the models / materials anyway.

i mean texture coords are missing when i apply a new Lighting.j3md based material.



like in video in 2:50 there is change to lighting. I do the same but texture coords are missing.



i have generated tangents and i see normal map with difusse map. But texture cords are just not proper

No they do not disappear when you just apply a new material, simply not possible.

hmmm i can give a screenshots

http://i.imgur.com/TYw7L.png

http://i.imgur.com/NUtkE.png

http://i.imgur.com/Ud0wQ.png

http://i.imgur.com/uWAXz.png



flip or not flip dont work

Without seeing the original texture I cannot judge how the UV map is applied. Anyway I think you spend your time the wrong way if you try to prove that the UV coordinates disappear, they definitely do not disappear. It looks more like your other, “new” image needs to be flipped or simply expects a completely different UV map.

i dont want to proof anything(it was just my first stupid suppose ;/), i just need help becouse as you see it don’t work for me :frowning:

i tried flip normal image or diffuse or a both of them and it give nothing ;/



Normal map was generated from diffuse texture

or this normal map must be generated via blender? i tried use SSbump_Generator_5_3



here are textures:

http://intre.oxplay.net/character.jpg

http://intre.oxplay.net/character_normal.jpg

as i see, i can’t fix it.



So i must do it in code(if this is possible)



i tried many:

  • flipping(it change nothin)
  • change textures
  • use unshaded material(but it don’t work too)
  • tried use SeperateTexCoord(i dont know what it do)



    when i apply texture(with normal map or not) to it. It have bad texture coordinates.

    Maybe its blender issue(with sended data)



    JME issue? don’t know but propably not, becouse when i change material via code, then it dont work too.

    Where are Texture coordinates saved? In object? in material?



    How to get it in code?



    im sorry for continuing this topic, but i can’t find solution myself.

1 way:

just open a texture (in JMP rightClick on a file → edit texture) then flip a texture woth a flip tool and seve it. I do not remember what exactly you should flip Y/X.



way 2:

Select a project, click on the “Import Model” button located in the menu. Import a blend file. It should import a model correctly.

1 Like
1 way:
just open a texture (in JMP rightClick on a file -> edit texture) then flip a texture woth a flip tool and seve it. I do not remember what exactly you should flip Y/X.


its normal this setting textures are upside-down?
http://i.imgur.com/UvFSk.gif
about flipping textures(i tried first to rotate) i have strange thing: I have the same material from texture 4 and texture 1.
http://i.imgur.com/SI2n7.gif
http://i.imgur.com/lSTCA.gif
http://i.imgur.com/WuK4l.gif
http://i.imgur.com/VALIn.gif
http://i.imgur.com/efhOM.gif
http://i.imgur.com/dR9uz.gif
http://i.imgur.com/8cLm3.gif
http://i.imgur.com/PmTIy.gif
http://i.imgur.com/ivKLa.gif
http://i.imgur.com/bxrAa.gif
http://i.imgur.com/k74rx.gif
http://i.imgur.com/Y37ND.gif
Sorry for so many but i want show you everything(becouse maybe it's problem)
In some time i will try flip it other way, BUT WHY 4 and 0 material IS THE SAME? (yes i saved all images)

rotated in character2 Flipped x work!


way 2:
Select a project, click on the “Import Model” button located in the menu. Import a blend file. It should import a model correctly.

i dont known i can import blend files(i thinked it's not ready) and propably i have no plugin to it.
i have all objects in one blender file(becouse all armors,etc use same skeleton). so it tell me "Cannot import this file"(no plugin or other error?)



ok this is strange i had to rotate + flip x but ok :)

possibly, blender loader is still in development. I would suggest to use ogre for animated models and obj is for static objects.



way 2 will make a j3o file converted from the blend file with uv corrections. just use “import model” button.