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 / A good 3D sky effect...any suggestions?

Author
Message
o0o0The Code Keeper0o0o
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location:
Posted: 8th Mar 2003 21:10
Heylo All,
Jess wondering if anyone has any suggestions on how to make a 3D sky effect, like i know it goes along the lines of making a sphere and putting it around the matrix, but i could use some help, that's the final thing i need to know how to do to make my game...thank you very much helpful DB forum! bye bye, and thanks...

-ThE cOdE kEePeR-
o0o0The Code Keeper0o0o
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location:
Posted: 8th Mar 2003 21:29
I also wanted to include that i wanted to know how to make the texture appear on the inside of the sphere..if that's how the 3d sky was supposed to be done.

-Thanks again!

-ThE cOdE kEePeR-

"let me stay where the wind will whisper to me
where the raindrops as they're falling tell a story"
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 8th Mar 2003 22:20
this is the code for a sky sphere:
prepare a sky texture and name it skytext

rem make sky subroutine
makesky:
rem load sky texture
load image "skytext.bmp",1
make object sphere 99,10000
scale object 99,100,50,100
set object 99,1,0,0,1,1,1,1
texture object 99,1
fade object 99,0
return

in this example the sky sphere (object 99) will be 10000 units big, so camera range must be bigger ie 11000 or more,
in main loop you must make sure that the skysphere always follows the player (or camera)

cheers
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 9th Mar 2003 00:44
Nab the one out of the Jetski example if you have to

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy! Oh ya, and Tat has a plugin for that!
o0o0The Code Keeper0o0o
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location:
Posted: 9th Mar 2003 21:23
Heylo again,
I jess wanted to know why you made the sky a subroutine, i wasnt sure about that, i mean, the sky seems to be a part of the scenery, so why make it a subroutine?

-Thanks a bunch!

-ThE cOdE kEePeR-

"let me stay where the wind will whisper to me
where the raindrops as they're falling tell a story"

Login to post a reply

Server time is: 2024-09-19 22:56:35
Your offset time is: 2024-09-19 22:56:35