Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

1032 Excellent

About Auskennfuchs

  • Rank

Personal Information

  • Role
  • Interests


  • Github

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Auskennfuchs

    Help a newb? SharpDX or DX and .net

    Maybe have a look at Unity. It's using C#, it's free and takes care about all the rendering stuff and you can concentrate on creating the actual gaming code. There are tons of tutorials also for using 2D only in Unity.
  2. float4x4 is the output of a matrix multiplication. At least there should be a warning when compiling the shader with implicit truncation or something.
  3. Mmh that's really strange. I would try to replace this complex model to a simple cube, so it's easier to see and debug. Than maybe try to switch from RH to LH, because default on DirectX is the left handed coordinate system. I can't see how you update the matrices but are you transposing them first or have you loaded the shaders with the row/column-major flag (can't remember exactly right now).
  4. Auskennfuchs

    Loading FBX with Directx 11

    @isu diss I think you should work a little bit on your manners here in the forum ;-) Anyways, when the UV is stored per index you have to resolve this list first and duplicate the vertices if more than one index is using the same vertex. You need a list of homogenous pairs of vertex and texture coordinate. x y z u v, x y z u v, .... So everytime you are "reusing" a vertex in the indices you have to copy it and also modify the index in the list to the new copied one. When you just want to load the model and don't do this for educational purposes, may have a look at Assimp. This library is doing all the hard stuff of nearly all 3D-formats for you and gives you a simpler data structure which can be just easily.
  5. You are using a float4 as Position in VertexShaderInput. Are you sure your vertex buffer contains vertices with 4 coordinates? In most cases only vector3 (x,y,z) are stored and you use float4(input.Position,1.0f) as input at the matrix multiplication. Just guessing, but the vertexshader output in your debug view looks good at first sight. One more note: float4 AmbientColor = float4(1, 1, 1, 1); float AmbientIntensity = 0.1; return mul(input.Color, AmbientColor * AmbientIntensity); this will result in a barely visible output because you basically doing input.Color.rgba*0.1 and this will also effect the alpha channel (transparency)
  6. You should read carefully, what the error message is telling you. D3DX11CompileFromFile can't find the file you are trying to load. When you start the executable out of Visual Studio make sure the working path is correct or load your data with an absolute path (not recommended). Default is somewhere in a Debug Subfolder.
  7. Are you using AdjustWindowRect for resizing your window? https://msdn.microsoft.com/en-us/library/windows/desktop/ms632665(v=vs.85).aspx This function makes sure you get the right clientwindow size no matter how big titlebars, menus, borders etc. are. On the other hand you can also adapt you backbuffer to the real clientsize so you can handle every windowsize.
  8. The graphics in the video is real 3D with a topdown camera on a low resolution texture and then scaled up to get the pixelart style. I guess the shadows are created with some kind of bsp-tree to get all walls in the level and then extrude them behind the camera (like watching through a long pipe). so the shadows will automatically overdraw the invisible scene. Maybe they also use a modified projection matrix to draw the shadows with a little more fisheye effect.
  9. Auskennfuchs

    Scale Texture2D DirectX11

    I'm not sure if you can achieve it by just copying the data to a texture with a smaller dimension. I guess your current result looks something like this: original image aaaaaa bbbbbb cccccc smaller image aaaa aabb bbbb last line is completely missing So with my solution the scaling is done in the pixelshader, like if you look on a quad from a further distance in 3D. After drawing on the smaller destination texture you can use the Map function to read the smaller image. As an alternative you can use GDI+ functions to scale a bitmap and don't have to deal with DirectX.
  10. Auskennfuchs

    Scale Texture2D DirectX11

    You can create a SRV for the source image from your Desktop API to bind the texture for a shader. Then use your smaller target texture as rendertarget and draw a fullscreen quad on it. You don't even need a index or vertexbuffer when using this vertexshader struct Output { float4 position_cs : SV_POSITION; float2 texcoord : TEXCOORD; }; Output main(uint id: SV_VertexID) { Output output; output.texcoord = float2((id << 1) & 2, id & 2); output.position_cs = float4(output.texcoord * float2(2, -2) + float2(-1, 1), 0, 1); return output; } You only have to use Draw(3,0); The pixelshader is also a no brainer, just sample the sourcetexture and you are done.
  11. Auskennfuchs

    My vertex shader won't display! :(

    You should build your worldMatrix by using mWorld = mScale * mRotation * mTranslation Otherwise your scaling axis are not aligned with the models origin. Also may try to build only one rotationmatrix by using quaternions. But I think this will not solve your problem.
  12. Auskennfuchs

    Pixel Visual Programming

    You can achieve this effect with many different ways - draw bigger images -> waste of memory, but more details possible or mixing pixelated and highres images - draw on a smaller texture and then draw this texture on a bigger quad -> need some math for ratio calculations, picking,... - zoom in with matrixparameters in orthogonal projection -> probably the most common technique Make sure to not use any filtering for your texture sampling or you get a blurry instead of pixelated output
  13. @Hodgman: Thanks for clarification. I never thought of bandwidth issues.
  14. Is there a technical reason for not using 32bit indexbuffers? Are GPUs optimized for 16bit indices?
  15. Auskennfuchs

    My vertex shader won't display! :(

    Probably you rendering with an alpha value of 0.1f, so it is barely visible ;-) float4 AmbientColor = float4(1, 1, 1, 1); float AmbientIntensity = 0.1; return AmbientColor * AmbientIntensity; should result in float4(0.1f,0.1f,0.1f,0.1f) Try something like this: float3 AmbientColor = float4(1, 1, 1); float AmbientIntensity = 0.1; return float4(AmbientColor * AmbientIntensity,1.0f);
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!