I have just noticed someth quite odd with a couple of models I have exported from 3DWS. Both are exports of the same model; a fairly simple grey cube; One is a .X and the other is a .dbo
In this image, the one exported as a .x is on the left; the .dbo is on the right. As you can see, the .dbo is lit strangely.
Now I'm sure I've never encountered this problem using .dbos before; I was just wondering if anyone could shed some light as to what I've done wrong this time
I have included both exported models and the original 3DWS model in the attachment; and here is the code I used to load and display the models.
//**********************************
//
// Highlighting a problem with .dbo
// vs .x object files
//
// =PRoF= (20090209)
//
//**********************************
//**********************************
//
// System Stuff
//
//**********************************
Sync on
Sync rate 60
//**********************************
//
// Initiate Stuff
//
//**********************************
loadObjects()
setScene()
//**********************************
//
// The Loop
//
//**********************************
mainLoop()
//**********************************
//
// Clean up and tidy away
//
//**********************************
end
//**********************************
//
// 'Ere be functions...
//
//**********************************
function loadObjects()
` This function loads the 2 objects for testing
`
` Object 1 - DirectX format
Load object "files/big_block.x",1
` Object 2 - .DBO format
Load object "files/big_block.dbo",2
endfunction
function setScene()
` position the objects and camera, and set lighting levels
`
` position .x
position object 1,300,0,0
`position .dbo
position object 2,-300,0,0
` set the camera
position camera 0,500,1000
point camera 0,0,0
` set the ambient light (No matter what u do to this, the .dbo stays well lit)
set ambient light 60
endfunction
function mainLoop()
` This just syncs the screen every loop
`
do
sync
loop
endfunction
Thanks in advance.
>EDIT<
D'oh, I forgot to include the attachment :/
Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@