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.

DarkBASIC Professional Discussion / Need a bit of help with a small piece of code here. (test)

Author
Message
MiRRoRMaN
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: Netherlands
Posted: 13th Oct 2002 22:26
Hi everyone,

I'm fooling around with a bit of code here to experiment with stuff. It's going fine but I've been wondering about a trick some of you people use, using an orb as "space" and just have the camera twirling around in there. What I have here is a piece of code with a ball, Im traveling in the ball myself using the forward key but then the ball (orb) seems to have dissappeard, Im not seeing the orb from the inside out if you know what I mean.


LOAD IMAGE "stone05.bmp",1

make object sphere 1,500
texture object 1,1
scale object 1,200,60,200
set object collision off 1
fog color 6
fog on

rem autocam on
rem position camera 0,1,0
rem set camera range 1,10000

do
if upkey()=1 then move camera 1
if leftkey()=1 then x=x-1: rotate object 1,x,x,0
if rightkey()=1 then x=x+1:rotate object 1,x,x,0
if x>360 then x=360
if x
www.mirrorman.cjb.net, the classic Commodore 64 and Amiga site.
Dreamora
21
Years of Service
User Offline
Joined: 20th Sep 2002
Location: Switzerland
Posted: 13th Oct 2002 23:46
hmm ... some of the code is missing but i think its because of some missing sync commands as "sync on", "sync rate x" and "sync" at the end of the mainloop

waffle
21
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 14th Oct 2002 05:56
actually, to view your ball from inside
you need to "show" the other side of the
polygons.... the command for this is
set object 1,1,1,0
which translates to...
objcet 1=your ball
1 = not a wireframe
1 = not transparent
0 = show hidden polygons
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 14th Oct 2002 06:04
change the scale to -200,-60,-200
turns it inside out

Holy jumping mother of god NOOOO!!!...
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 14th Oct 2002 07:04
start with a negative cube also maybe


make object cube 1,-500
position object 1,0,0,0


suspend for key
end

http://www.lunarpixel.com/ is my new site
Milamber
21
Years of Service
User Offline
Joined: 27th Sep 2002
Location: Australia
Posted: 14th Oct 2002 10:07
You know, I've never thought of trying that before. That just might be crazy enough to work.

System Specs: AMD Athlon 1700+ XP, GA-7VRX motherboard, 128MB DDR RAM, GeForce2 MX400 64MB VRAM
Milamber
21
Years of Service
User Offline
Joined: 27th Sep 2002
Location: Australia
Posted: 14th Oct 2002 10:13
It does, too.

System Specs: AMD Athlon 1700+ XP, GA-7VRX motherboard, 128MB DDR RAM, GeForce2 MX400 64MB VRAM
MiRRoRMaN
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: Netherlands
Posted: 14th Oct 2002 16:37
Hi guys

I found dbRadTools yesterday (which is a fabulous tool btw, if the makers happen to read this) and did find some interesting lines which now got explained to me by waffle here Also the negative -200,-60,-200 thing happens to work excellent!

Thank you very much, I'm learning a lot these days DarkBasic is da bomb....

www.mirrorman.cjb.net, the classic Commodore 64 and Amiga site.

Login to post a reply

Server time is: 2024-04-26 20:51:37
Your offset time is: 2024-04-26 20:51:37