Subject:
|
Re: Text Based Programming for NXT - pbLua is Available
|
Newsgroups:
|
lugnet.robotics.nxt
|
Date:
|
Mon, 22 Jan 2007 11:08:50 GMT
|
Viewed:
|
13928 times
|
| |
| |
In lugnet.robotics.nxt, Julien Letrouit wrote:
> > Does anyone else think that these things would be useful? I'm not trying to
> > push aything on Ralph here, but this is the sort of thing I'd like to have a
> > crack at.
> >
> > Jason R
>
> This would definitely be useful for me! I am currently programming an
> interface for controling a train layout. This is the kind of thing that needs
> good graphics. There is a lot of situation where advanced graphics are useful in
> robotics.
>
> Julien L.
Thanks for the support - I thought I was the only one!
My main aim was to go for the sort of graphics libraries that support games, so
if you could spare the memory you could draw on hidden screens, copy chunks of
screens around, display screens made from maps, overlay sprites, etc.
For your purposes, you'd probably want to draw a plan using lines and
pixel-positioned text, then add overlaid sprite or icon images.
Masked images (where the background is cut-out in an outline before the image is
overlaid) would take a little more memory to store (or you could generate the
masks in real-time at the expense of speed), but they look so much better than
pasting whole rectangles, or merging with what's on screen.
On the other hand, switching down to a basic character-based screen could save
memory if that's what's pertinent to your project. You could always just use
the font to draw box and line graphics.
My problem is I can't easily add this sort of thing to the basic firmware
because there won't be the NXT Byte Codes to support it. I suppose I could try
and extend the set of codes, but it wouldn't be standard and a custom NBC
assembler would have to be written around them.
At the moment, I'm still desperate to see a working GCC build of any of the
firmwares that are around at the moment. I've not been able to set my own up
but I want to start meddling.
Jason R
|
|
Message is in Reply To:
28 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in NXT programmable brick
|
|
|
|