About Store Forum Documentation Contact



Post Reply 
Texture positioning in mesh editor
Author Message
Biga Offline
Member

Post: #1
Texture positioning in mesh editor
Probably it is rather a beginner question, copied from Graphics section.

Hi,

I have an Earth object created in 3DS Max. It is a geopshere with relief created with Displacement modifier from a bump image. I want use a NASA texture too but when I add it as material to my imported FBX object in esenthel, the relief doesnt match with the texture, though they (texture + bump image) have the same resolution. I need shift it horizontally, vertically it seems ok. I see the Himalaya in Africa though in good latitude. smile
I see an icon in the editor with the tooltip "Enable this and click on the screen to set material at that location", assumed this is what I need, but seems no effect if I click to anywhere to the mesh.
Any help greatly appreciated!

thanks,
Gabor
04-30-2014 11:39 AM
Find all posts by this user Quote this message in a reply
para Offline
Member

Post: #2
RE: Texture positioning in mesh editor
Do you have the NASA texture applied correctly in max? It would be easiest to shift the UV's or the texture itself (photoshop/gimp). You can't do it in the editor, but you can via code or custom shaders. Or maybe you need to reset your transforms/swap axes at export/etc.. ?

That button is for applying the material to a mesh (or part) on the whole, it doesn't matter where on the part you click only which mesh part (if there's more than one). You see no effect probably because you apply the same material to your sphere.
04-30-2014 06:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Biga Offline
Member

Post: #3
RE: Texture positioning in mesh editor
Hello,

no, I added the texture in Esenthel. I made only the mesh in 3DS Max as I would like handle textures in Esenthel. Only thing I made in 3DS Max, the "relief", applying displace modifier with a bump image so I got a real 3D geopshere, but without any texture.
The NASA texture itself does look good I mean I added it a ball material and Esenthel applied it correctly - at least poles are OK and not distorted.
My problem is the relief which I added in 3DS Max isnt in sync with the satellite texture - the mountains are in different position on mesh as the texture shows.
So do you think it is better to make everything in 3DS Max?
My problem is that I would change the textures in the game, depending on what mapmode the player chooses. If he chooses terrain mapmode, I show the satellite texture, if he chooses region/province mapmode then I have to show an another texture.
Or Im totally wrong about designing this?

thank you,
Gabor
04-30-2014 08:59 PM
Find all posts by this user Quote this message in a reply
Dwight Offline
Member

Post: #4
RE: Texture positioning in mesh editor
You would need to unwrap it in 3DS Max, that's why it is not working.

Yes, make everything in 3D Studio Max.
04-30-2014 09:13 PM
Find all posts by this user Quote this message in a reply
Biga Offline
Member

Post: #5
RE: Texture positioning in mesh editor
Created .fbx with with unwrapped topo texture and geosphere mesh based on heightmap. After setting UV offset in 3DS Max, it looks fine in viewport and in render.
But offset seems lost when I want import this .fbx to Esenthel. Same bad offset as when I added texture manually in Esenthel. Maybe I missed some export setting in 3DS...
(This post was last modified: 05-01-2014 11:05 PM by Biga.)
05-01-2014 11:05 PM
Find all posts by this user Quote this message in a reply
Biga Offline
Member

Post: #6
RE: Texture positioning in mesh editor
[Image: memerror.png]

ah sorry it is 32bit UI.
works with Esenthel 64.exe.


But well seems Esenthel doesnt load UV offset back from .FBX file.
If I import back .FBX into 3DS Max, it is fine.
Should I use another file format?

found a method should work for me: texMove( Vec2(...
but seems ineffective if I use after loading mesh. weird, texRotate works fine...
(This post was last modified: 05-02-2014 02:24 PM by Biga.)
05-02-2014 01:47 PM
Find all posts by this user Quote this message in a reply
Rubeus Offline
Member

Post: #7
RE: Texture positioning in mesh editor
Did you try using setRender after using texMove?
05-02-2014 02:39 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
RE: Texture positioning in mesh editor
Quote:After setting UV offset in 3DS Max, it looks fine in viewport and in render.
Can you let me know what UV offset are you talking about?
Thank you
05-02-2014 10:15 PM
Find all posts by this user Quote this message in a reply
Biga Offline
Member

Post: #9
RE: Texture positioning in mesh editor
I thought this offset.

[Image: uvmap.png]

it is ok in 3DS Max, but I got this in Esenthel:

[Image: offset2.png]

Im trying using texMove to place texture to proper place.
(This post was last modified: 05-03-2014 05:53 PM by Biga.)
05-03-2014 05:52 PM
Find all posts by this user Quote this message in a reply
para Offline
Member

Post: #10
RE: Texture positioning in mesh editor
This uv offset works only in max, on the material level not on the mesh (it doesn't change meshes UVs). Add a UV Map modifier and play with that. And try what Rubeus suggested.
05-03-2014 07:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #11
RE: Texture positioning in mesh editor
I can't find any info on UV offsets in FBX SDK, if you know where to look, please let me know. Thanks
05-03-2014 11:02 PM
Find all posts by this user Quote this message in a reply
Biga Offline
Member

Post: #12
RE: Texture positioning in mesh editor
thx for your input.
works fine with texMov.
with Vec2(0.25,0) it is fine.
05-05-2014 07:12 PM
Find all posts by this user Quote this message in a reply
Post Reply