how to texture cube faces

Hello,

I applied a texture to a cube which I UV unwrapped from Blender. When I hit play in the editor, the cube faces are the right directions

cube-in-editor
2855231--208729--cube-in-editor.png

When I build the project and deploy the app, the cube is flipped 90deg on x & y axis.

cube-deployed
2855231--208728--cube-deployed.png

No matter what way I rotate the cube in the editor, it’s sideways when deployed :eyes:. I could swap the texture’s colors, but that seems like hack and i’d love to know what i’m doing wrong. If you need more info or I’m not describing this well, please let me know.

here are my settings:

Cube material:

Thank you,
monkeybrainz

That is… really weird. I’ve never seen anything like it. You’re building and deploying to what platform?

1 Like

glad to hear it’s not normal. I’m deploying to HoloLens. i’m now wondering if i need to set all objects’ orientations somewhere. i attached an emitter and everything comes out sideways too!

Ah. I haven’t done any HoloLens development (alas), but I imagine it involves some library that moves the camera (and/or objects in the world) according to the device orientation.

So, that’s probably it. In this case it has nothing at all to do with texturing; it’s the object itself (or the camera) that is rotated.

Just to be sure, why not try the same model in a simple (non-HoloLens) project, built for desktop? And in your HoloLens project, try a more complex scene — several objects arranged on a plane, so you can verify that the whole scene (or camera) is rotating, not just one object.

2 Likes

I believe Joe has the right of it. The HaloLense must be using a different directions as ‘up’ to what you have used in the editor.

i think you’re on to something, joe. i’ll try both suggestions though i think the camera orientation may be the cause and will post the solution

the cause was a setting on the camera which orients objects attached to the camera view. I thought i was losing my mind there for a bit. thanks for your suggestions.

1 Like