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 / Texturing Inside of a sphere

Author
Message
Enclosed
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location: Colorado
Posted: 8th Jun 2004 21:05
Hi,
I am trying to texture the inside of a sphere for a sky. Im using dark basic classic. Im creating the sphere in the code, would i have to make a different sphere and load it in or something? All helps aprecciated, thanks
SCI_CO
20
Years of Service
User Offline
Joined: 20th Apr 2004
Location: USA
Posted: 8th Jun 2004 22:20 Edited at: 8th Jun 2004 22:21
You need to not cull the object and
position the camera inside the sphere

use SET OBJECT 1,0,0,0,0

if you cull your objects witch is the default
you can`t see the inside of most objects
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 8th Jun 2004 22:20 Edited at: 8th Jun 2004 22:23
a db primitive is ok, just remember to

set object cull objnum,0 (in pro)

or

make object sphere 1,-200 (in classic or pro)


the first command allows you to see the back face of surfaces that face away from you, the second (negative object size) has the same effect (turns the object inside out...like a sock, you get the inside on the outside and vice-versa), you could also use the set object command but both of the above are less trouble.

Mentor.

ps: when you get to using collision don`t forget to set the object collision off for the sphere you have used for the sky, since you are inside it you are colliding with it all the time, if you leave it`s collision on then results will not be what you expected.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, Nvidia FX5900 gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.

Login to post a reply

Server time is: 2024-11-26 20:31:28
Your offset time is: 2024-11-26 20:31:28