My 3D models are only obtaining the top left hand corner pixel color of my textures
and is applying that pixel color to my 3D models rather than the entire texture.
I have been using external textures
In Create Event for obj_3d_draw:
if global.textures = 0 then
{
global.tex_model = background_add("modeltex.jpg",false,false)
}
In the Draw Event for obj_model:
if model=0
{
d3d_transform_set_identity()
d3d_model_draw(global.model,0,0,0,background_get_texture(global.tex_model))
d3d_transform_set_identity()
}
Even if I have a Background Called model_texture
Then use this code:
if model=0
{
d3d_transform_set_identity()
d3d_model_draw(global.model,0,0,0,background_get_texture(model_texture))
d3d_transform_set_identity()
}
^the result is the same, only obtaining one pixel color.If anybody has an exclamation to why this is not working please post so I can be on my
marry way.











