Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Help!
#1

ADC confusion

Archive: 5 posts


Call me a noob but I feel lost in all of this ADC talk. Tygers and rtm223 both wrote up what seem like very informative tutorials on them but I'm still failing to see some of the implications. Can anyone give me an actual example they've used this system for? What's with the giant sequencers containing boat-loads of batteries, ANDs and OR gates and how do they receive and produce something usable? Does anyone have a video showing how to implement this?

I just feel like I'm missing out on a key part of creating. Or is it not really necessary for many things?
2011-02-27 11:47:00

Author:
Unknown User


The full-on representation of an analogue value in binary encoding (whatever kind: plain base-2, BCD, gray code, or whatever) is pretty much useless, IMO. There are a few minor things you could use it for, but for the most part it's more of a curiousity.

The sequencers full of batteries are just turning an analogue percentage (i.e. 10%) into a digital representation of that value across several wires (10% becomes (0001010, in base-2). With digital encoding like this not being a native data type of the game, you have to do a hell of a lot of work to do anything with it, which is the main reason I don't feel that it's particularly significant. So, in my opinion, you really aren't missing out on a key part of creating if you can't generate a binary encoding from your analogue signals


Mostly I use those techniques for comparison / thresholding / decision-making, which I do think is particularly useful.
2011-02-27 12:07:00

Author:
rtm223
Posts: 6497


thank you that was helpful. took a bit off my mind too. can you give me an example of your "comparison / thresholding / decision-making"? I'm still curious as to its implementations2011-02-27 12:34:00

Author:
Unknown User


What he's saying, is rather than pack the sequencer full of batteries to produce a full binary value... He puts in individual batteries for certain conditions and doesn't deal with the binary data at all.

For example.... (All these with the sequencer in positional mode)

Boss logic - Activate special attack between 20% and 50% health.... (Decision making)
Make a 5 stripe wide sequencer and place a battery covering the second and half the third stripe, and hook it up to the circuit to do the special attack.

Locate a player - Is a player closer than a tagged object? (Comparison)
Make a 1/2 stripe wide sequencer and place a battery covering all of it (But not overlapping) - add a directional combiner and feed a player sensor into the positive output, and the appropriate tag sensor into the negative output (And make sure both are tweaked to the same range). Feed the combiner output into a directional splitter. Plug the positive end into the sequencer. If the battery is active, the player is closer. (If it's not active, the player is further, OR they are identical distances away.)

That is the sort of thing he is saying the ADC trick can be used for. Binary numbers are hard to work with for little payoff most the time.
2011-02-27 13:46:00

Author:
Tygers
Posts: 114


Or is it not really necessary for many things?

Most common application for ADCs so far seem to be logic probes, which are pretty handy when you're creating an analog-based logic network.

Other than that, there are a few instances where you might need to use a combination of both analog and digital logic in your level, and an ADC (or DAC) helps to bridge the gap between the two systems.

For the most part, you're better off sticking with analog if possible - representing numbers in binary is more taxing on the thermo.
2011-02-27 23:46:00

Author:
Aya042
Posts: 2870


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.