Sign in to follow this  
vidalsasoon

texture mapping shaders (noob)

Recommended Posts

I would like to create a low poly sphere to use as a skybox. With this sphere I would like to apply a texture to it the "shader way". From what i've read so far, I would need a dds texture file. What I don't know is how to map it correctly to my sphere. The nvidia SDK has some shaders like "simple_texture.fx" and "pure_texture.fx" but there does not seem to be a way to adjust the UV coordinates as im used to. any links or tips to point me in the right direction? Thanks, V.

Share this post


Link to post
Share on other sites
Even when using shaders, you can still specify the texture coordinates in your vertex format and use it as-is.

BTW, you don't need to use DDS files, they are easy to work with and well suited for DirectX, but D3DX is also able to load TGA, JPG and BMP.

What do you mean by adjusting the UV coordinates?

Share this post


Link to post
Share on other sites
i overcomplicated things for nothing.

with maya, i just make my usual uv adjustments like i always did. I then replaced my material with the shader material. The mesh still holds the uv info and the fx file is able to pick up on it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this