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 / Programming in 3d

Author
Message
Brux
13
Years of Service
User Offline
Joined: 12th Oct 2011
Location:
Posted: 2nd Jan 2015 21:15

I would like to start programming in 3d
but I\'m a novice:\'(
I would know a site that indicate whether this topic
starting from the basics up to levels more \'challenging?
*************************************************************
example: in swarm of lee bamber, the compiler replies that some commands are already obsolete.....
'but it does not tell me what other command use replacing

texture backdrop (obsolete)
scroll backdrop (obsolete)







THANK'S
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 3rd Jan 2015 02:26
Look for TDKs tutorials on the forum, use the search box at the bottom of any page

Good Luck!

pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 3rd Jan 2015 02:46
Try this

http://www.thegamecreators.com/?m=view_product&id=2030&page=3d_tutorial_index
Monster Hunt 3D TutorialsMonster Hunt

windowsXp
WickedX
16
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 3rd Jan 2015 17:49 Edited at: 3rd Jan 2015 19:22
You may want to update DarkBasic Professional. I’m using DBPro version 7.4. Your version may be older then that. It is my understanding that Texture Backdrop has been re-implemented. However, Scroll Backdrop is still obsolete.

In programming there are always alternative methods of achieving a goal. Programming is also give and take. To solve one problem may cause others if your not fully aware of some of the basic functions and how they behave. In the last snippet I will show another method using a sprite. But, first let us cover some of the basic functions.

In the final snippet we'll set the sprite to be drawn first with Draw Sprites First, this will allow are text to be shown on top of the sprite. However, this will also cause the sprite not to be shown. So, we’ll need to turn the Backdrop Off. Let’s see how turning the backdrop off will normally affect 3-D objects in the scene.



Notice how the object smears as it rotates. How do we fix this? In this particular case we need to change Set Cursor to CLS and we’ll also need to set all 2-D activity so it draws first with Draw To Back.



This snippet is just one way to achieve the same affect. The image I used is attached to this post. Notice the fix to the object smearing is not used here. The sprite is being used to clear the screen.



Well, I hope you found this helpful.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-05-13 21:36:00
Your offset time is: 2025-05-13 21:36:00