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 / [HELP]Making a textured backdrop

Author
Message
AManOnDuty
13
Years of Service
User Offline
Joined: 25th Dec 2010
Location:
Posted: 26th Dec 2010 21:46
Hi All!

I am making a game so far(it is in its alpha stages) and I need to draw a skybox around the whole level. The thing is, I tried drawing a cube around the level and the inside of the cube would not show.

Help would be much appreciated.

Why must I succeed in order to live? Because, if I didn't succeed I wouldn't be here. :/
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 27th Dec 2010 01:35
Posting your code would help folks to help you.

When you have your code in a message, you can highlight all of it, then hit the code button above it to put in the little box...



Generally, to see the inside of a skybox, you can create it with an inverted size, like



if the camera is inside the cube, it will see the inverted sides.

AManOnDuty
13
Years of Service
User Offline
Joined: 25th Dec 2010
Location:
Posted: 27th Dec 2010 04:28
Sorry about that.
I tried that, but when I did that, no cube appeared. Thanks for the help though.

Why must I succeed in order to live? Because, if I didn't succeed I wouldn't be here. :/
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Dec 2010 12:53
So post some code to show what you actually tried. This doesn't need to be your game code, it only needs to be a small stand-alone piece of code to show us.

LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 27th Dec 2010 15:23
AManOnDuty:
Here is some example code for you. It creates a texture and a cube. You can use the arrow keys to move around inside it.


Hope this is helpful.

AManOnDuty
13
Years of Service
User Offline
Joined: 25th Dec 2010
Location:
Posted: 27th Dec 2010 19:43
Before, I used this code:



Okay, thank you all! I got the cube, but I can't texture it for some reason.

I tried this code:



What should I do?

Why must I succeed in order to live? Because, if I didn't succeed I wouldn't be here. :/
Dabbler
17
Years of Service
User Offline
Joined: 3rd Mar 2007
Location: Minnesota
Posted: 28th Dec 2010 19:19
You may not be finding your image file.
Try this:



I hope it helps.


Whatever...

Login to post a reply

Server time is: 2024-09-29 00:33:14
Your offset time is: 2024-09-29 00:33:14