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.

Author
Message
sprite
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location:
Posted: 13th Aug 2006 02:10
Hi I'm trying to load the sky with the code I've found on the forum so far. My code just closes before I see it. I know the world loads before I added in the sky code. I want to add the sky before adding in things like guns and baddies.

Thanks for your time.



I'll add something later on.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 13th Aug 2006 06:21
what object number is your sky>?

sprite
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location:
Posted: 13th Aug 2006 15:05
The object number is 3.
I have rem off the sky code to check the problem was not some were else. The rest of the code does work.

Thanks for your help

I'll add something later on.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 13th Aug 2006 15:14 Edited at: 13th Aug 2006 15:15
Maybe that file path is wrong It's always good to store your games in the Projects folder in the DBPro Folder, then to make a subfolder called Media or something and to put the media there.

sprite
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location:
Posted: 13th Aug 2006 17:13
I check the path and path is correct.


I noticed on some very old posts you need to texture the sky.

Is that what I'm doing wrong?

Thanks for your help.

I'll add something later on.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 13th Aug 2006 17:28
is the texture file in the same folder as the model?

Can you create another folder with a DBP project and source file with the moon model and texture file and load the model in question by itself into another test program?

Zergei
19
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 13th Aug 2006 18:53
Try the following.... where it says

move that "rem" to an empty line, or delete it. Putting rems like that in my programs means trouble, so just in case do it. Or you could leave it like this...

I remeber someone saying that "rem" is a command and through a line one separates commands using ":", so far works for me, if i don't use it then it bugs my program.

Further on my stuff at...
sprite
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location:
Posted: 14th Aug 2006 02:59 Edited at: 14th Aug 2006 03:02
I removed most of the rems from the code. I tried loading the sky file in to another test program. It loads with no errors but it closes automatically. I have the .x file and texture in the same place.

I changed a some of the sky code.
My code with from the program.
Can someone tell me what I'm doing wrong?

Thanks for your time.

I'll add something later on.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 14th Aug 2006 04:25
OOH I have an idea! Add this:

Scale Object 3,-100,-100,-100

OR if the object is too small try

Scale OBject 3,-1000,-1000,-1000

Scale Object+Negative value should do it. That is, if you cannot see the sky. I am not fully understanding the problem, is it that you can't see your sky, all you see is a blue or green backdrop, or is it sometihng else? Does the code run ok, or does it open the program and close instantly?

sprite
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location:
Posted: 14th Aug 2006 14:16
Thanks sixty I gave it a go it stop the instant crash but the backdrop is green in my program.

I'll add something later on.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 14th Aug 2006 14:35
Hmmm... Maybe you ought to try moving your camera creation code to the part before you make the sky? I don't know, give it a try...

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 14th Aug 2006 14:56
camera 1 is the second camera camera 0 is the first.
the green is denoted by the camera 1 field.
use set backdrop to change camera 1's background field iirc

sprite
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location:
Posted: 19th Aug 2006 02:35
Quote: "use set backdrop to change camera 1's background field iirc"

How do I do this?

Thanks

I'll add something later on.
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 19th Aug 2006 22:13
If you just wnat to change the color then insert "color backdrop rgb(255,0,0)" after "make camera 1" to make it red. You can change the rgb values to change the color.


Why are you even making camera 1? Couldn't you just use camera 0?

sprite
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location:
Posted: 19th Aug 2006 22:38
I only just found out that I did not need make camera 1. I was using the help files and they didn't say about a built in camera. Which was why I was using them. I removed it.

I'm all good at the moment but thanks for everyones help.

I'll add something later on.

Login to post a reply

Server time is: 2024-11-26 14:31:53
Your offset time is: 2024-11-26 14:31:53