Skip to main content
gamedev.net
🔒 Locked

texture deformation!

Started by aphelix Jun 30, 2006 at 5:18 PM 7 replies 1k views
Original Post
aphelix
aphelix
Hi! I'm new to directx. I create a skybox with texture 768x768 and basic camera class (support transformation and rotation).But when i rotate or translate camera texture in skybox deform.Why thanks..!
aphelix
aphelix
Note: This deformation is little. But pesky :(
jollyjeffers
jollyjeffers
Okay, can we have a side-order of 'extra information' please [smile]

Ideally when talking about image corruption a screenshot would be nice (google things like "image shack" and "photo bucket" for hosting).

Second to that, can you verify against the reference rasterizer - it's unlikely, but if you're seeing some sort of hardware/driver related corruption then the RefRast should tell you.

Are you getting any warnings from the debug runtimes?

What sort of filtering method are you using?

Are you using a cube map texture, or just a regular cube with a subset of a 2D texture (or seperate texture) per face?

Does the corruption only appear when the camera moves? Does it go away as soon as the camera stops moving?

Bottom line: Help us to help you.

Cheers,
Jack
<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ |
aphelix
aphelix
In screenshot all seems ok :(. I think refresh speed of texture is slow.When i rotate camera slowly, deformation more disappear.

I'm not getting any warning from debug runtimes :)

Filtering :
Device->SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR);
Device->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_LINEAR);
Device->SetSamplerState(0, D3DSAMP_MIPFILTER, D3DTEXF_LINEAR);

I use cube map texture.separature texture per face.

When i rotate camera , corruption appear. It's more like dominoes event.

Thanks....
jollyjeffers
jollyjeffers
So it only happens when you move the viewpoint...

Have you got V-SYNC enabled? when you create your device (D3DPRESENT_PARAMETERS) what is your PresentationInterval setting. What is the value in your control panel (typically overrides the application)?

From your description it sounds like you're getting tearing due to a lack of V-Sync.

hth
Jack
<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ |
aphelix
aphelix


V-SYNC enabled? I'dont know :(
d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;

thanks. I will look at this problem "Page tearing" :)

jollyjeffers
jollyjeffers
the D3DPRESENT_INTERVAL_IMMEDIATE attempts to disable V-SYNC. Set it to D3DPRESENT_INTERVAL_DEFAULT or D3DPRESENT_INTERVAL_ONE and see if things are improved.

hth
Jack
<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ |
aphelix
aphelix
thanks jollyjeffers

i changed d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_DEFAULT;

and it's ok. Thanks for all!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.