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 Professional Discussion / Stationary 3D Menu

Author
Message
Daryn Alsup
18
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 30th Nov 2012 05:16
I know you disable the zdepth and autocam is off - I used to have a function I used on an old PC but not since the upgrade. Can someone tell me how to make the screen size and object size = the same... IE a panel image I made would = the same width and height in 3d... I have totally had a senior moment.

I see a lil' byte, its 1/4th a dword, Double float, Double float - but it doesnt beat a Global. Very very frightning, integers dividing me! Look a constant oh a constant. Oh-oh I just want the byte!
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 30th Nov 2012 05:23
Quote: "In your head... dun dun DUN!!!!!!!! "


Cannonball Run?

Would you not simply load it and not apply any resizing to it? or maybe read its dimensions on load and apply that to the object/plane you paste it to?

This is interesting..

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 30th Nov 2012 10:06
It's quite simple:



The above code will make the plain object exactly 64x64 pixels, but this is only the case if your resolution is 640x480. For higher resolutions, you'll need to scale the object down proportionally. The distance on the Z axis should always be 400.

Also note that when using 3D objects, the pixels are rounded centered, so you actually have to offset the object by 0.5 pixels in each direction or you'll get strange distortions (as shown in the code snippet).

TheComet

Login to post a reply

Server time is: 2026-07-07 21:08:55
Your offset time is: 2026-07-07 21:08:55