GLBasic forum

Main forum => Bug Reports => Topic started by: MrTAToad on 2009-Jan-17

Title: Displaying 3D objects
Post by: MrTAToad on 2009-Jan-17
At the moment, I'm having problems rendering 3D objects properly (it was converted to ddd from a 3DS file).  It displays the sides, but not the top or bottom, and thus is not a totally solid object.

It also seems to be a problem with manually created shapes too :

(http://i475.photobucket.com/albums/rr115/MrTAToad/temp.jpg)
Title: Re: Displaying 3D objects
Post by: Kitty Hello on 2009-Jan-20
I think the CreateSphere code is ... not the best.
Try different num_wrap and num_stacks values.
Try the ones I use in my "lights" sample.
Title: Re: Displaying 3D objects
Post by: MrTAToad on 2009-Jan-21
It turns out that the background image (which does have an alpha) was being used on the 3D object, and thus a quarter of the shape was missing.

I had thought that by default each object would have no texture, but apparently it uses the last texture used :)

So, problem solved.