Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Help needed with a 3d Senet board

Author
Message
Robert The Robot
17
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 6th Mar 2007 12:12
I'm currently working on a computerised version of Senet, a popular game from Ancient Egypt, but I'm having a lot of trouble creating the 3d model of the playing board.

I built it in Maplet (I know it's a level editor, but it's the only 3d modeller that I know how to work) but when I export it and convert it to a .X or a .3ds file, Dark Basic deletes loads of the polygons to let you see inside it.

I think the problem lies with the model, but I can't figure out how to make it 'solid'. Any ideas?

Attachments

Login to view attachments
H4ck1d
18
Years of Service
User Offline
Joined: 27th Dec 2005
Location: Yes
Posted: 6th Mar 2007 22:49
The problem isn't that it deletes the polygons; rather, they are facing away from the camera, so they aren't drawn. Try "set object cull objNum, 0", but replace 'objNum' with the model number. This command will tell darkbasic to draw the polygons even though they aren't facing the camera.

Robert The Robot
17
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 7th Mar 2007 12:04
I don't think I recognise that command - is it in DB Classic (which I use) or just DB Pro?
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 7th Mar 2007 12:35
classic is called set object, look at the flag parameters for culling

Robert The Robot
17
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 8th Mar 2007 13:07
Thanks guys! Code works brilliantly.

The only snag is that now I want to change the object's texture, and even if I keep the same file name, DB doesn't load it...

Login to post a reply

Server time is: 2024-11-25 22:24:48
Your offset time is: 2024-11-25 22:24:48