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 / skyboxhelp

Author
Message
z i l c h vortex
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: united kingdom
Posted: 27th Jun 2007 22:23
hi guys ive made a basic skybox with one picture going all the way around this is the code


can any one help me in telling me how i can get it so i have a different picture on each side of the cube so i can make it more realistics i got pictures that i can use i just need code thanx

life is short but so am i
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 28th Jun 2007 00:53 Edited at: 28th Jun 2007 00:57
Normally a skybox/skyphere is made and textured in a modelling program and then exported. So you may want to look into that instead

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 28th Jun 2007 01:39
Quote: "so i have a different picture on each side of the cube"


You can't with a DB primitive cube - unless you use a function to 'kludge' it - like the one I posted in Code Snippets.

But, doing that isn't perfect as you can sometimes see the joins between the cube sides which ruins the effect.

Yes, a modelling program is really the best way to go...

TDK_Man

z i l c h vortex
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: united kingdom
Posted: 28th Jun 2007 02:29
is there a way of doing it without a cube

life is short but so am i
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 28th Jun 2007 03:14
of course !!...you could use a sphere....just take a sky image and try this code....you could make the sky object(sphere) in a external editor with no so much polygons and load it as an .x file


cheearz.






oh my god
z i l c h vortex
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: united kingdom
Posted: 28th Jun 2007 18:49 Edited at: 28th Jun 2007 18:56
thank you theres only one problem when it rotates the bottom of the picture comes up to the top so it looks weird cos the sky is on the floor then.

p.s. what does wrapvalue do and mean ???

life is short but so am i
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 29th Jun 2007 03:14
Quote: "what does wrapvalue do and mean ???"


Surely it's easier for you to look in the help files rather than ask on here expecting us to type it all in again for you!

TDK_Man

z i l c h vortex
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: united kingdom
Posted: 30th Jun 2007 15:39
sorry

life is short but so am i
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 30th Jun 2007 18:56
z i l c h vortex
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: united kingdom
Posted: 2nd Jul 2007 02:23
thankyou

life is short but so am i

Login to post a reply

Server time is: 2024-11-25 15:12:32
Your offset time is: 2024-11-25 15:12:32