Following Reimers tutorials applied to my own game, I can place multiple 3d objects in my world and move them etc…
I can construct triangles and bunch them up and draw them textured, or I can load models and draw them in any color I want.
I can even play with the lighting, move it around, it’s quite nice…
However guys, I cannot draw a textured model, it just draws black, and stops responding to light… I am supposed to just import a model and its corresponding texture, the content builder does that, right? I am not supposed to manually load the textures for my models, one at a time, am I? I call load on the model, and it just GETS the associated textures, right?
-My problem is not normals, I’ve reversed them, and stuff just goes inside out.
-My model is visible in windows 3d viewer, textured, and visible in game when I tweak the shader to return some color rather than texture-coordinated colors.
My shader (the “Textured” technique part) takes texture coordinates as an input:
( float4 inPos : POSITION, float3 inNormal: NORMAL, float2 inTexCoords: TEXCOORD0)
, and returns the corresponding texture color. Maybe these coordinates are not loaded through the model? Still, even if the texture coordinates were initialized wrong at 0,0 why would that make the pixels BLACK, no part of the texture is black…