• Advertisement

timothy_yuanhong

Member
  • Content count

    11
  • Joined

  • Last visited

Community Reputation

126 Neutral

About timothy_yuanhong

  • Rank
    Member
  1. question about D3DReadFileToBlob

    [quote name='Hornsj3' timestamp='1341100791' post='4954403'] You need to use the version of DirectX that ships with Win8. Need this: D3dcompiler_44.dll It's not included in the JUNE2010 SDK. June 2010 has this: D3dcompiler_43.dll [/quote] Thanks! I tried to load the binary using fread into a buffer, and that seems to work.
  2. Hi guys, I have some trouble to use function D3DReadFileToBlob to load a compiled shader binary, it's not defined. MSDN says the function declaration is in D3DCompiler.h, but I didn't find it there. Thanks, -Hong
  3. question about scene parameterization

    Thanks! DirectX has UVatlas, but it always crashes and gives the reason "out of memory". Quote:Original post by eq Most 3d packages have a tool for this (dunno about 3ds or blender though). Look up keywords such as UV-atlas, surface parameterization. Also the DirectX framework contains methods for generating these maps. BTW. I assumed that you wanted a unique piece of the texture for every triangle. A unique UV per vertex doesn't give you that.
  4. Hi all, I want to generate a unique texture for the sponza model(http://hdri.cgtechniques.com/~sponza/). The model has defined texture coordinates, but since some object has repeated parts, those vertices are mapped in the same (u,v). Is there any way to generate a texture for the scene such that each vertex has a unique (u,v)? Can I do it using blender or 3d max? Thanks a lot, -Tim
  5. question about volume texture

    Thanks, I made it work by using LockBox. The code is a little ugly, still wondering why there is no better way to do this. Quote:Original post by ET3D You get call GetVolumeLevel, then use LockBox on that, and write the data you want. The D3DXFillVolumeTexture page in the docs has an example of what the function should look like.
  6. Hi all, This might be a stupid and naive question: I 'd like to load a 3d volume texture on the GPU and fetch the texture value in the shader. The data stored in the volume texture is specified by myself, for example, a 4 by 4 by 4 array of rgb values. I tried to create such a volume texture: pd3dDevice->CreateVolumeTexture(4, 4, 4,1,0, D3DFMT_A16B16G16R16F, D3DPOOL_MANAGED, &pVolumeTexture,NULL); But I can's figure out how to load my data into the texture. I searched in the DirectX c++ doc, but haven't found an applicable way to do this. Would D3DXFillVolumeTexture(pVolumeTexture, LPD3DXFILL3D, NULL) work? How to define LPD3DXFILL3D then? Thanks, -timothy
  7. How to define vertex gradient on a mesh

    Generally, to define the gradient domain on an image is trivial (calculate the pixel difference). Similarly, I'd like to define gradient domain on a 3D mesh, where the vertex positions are the information to gradify about. It might not make much sense to do this (maybe to define it on each triangle patch makes more sense), I am just wondering if there is some elegant way to define it... Quote:Original post by WarAmp I'm still not sure your question actually makes any sense. You want to define a position gradient on a mesh? Can you re-phrase the question or give us more information about what you are trying to accomplish?
  8. How to define vertex gradient on a mesh

    The position gradient, thanks! Quote:Original post by bzroom What's a vertex gradient? A gradient is a changing attribute. You could have a color gradient, or a position gradient, or a normal gradient.. or any other vertex attribute. What exactly are you trying to gradientify?
  9. Anybody know how to define vertex gradient on a mesh? Thanks, -timothy
  10. question about shader debugging using glsldevil

    I am thinking that the problem might relate to the application property. The glsldevil specification says multithread is not supported. But when I set my cpu core number to 1, it still doesn't work.
  11. Hi all, It seems glsldevil is a wonderful shader debugging tool: http://www.vis.uni-stuttgart.de/glsldevil/. Is there anyone used this tool before? I have a problem that I cannot view the shader source and debug them as the webpage describes, although I can make my program run or stop at a draw call. Thanks very much!
  • Advertisement