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 / matrix lighting problem

Author
Message
bakall
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 27th Jan 2009 10:36
hey guys

I\'m having some serious trouble getting lights to show up on my textured matrix. I\'m guessing it has something to do with the SET MATRIX NORMAL command, but I really am having trouble understanding it.

This is the code I\'m using to create the matrix.

global g as integer = 10000
make matrix 1, g, g, 40, 40
load image \"image.bmp\", 1000000
prepare matrix texture 1, 1000000, 1, 1
position matrix 1, 0 - (ground/2), 0, 0 - (ground/2)
update matrix 1
Monk
16
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 27th Jan 2009 20:35
Im not sure if there is a way to make lights cause shadows etc on a matrix. Ive never found a way anyway.
One way round is to make a terrain using the advanced terrain commands built in to DBPro that will allow you to make better terrain that has a light command as well. This should solve your lighting problem.
As for lights on matrices...

Sp1der
18
Years of Service
User Offline
Joined: 19th Feb 2006
Location:
Posted: 6th May 2009 14:12
if you do this command then your matrix will be effected by all lights

AGL
16
Years of Service
User Offline
Joined: 13th Jan 2008
Location:
Posted: 15th May 2009 13:59
I just got the same problem recently with lights and matrices. I found that matrices don't accept light when screendepth is set to 16bits.

AGLP

Login to post a reply

Server time is: 2024-09-28 02:33:17
Your offset time is: 2024-09-28 02:33:17