Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Graphics
  4. Clamp Texture Address Mode

Clamp Texture Address Mode

Scheduled Pinned Locked Moved Graphics
questionc++graphicsgame-devjson
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Seeker2002
    wrote on last edited by
    #1

    Microsoft DirectX 9.0 / C++ Question about Setting Sampler State / Clamp Texture Address Mode. How can I get a SetSamplerState to effect a specific custom vertex and not the whole entire scene? For instance, I created a scene with 3D objects and stuff completely surrounded by a Skybox cube. I'm trying to get the following code to effect my skybox cube face textures only, and not the rest of the scene. :confused: // Clamp Texture Address Mode. g_pD3DDevice->SetSamplerState( 0, D3DSAMP_ADDRESSU, D3DTADDRESS_CLAMP ); g_pD3DDevice->SetSamplerState( 0, D3DSAMP_ADDRESSV, D3DTADDRESS_CLAMP ); The code works great as far as getting rid of those noticeable seams in the skybox, but it also messes up the rest of the stuff. Any help would be greatly appreciated.. Thanks! :thumbsup:

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups