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 Discussion / image transparency on matrix

Author
Message
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 3rd Apr 2009 02:30
is there any way to pull off a sprite-like black transparency effect in a matrix?

reason im asking is im trying to make a recreation of GH/RB, and i was going to use one long matrix with the proper colored disks in the appropriate rows, but i want to be able to put a colorred background as the backdrop and have it visible between notes

any ideas?
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 3rd Apr 2009 16:42
Why a matrix? Why not use objects?

That's what they WANT you to think...
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 3rd Apr 2009 21:57
Quirky has a good point. What you could do is texture a plain with the appropriate pic, and set the cull on (or off, whichever, removes black.

I actually wrote some code a while back to work with a GH guitar I acquired from work. It would randomly choose a button combination, set up the key buttons, take the input from the guitar and see if you strum correctly (I think I got that part working). If you want it as reference, here is the code: (note it won't work because it is looking for the guitar and it reqs some images, but you should be able to see how it works)




Sorry for the messy code, I finished it and had begun to move on to the next step in my plan (alter the guitar to use strings instead of buttons) and use this program to test it. Never got around to the guitar itself though.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 3rd Apr 2009 22:00
Quote: "is there any way to pull off a sprite-like black transparency effect in a matrix?"


SET MATRIX

or for translucency
GHOST MATRIX ON

Enjoy your day.
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 4th Apr 2009 02:40
hows that for irony bn2, a GH game recreation is exactly y i asked this question
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 4th Apr 2009 08:32
Thought so. The fret display probably won't be useful, since it is pretty basic, but I figured you could get some good info for the frets. I used a binary system, so for the fret selections, it could just randomly select a single number which is turned into button presses (I think in the Fretworks function). It is similar to how mouse buttons are read, where:

Button Value
1 1
2 2
3 4
4 8
5 16

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 4th Apr 2009 18:41
yeah, but the plan was for every "beat" containing a note, i would place the right number of notes into that row of a matrix, then scroll the matrix downward towards the player, this would be the fastest and most efficient way to move the notes
Libervurto
19
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 5th Apr 2009 02:33 Edited at: 5th Apr 2009 02:34
You all have such colourless avatars!
mine isnt much better but goes with my name

can't read?
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 5th Apr 2009 04:26
ok...... kinda off topic
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 5th Apr 2009 19:46
@smartguy
well it wouldn't have to be random. the system is useful because a single number can be used for all buttons in a line

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 5th Apr 2009 19:54
My Signature is better, though!

That's what they WANT you to think...
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 5th Apr 2009 23:21
here a quick 5 min demo of wat im tryin to accomplish:



this works, but i want to be able to have the image be circles, then put a background behind the matrix and have it be visible between the notes

There are only 10 kinds of people in the world, those who understand binary and those who dont
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 5th Apr 2009 23:30
Once again: why use matrices?

That's what they WANT you to think...
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 6th Apr 2009 01:17 Edited at: 6th Apr 2009 01:19
speed and convenience, which is easier and faster, this:



or this:



There are only 10 kinds of people in the world, those who understand binary and those who dont
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 6th Apr 2009 02:55
Careful with shift matrix down, as it shifts it 1 SQUARE, not one unit, so it could result in large jumps.

With an object, how bout this:

Scroll object texture...

Don't remember exact syntax, but I will get back to you on it once I finish my hw.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose

Login to post a reply

Server time is: 2025-08-08 20:42:28
Your offset time is: 2025-08-08 20:42:28