cancel
Showing results for 
Search instead for 
Did you mean: 

UV mapping changed in latest?

Anonymous
Not applicable
Created sphere in Unity project and now it seems the default UV / texture mapping scaling has changed?
Texture set to 1 but in past same texture or video would match sphere but latest Unity seems to use only portion of texture.

As a test try the MoviePlayerSample. It now has an HD screen and shows only a portion of the default video image.
They have a alternate screen that can show more but it seems to crop unless fully expanded.
10 REPLIES 10

jimdose
Explorer
Hello Scott,

I just tried building the MoviePlayer_Sample in the SDKExamples project from ovr_mobile_sdk_0.6.0.1 with Unity 5.1.1p1 and the movie texture fills the whole quad.

Do you have any other details to repro this? Do you have a sample project that you can share that exhibits the problem?

Thanks!
Jim

Anonymous
Not applicable
Hi Jim,

Checked in more detail. The values in the MoviePlayerSample are 2880 and 1440.
But to see the entire image (it clips otherwise) these have to be set to 2048 and 1024 even though the video file is 2880 x 1440. Just digging in and trying to figure out the media_surface since there seems to be a built in size somewhere in the pipeline (2k max texture map?) and how to adjust according to get best quality and entire image.

jimdose
Explorer
Hi Scott,

I'm not seeing any clipping in the movie or others when I play them. The 2880x1440 setting in the SDKExamples is just for the size of the texture the video will be rendered to. Ideally it should be to the same resolution as your movie, but if it isn't, the movie stretches or shrinks to fit.

Are you using the movie we shipped or another movie? Have you changed any settings? Is there a sample project you can send us to reproduce this?

Thanks
Jim

Anonymous
Not applicable
I'm using the video referenced in the code. [Samsung] 360 video demo.mp4

The previous oculus/Unity version did in fact scale but this version clips.
When loading this video at 2880 x 1440 the sides are clipped. If this is texture mapped to a sphere then it won't provide a full 360 seamless image, Unity 4.5.6 did.

By changing the moviesample code to 2048 by 1024 it shows the entire image.

jimdose
Explorer
Just tried it on a sphere and no problems. I'm wondering if there's some setting you've got set that's changing it.

Anonymous
Not applicable
Built from the SDKExamples. I'll try a new one from scratch just in case.
Are there other project settings that would control this this behavior?

jimdose
Explorer
Only thing I would expect is texture settings or material settings being set wrong.

digital_da
Explorer
Hey,

Anyone else experience getting only a portion of the movie (bottom left quarter of the original movie in my case)?
Building the SDKExamples project on Unity 5.1.2f1 and trying to play MoviePlayer_Sample scene.
If so, what did you do about it?

Thanks!

Anonymous
Not applicable
You have to change the sizes mentioned earlier in the thread since there was some type of change to the way images are mapped.