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 / Need help with a matrix texture

Author
Message
zeeenza
18
Years of Service
User Offline
Joined: 2nd Jul 2006
Location:
Posted: 27th May 2007 06:48
Does anyone know how (if it's even possible) to texture both sides of a matrix? I'm using a ghosted matrix as water, and when I go under the water and look up, I can't see it. I can only see it from the top. I'm using DB Pro.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 27th May 2007 07:00 Edited at: 27th May 2007 07:02
switch the culling on so both sides are rendered.
look at the set matrix command

zeeenza
18
Years of Service
User Offline
Joined: 2nd Jul 2006
Location:
Posted: 27th May 2007 07:21
I've tried that already, and it didn't work. I was sure what to set it to so I tried setting it to 0, 1, and 2. None of them worked. The help file said 0 would work and it didn't. Here's my code:

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 27th May 2007 19:56 Edited at: 27th May 2007 19:57
The Set Matrix flags in DBP are 1 for on and 0 for off. This is the opposite to DBC where 0 is on and 1 is off.

So, your line:



means wireframe, transparency, cull, filter, light, fog and ambient are all off.

What's more, that's the command to change the settings for matrix number 1. The matrix in your code is apparently number 6!

Try:



TDK_Man

zeeenza
18
Years of Service
User Offline
Joined: 2nd Jul 2006
Location:
Posted: 27th May 2007 21:31
Quote: "What's more, that's the command to change the settings for matrix number 1. The matrix in your code is apparently number 6!"


Yeah that seems to be the problem...I can't believe I didn't see that. Although it still doesn't work when I set the cull to 1. I had to put it on 0, like DBC. Oh well, at least it works now. Thanks.

Login to post a reply

Server time is: 2024-09-26 22:52:02
Your offset time is: 2024-09-26 22:52:02