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 / Help! DBpro matrixs?? (trying out Demo)

Author
Message
CajunCoder
21
Years of Service
User Offline
Joined: 29th Nov 2002
Location:
Posted: 30th Nov 2002 07:11
This is the third forum I post this on, tried RGT forums but they are down again!! And other forums I tried (darkbasic.net) takes 2 weeks to get a single view
Anyway.. for some reason in DBproDemo matrixs are.. well weird! they can have like big streaks of.. invisibility.. dunno how you would explain it, wish I could attach pics without img code.. maybe I can post them on another forum and put a link.. anyway best I can describe it is like big streaks of.. nothing (whatever backdrop color is) going thru the matrix, but its not like consistant, when u change angles the streaks maybe gone or in another area whatever.

Is it just a bug (fixed in later versions?) or something?
BTW, I am using DX8.2 I think, or 8.1 if it makes any differance.
CajunCoder
21
Years of Service
User Offline
Joined: 29th Nov 2002
Location:
Posted: 30th Nov 2002 21:42


Heres the link to few more pics: http://www.hitechcreations.com/forums/showthread.php?s=&threadid=71350

Bitmap
21
Years of Service
User Offline
Joined: 20th Oct 2002
Location: Latvia
Posted: 1st Dec 2002 01:10
you have the latest demo? (with patch 3)

thy boss
CajunCoder
21
Years of Service
User Offline
Joined: 29th Nov 2002
Location:
Posted: 1st Dec 2002 01:11
I just downloaded the demo, didnt think there were patchs for the demo is there?

CajunCoder
21
Years of Service
User Offline
Joined: 29th Nov 2002
Location:
Posted: 1st Dec 2002 01:12
Oh I downloaded it about a week ago if that makes any differance.

Viktor
21
Years of Service
User Offline
Joined: 7th Oct 2002
Location: Austria
Posted: 1st Dec 2002 01:49
Download again, 1 week is too old. There is exactly ZERO difference between DirectX 8.1 and 8.2, except the update of some DirectPlay components, which have no result on graphic output. And btw: Have you the latest drivers for your graphic card?

PC: AMD 1200/512 Mb SDR/GF2MX Dual Display/Win2000, 19" Monitor
ZX: Spectrum 128+ Customized version.
Current Project: BMP2SCR Pro (with LDIR)
CajunCoder
21
Years of Service
User Offline
Joined: 29th Nov 2002
Location:
Posted: 1st Dec 2002 01:56
k, I'll try redownloading it.

And I'm pretty sure I have latest drivers, or pretty close, updated it about a month ago to play unreal tournament demo.

CajunCoder
21
Years of Service
User Offline
Joined: 29th Nov 2002
Location:
Posted: 1st Dec 2002 05:46
Hmmm... downloaded new demo but still have matrix bug, I found if I turn off backdrop it works fine but of course the background doesnt refresh itself and u cant change the color, and I tried making a skyshpere out of a sphere object but am getting really really weird results..

CajunCoder
21
Years of Service
User Offline
Joined: 29th Nov 2002
Location:
Posted: 1st Dec 2002 06:37
Hmm... I tested it on our new computer (Bought it yesterday!) and it has the same matrix bug!! maybe its my code?
Heres code (its really sloppy I know, cuz I been playin with it and havent cleaned it up yet)

START:
sync on
Fog on : fog distance 4400
Backdrop on : set camera range 0,5000
`Make object sphere 999,9000
`Color object 999,rgb(255,255,255)
Fog color RGB(0,0,0)
color backdrop RGB(0,0,0)
Load Image "Rocks&Rocks.bmp",1
load image "fire.bmp",2
MAKE PARTICLES 50,2,100,50
position particles 50,500,100,500
make matrix 1,20000,20000,70,70 : prepare matrix texture 1,1,4,4
fill matrix 1,0,1

angle# = wrapvalue(360)
set particle chaos 50,10
set particle gravity 50,1
set particle life 50,100
color particles 50,75,66,34
set particle velocity 50,5
make object sphere 10,1
Position object 10,1,150,1
Point object 10,0,150,0
`set object cull 999,0
`==============MAIN LOOP=================`
Do
set cursor 0,0 : Print Screen FPS()
if upkey() = 1 then move object 10,10
if rightkey() = 1 then angle# = angle# + 1
if leftkey() = 1 then angle# = angle# - 1
Rotate object 10,0,angle#,0
set cursor 0,25 : Print angle#
if downkey() = 1 then move object 10,-10
set camera to object orientation 0,10
x# = object position x(10)
y# = object position y(10)
z# = object position z(10)
position camera 0,x#,y#,z#
`Position object 999,x#,y#,z#
sync
loop

CajunCoder
21
Years of Service
User Offline
Joined: 29th Nov 2002
Location:
Posted: 1st Dec 2002 08:53
Ok I downloaded new driver for this comp allso and still not working!! could some1 try running the code and see if u get same problem? you have to walk a little ways to the middle of the matrix before u can really notice it, but then its really noticable!
I'm using a 512x512 matrix texture btw.

LethalFrog
21
Years of Service
User Offline
Joined: 29th Nov 2002
Location:
Posted: 1st Dec 2002 11:40
You code does not work on my computer either, but my code does so here it is. I have taken a few things from yours and put them in mine, like the fog and the sky sphere

Rem Project: Tanks
Rem Created: 28/11/2002 20:44:25

Rem ***** Main Source File *****

sync on:sync rate 85

Fog on : fog distance 4400
Backdrop on : set camera range 0,5000

load image "cygrass1.bmp",1
load image "fire.bmp",2

make matrix 1,512,512,128,128
randomize matrix 1,3
prepare matrix texture 1,1,1,1
update matrix 1

make object sphere 1,0.5
position object 1,50,0,50
hide object 1

make object sphere 2,512
position object 2,50,0,50
color object 2,RGB(0,255,255)
set object 2,1,0,0,0,0

make particles 50,2,100,50
position particles 50,100,0,100
set particle gravity 50,1
color particles 50,75,66,34
set particle velocity 50,5

set current camera 0
set camera range 1,7000

do
set cursor 0,0

x#=object position x(1)
z#=object position z(1)
y#=0.25+get ground height(1,x#,z#)
a#=object angle y(1)
position object 1,x#,y#,z#
if leftkey()=1 then dec ang,1
if rightkey()=1 then inc ang,1
if upkey()=1 then move object 1,0.25
if downkey()=1 then move object 1,0-0.25
yrotate object 1,wrapvalue(ang)

set current camera 0
set camera to follow x#,y#,z#,a#,6,7,50,1
set camera to object orientation 1

sync
loop

Mike Johnson
TGC Developer
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 1st Dec 2002 11:59
What graphics card have you got? Have you tried making a matrix with fewer tiles?

Mike
LethalFrog
21
Years of Service
User Offline
Joined: 29th Nov 2002
Location:
Posted: 1st Dec 2002 12:52
Mike,

Are you considering allowing a command that can read the normal from a terrain or matrix at a given x,z position?

This would be very useful for allowing vehicles to traverse the terrain. I could orient the object based on the normal and then the vehicles would tilt to drive up a hill.

Cheers

xtom
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 1st Dec 2002 14:19
Yeah an align object to matrix command or something, that would be great.
CajunCoder
21
Years of Service
User Offline
Joined: 29th Nov 2002
Location:
Posted: 1st Dec 2002 20:09
Hey that works! thanks!
Now what made it work? I see your matrix and everything is built on a much much smaller scale than mine, is that "standard" scale? guess I've been making everything on giant scale all this time
Anyway, think I should Email Lee/mike about this bug with bigger matrixs?
Whats their email adress?

CajunCoder
21
Years of Service
User Offline
Joined: 29th Nov 2002
Location:
Posted: 1st Dec 2002 21:09
Hmm well that works but now I got another matrix problem!
When I rotate the camera at a certain angle (usuelly I have to walk straight then make a 360 degree turn) my frame rate drops from 90's into 20's!!!

Login to post a reply

Server time is: 2024-05-04 02:58:37
Your offset time is: 2024-05-04 02:58:37