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.

DarkBASIC Discussion / Problem loading model.

Author
Message
Mark_92
17
Years of Service
User Offline
Joined: 20th Aug 2007
Location:
Posted: 20th Aug 2007 12:45
Hey I'm new with Darkbasic but have an ok understanding of it.

Ok my problem is:
When I load the model i made it has many missing polygons. Is this because of it's large size ?(1.2mb)Also, the way I'm loading it is with the example model viewer in the help file.

Any help apprieciated,
Mark
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 20th Aug 2007 17:54
If they are the foremost polygons of the model it may be that the front polygons are inside the camera's range. (for example the polygon is located 200 units away the the camera range is 500,1000)
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 20th Aug 2007 19:29
@Mark
Do you mean you are just looking at it in the model browser?
It could be that the face data isn't being exported properly, or maybe the front faces are being culled instead of the back.
Luke810's suggestion is likely but I think he meant the front polygons are closer to the camera than the near limit of the camera range.

Your signature has been erased by a mod because it was rubbish.
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 21st Aug 2007 01:21
Quote: "front polygons are closer to the camera than the near limit of the camera range. "


That's exactly what I meant, I didn't know how to phrase it properly.
Flyin Mushroom
17
Years of Service
User Offline
Joined: 12th Jun 2007
Location: Arkansas
Posted: 21st Aug 2007 09:52
Try setting the cull flag to 0 on the SET OBJECT command after loading the model. I had trouble like that before. That might or might not be what the problem is.

The example model viewer may or may not have cull flag set to 0 when compliled
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 21st Aug 2007 23:46
Quote: "Try setting the cull flag to 0 on the SET OBJECT command after loading the model. I had trouble like that before. That might or might not be what the problem is."

This may fix the problem but it still leaves the object with its faulty face data.
Have you used the object in DB, it might just be that your object is so big or small or offset in a weird way that the browser can't display it properly.
Can you attach the model so I we can have a look

Your signature has been erased by a mod because it was rubbish.

Login to post a reply

Server time is: 2025-05-30 13:33:55
Your offset time is: 2025-05-30 13:33:55