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.

Bug Reports / DBP 7.5 beta 2 box command.

Author
Message
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Nov 2009 19:22 Edited at: 26th Nov 2009 19:25
found out that the box command does not color the box as expected.

In this code first box in top left and bottom right is how expect the other boxes to look as the main color is moved to each corner.




Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 26th Nov 2009 20:32
Looks suspiciously like vertex colouring to me - i.e. the four patterns are much as I would expect to see if you used vertex colouring on a DBPro plain with the seam going from top left to bottom right. Why that should apply to the box command is anyone's guess. IanM?

Anyway, I agree. I think you'd reasonably expect all four corners to contribute to each pixel - but they don't. Another item for the Help file?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Nov 2009 21:28
if you not installed Matrix1 Utility Plug-ins could you check that the result are the same?

This will see if it is DBPro and not the plugin.

Dark Physics makes any hot drink go cold.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 26th Nov 2009 21:46
I've got Matrix1 on all my machines for some odd reason.

They are so good I'm thinking of downloading them to our dishwasher as well.

Seriously though, which Matrix1 command do you think is relevant? None of them should be called by that snippet.
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Nov 2009 21:58
The order of the colour parameters on the box command is (and always has been) bottom left, top left, bottom right, top right - that's what I see in your image.

I think I'm seeing what I expect to see - what is it you were expecting to see? It's been a long week for me, so be kind if I'm missing something obvious.

BTW, my plug-ins have no effect on the BOX command.

@GG,
Yes, I believe that it's a simple 4 vertex triangle strip that uses the diffuse colour for colouring (with alpha blend).

The vertices are draw in this pattern:
13
02

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Nov 2009 22:00
Quote: "None of them should be called by that snippet."


Thats what I thinking, just wanted someone to say so who's not installed it.

Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Nov 2009 22:07
Quote: "I think I'm seeing what I expect to see - what is it you were expecting to see? It's been a long week for me, so be kind if I'm missing something obvious."


I was expecting to see the first pattern rotated the same in each output.

Dark Physics makes any hot drink go cold.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 26th Nov 2009 22:58
Quote: "Yes, I believe that it's a simple 4 vertex triangle strip that uses the diffuse colour for colouring (with alpha blend).

The vertices are draw in this pattern:
13
02"


What have vertices got to do with it? Are you saying that the 2D box commands are limited by the poly structure of 3D objects? Seems bizarre and unnecessary. I would expect a simple bilinear filter of the four corners.

Quote: "I was expecting to see the first pattern rotated the same in each output."


I wasn't. I was expecting to see the same pattern rotated as you describe - but neither of those shown.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Nov 2009 23:16
some code that does all the possibility except solid grey or red.

having done this, looks like diagonal pattern like was hoping is not possible.

so reject if you think it works the way it should.



Dark Physics makes any hot drink go cold.
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Nov 2009 00:13
Ah, I see your point now. You can get a diagonal from top-left to bottom-right, but not from bottom-left to top-right.



I'm not sure how to mark this one, so I'll sleep on it

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 27th Nov 2009 00:51
Why do I detect a new Matrix1 box command on the way?

I'm sure a bi-linear filter is what is needed - but might not be easy to implement efficiently. It would be easy in a shader though ...
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Nov 2009 22:52
Quote: "Why do I detect a new Matrix1 box command on the way?"

Nah, DBPro bugs should get fixed within DBPro, not via additional plug-ins - I spend enough time fixing my own bugs thanks

I think I'm going to mark this as a bug (although it's really more of a limitation).

Once I thought about it a little, the solution came to me fairly quickly - rather than use two poly's, use four poly's with a shared vertex in the centre, and their outer vertices describing the square/rectangle, continue to use vertex colouring, and calculate the centre colour by averaging the corner colours.

If a 'fan' is used rather than a 'strip', then the whole thing can be rendered with 6 vertices & 4 poly's - not quite as good as 4 vertices and 2 poly's, but that's the price.

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 1st Apr 2010 17:48
@IanM

With the update in 7.5 beta 10 this now works as I expected to.

Now possible to make pointed side bars.



Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-03-28 21:54:22
Your offset time is: 2024-03-28 21:54:22