Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
About
Team
Rules
Stats
Status
Sitemap
Chat
Downloads
Forum
News
Our Projects
Major Community Projects
Recent Posts
Unread Posts
Replies
Tools
SourceCoder3
Other Things...
Omnimaga Radio
TI-83 Plus ASM File Unsquisher
Z80 Conversion Tools
IES TI File Editor
Free RAM areas
Comprehensive Getkeyr table
URL Shortener
Online Axe Tilemap Editor
Help
Contact Us
Change Request
Report Issue/Bug
Team
Articles
Members
View the memberlist
Search For Members
Buddies
Login
Register
Omnimaga
»
Forum
»
Calculator Community
»
Other Calc-Related Projects and Ideas
»
TI Z80
»
xLIB 84C Edition
« previous
next »
Print
Pages:
1
...
5
6
[
7
]
8
9
...
22
Go Down
Author
Topic: xLIB 84C Edition (Read 51074 times)
0 Members and 3 Guests are viewing this topic.
Xeda112358
they/them
Moderator
LV12
Extreme Poster (Next: 5000)
Posts: 4704
Rating: +719/-6
Calc-u-lator, do doo doo do do do.
Re: xLIB 84C Edition
«
Reply #90 on:
July 24, 2013, 12:30:55 pm »
Wow, those polygons look great!
Logged
My pastebin
|
Pokémon Amber
|
Grammer Programming Language
|
BatLib Library
|
Jade Simulator
|
Zeda's Hex Opcodes
|
FileSyst Library
|
CopyProg
|
TPROG
|
GroupRead
|
Lbl Read/Write
|
Z80 Floating Point Routines
(
z80float on GitHub
)|
Z80 Optimized Routines Repository
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: xLIB 84C Edition
«
Reply #91 on:
July 24, 2013, 01:01:53 pm »
By the way tr1p1ea, a good trick to make smoother screenshots would be to slow down your programs to about 30 times their original speed, take a capture then speed it back up to the original speed in VirtualDub. Just make sure that the screenshot speed remains as accurate as the calc, though. This is what I do with Nspire screenshots when I want quality, because I can't get more than 7 FPS on this computer for such animated screen captures, but luckily the Nspire emulator supports slowdowns.
Logged
tr1p1ea
LV7
Elite (Next: 700)
Posts: 647
Rating: +110/-0
Re: xLIB 84C Edition
«
Reply #92 on:
July 24, 2013, 05:56:38 pm »
Well its a small 3D test, but like i said there is no culling or sorting so different coloured faces wouldnt work correctly. That said different colours are the same speed.
It draws a frame, then swaps GRAM buffers and erases the old frame (it draws over the old polygons in white as opposed to clearing the entire screen).
Im sure there will be loads of example programs since the way this version of xLIB works is fairly different.
Good tip with the screenshot btw!
Logged
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: xLIB 84C Edition
«
Reply #93 on:
July 24, 2013, 06:13:36 pm »
Ah I see now. Thanks for the info.
As for the screenshots just make sure to link to them, though, if you make any like that, else they will be like 8 MB large
Logged
tr1p1ea
LV7
Elite (Next: 700)
Posts: 647
Rating: +110/-0
Re: xLIB 84C Edition
«
Reply #94 on:
July 24, 2013, 06:53:55 pm »
Well i can convert it to a better frame-rate but decimate the frames to reduce the file size too. Its difficult to make screenshots when you are switching between the left/right of the screen.
Logged
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: xLIB 84C Edition
«
Reply #95 on:
July 24, 2013, 06:58:21 pm »
Yeah true. By the way how do you make them now? Do you manually edit them frame by frame? Because that must be long!
Logged
tr1p1ea
LV7
Elite (Next: 700)
Posts: 647
Rating: +110/-0
Re: xLIB 84C Edition
«
Reply #96 on:
July 24, 2013, 07:17:31 pm »
For small screenies i just remove every second frame, but thats what makes it jumpy. Still it does make me happy that maybe i might have a chance of porting my 3D engine over to the 84C.
I will hopefully have time to knock over some of the remaining features so that users can properly test sprites/tilemaps.
Logged
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: xLIB 84C Edition
«
Reply #97 on:
July 24, 2013, 07:31:12 pm »
Oh I see now. I guess that works then. And yeah a port of the 3D engine would be nice. Please don't go too overboard on 3D features, though, because many inexperienced programmers and new community members will go nuts when seeing screenshots of more advanced projects then all start trying making 3D games, even though they have zero experience in 3D and that BASIC is slow. Even in Axe we have yet to see proper 3D games (non-raycasting/mode 7 I mean)
Logged
tr1p1ea
LV7
Elite (Next: 700)
Posts: 647
Rating: +110/-0
Re: xLIB 84C Edition
«
Reply #98 on:
July 24, 2013, 07:39:42 pm »
I dont think that ill include any 3D routines in xLIB since it can get quite complicated. I will have the shape drawing available however. It will be recommended that people stick to sprites and tilemaps.
That reminds me, i need to implement a text routine!
Logged
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: xLIB 84C Edition
«
Reply #99 on:
July 24, 2013, 08:05:02 pm »
I guess you could just write a BASIC+xLIB program that showcases the polygons and your 3D routine, to show its potential. Can we chain polygons like with sprites?
As for text, you could always just re-use the sprite routine but via a different syntax (assuming, for example, that text is made of 8x8 sprites containing 7x7 chars), eg:
real(666,X,Y,Stringoftext,<NumOfCharPerRow,TxtColor,BgColor,DoYouWantToSwitchGRAM>
1) Anything after Stringoftext would be optional and if BgColor isn't specified it would be transparent by default.
2) X and Y could be any number from 0 to 159 and 0 to 119 respectively, not just multiples of 8. This would allow people to do special effects with text such as scrolling, shadows or bold text.
3) Idk if chars per row would be hard to implement, but it could be handy for people with RPG boxes. Anything you display outside the current GRAM area would be clipped.
4) For the font, if you go with 7x7 this allows a max of 20x15 chars at once in the screen.
Then comes the problem of displaying variable content via such text routine. Some people might want to show HP/MP, so what you could do is:
1) If user displays a real var instead of text or str var, just display that number instead as you would do with the BASIC Text command
2) If user displays ONE element from a list, do the same as in BASIC
3) If user displays ONE element from a matrix, do the same as in BASIC
3) If user tries to display anything else (such as an entire matrix or even a pic), trigger the ERR:DATA TYPE msg or do nothing.
Else, if it's too complicated, you could always only show content from the Ans var, nothing else.
«
Last Edit: July 24, 2013, 08:12:48 pm by DJ Omnimaga
»
Logged
tr1p1ea
LV7
Elite (Next: 700)
Posts: 647
Rating: +110/-0
Re: xLIB 84C Edition
«
Reply #100 on:
July 24, 2013, 10:12:28 pm »
It might be more useful to display text from Ans given the way the backend of the parser works. Plus this would allow you to build strings from various sources if need-be.
Im thinking for a start that the text will always have a transparent background (and you can draw a filled rectangle behind it if needed). You will be able to write text at any position on screen.
Logged
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: xLIB 84C Edition
«
Reply #101 on:
July 24, 2013, 10:37:03 pm »
Yeah I guess that could work too. Also good idea about the background lol. Actually I guess this makes sense since most people will display text over a window or the map anyway, so on a window he already has a background setup anyway.
Logged
tr1p1ea
LV7
Elite (Next: 700)
Posts: 647
Rating: +110/-0
Re: xLIB 84C Edition
«
Reply #102 on:
July 24, 2013, 10:49:46 pm »
Thanks for all the great ideas DJ!
Logged
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Xeda112358
they/them
Moderator
LV12
Extreme Poster (Next: 5000)
Posts: 4704
Rating: +719/-6
Calc-u-lator, do doo doo do do do.
Re: xLIB 84C Edition
«
Reply #103 on:
July 25, 2013, 11:08:30 pm »
Hopefully this works (posting from my phone). Anyways, my idea was to be able to draw text vertically and to also be able to treat a string like a 2D array and given a height and width argument, extract a row or column (with clipping). This would be useful for text based tilemaps, but this is just an idea. This would probably be a better idea applied to drawing a single row or column of a tilemap. I hope this makes sense!
Logged
My pastebin
|
Pokémon Amber
|
Grammer Programming Language
|
BatLib Library
|
Jade Simulator
|
Zeda's Hex Opcodes
|
FileSyst Library
|
CopyProg
|
TPROG
|
GroupRead
|
Lbl Read/Write
|
Z80 Floating Point Routines
(
z80float on GitHub
)|
Z80 Optimized Routines Repository
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: xLIB 84C Edition
«
Reply #104 on:
July 25, 2013, 11:30:17 pm »
Drawing text vertically would make it hard to display actual sentences, though.
Imagine if your text is:
"HELLO WORLD!
HOW ARE YOU?"
Then your string would need to look like this
:
Prgm:NAME
:"HHEOLWL OA RWEO RYLODU!?"
:Real(666,X,Y,12,2
Logged
Print
Pages:
1
...
5
6
[
7
]
8
9
...
22
Go Up
« previous
next »
Omnimaga
»
Forum
»
Calculator Community
»
Other Calc-Related Projects and Ideas
»
TI Z80
»
xLIB 84C Edition