Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Vogtinator

Pages: 1 ... 67 68 [69] 70 71 ... 83
1021
Axe / Re: [Axe] Mode 7 test
« on: December 30, 2012, 01:10:17 pm »
I think projecting pixels from the buffer onto the screen would be faster, you don't need to project empty regions at all.
But calculating which (screen-)pixels have to be set for one (image-)pixel/texel needs some time, too.
Many clear texels -> image->screen faster
Many set texels -> screen->image faster

Also, are you doing real mode 7 (which doesn't support perspective/z at all)?

1022
Casio Calculators / Re: Mass Storage for Prizm
« on: December 29, 2012, 05:55:38 pm »
The size of the flash would not be a problem, my fritzbox has only 4 MB flash and has two webservers, wlan etc..
According to http://prizmwiki.omnimaga.org/wiki/Casio_Prizm the prizm does only have 2 MiB RAM.
I don't think that would be enough space to run applications.
Does the prizm allow executing programs directly from flash?
Then the bootloader would only need to load sections with r/w access into RAM.

1023
Calculator C / [3D Math]Correct perspective
« on: December 29, 2012, 08:21:08 am »
I don't know if it fits in here, but I can't find a better place..

Here I have a cube:

With rotation matrices I can rotate it on a specified axis and I can translate it:

But this doesn't look right, I don't want to have orthogonal projection, I want it to look like:


I already tried projection matrices but they're only displaying:

That's way to extreme and still in the wrong direction..

How can I achieve this?

BTW: The bottleneck of this seems to be the RAM write speed, on the emulator it runs > 200 FPS
On a real calulator ~90 FPS.
Would double buffering be faster than memcpy every frame?

1024
TI-Nspire / Re: nTxt - Nspire Text Editor
« on: December 28, 2012, 06:53:10 pm »
Im getting some Ideas..
How about implementing touchpad mouse support?
If you hold down CTRL while using the touchpad you can use the cursor like a mouse?
And if you're moving the cursor while pressing the touchpad/holding down SHIFT, you'd be able to scoll?

1025
TI-Nspire / Re: nTxt - Nspire Text Editor
« on: December 28, 2012, 06:40:53 pm »
Yes *facepalm myself*...
It does also indicate with a "$" at the end of a line it's longer than the screen.

1026
TI-Nspire / Re: nTxt - Nspire Text Editor
« on: December 28, 2012, 06:32:47 pm »
Hmm, don't know how to describe..
It does like PgUp/PgDown on that line if you go too far and displays a "$" at the beginning.

Code: [Select]
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaac$         ->   $aaaaccccccccbbbbbbbbbbbbbbbbbba
                              ^Cursor              ^Cursor

1027
TI-Nspire / Re: nTxt - Nspire Text Editor
« on: December 28, 2012, 06:19:43 pm »
Can't you do it like nano?

1028
Calculator C / Re: Arrays interfering with each other
« on: December 25, 2012, 11:07:20 am »
Try to allocate them dynamically (malloc).
Does it make any differences if you allocate invmenu before recipes and vice versa?

1029
Miscellaneous / Re: Christmas - what did you get?
« on: December 25, 2012, 09:32:11 am »
I got a Logitech USB Headset H390 for my calculator! YAY

1030
Calculator C / Re: Arrays interfering with each other
« on: December 25, 2012, 08:33:14 am »
Quote
for(ly = 0; ly <= 7; ly++)
{
   for(lx = 0; lx <= 10; lx++)
The last run would be: ly = 7, lx = 10.
invmenu[ly*10+lx] = invmenu[80].
In Java you would get an ArrayOutOfBoundsException :D

1031
Calculator C / Re: Weird error: sprintf
« on: December 24, 2012, 06:09:15 pm »
Wouldn't it be better to provide it directly with newlib?
It would be faster and there will be no such problems anymore.
Only disadvantage would be the increasing size of the binary.

Edit: Workaround: Use http://stackoverflow.com/questions/2302969/how-to-implement-char-ftoafloat-num-without-sprintf-library-function-i.
The third answer works perfectly with floats, too.

1032
Calculator C / Re: Weird error: sprintf
« on: December 24, 2012, 05:26:53 pm »
Quote
sprintf is a syscall, yes. Ndless almost only uses syscalls and AFAIK doesn't use Newlib.
http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction_on_Linux
But it gets build and gcc links against it.

1033
Calculator C / Re: Weird error: sprintf
« on: December 24, 2012, 04:39:21 pm »
Tried that, doesn't work.
But it shouldn't confuse va_list.

Code: [Select]
sprintf(str, "%d, %f, %lf", 1, 1.5f, 2.5);Should be fine I think.

Quote
Maybe GCC and Nucleus / TI's code use different formats for floating-point values ?
Is sprintf a syscall? Isn't it included in newlib?

Edit:
Gcc thinks "1.5f" is a double..

1034
Calculator C / Re: Weird error: sprintf
« on: December 24, 2012, 01:20:57 pm »
http://www.unsads.com/projects/nsptools/register
Can't register..
Do I have to mail him?

1035
Calculator C / Re: Weird error: sprintf
« on: December 24, 2012, 01:05:00 pm »
Nope, no change.

Code: [Select]
sprintf(str, "1: %d 2.5: %f 1.5: %f", 1, 2.5f, 1.5);prints: "1: 1 1.5: 0.000000 2.5: 0.000000".
Seems to be some kind of issue with va_list's and aligning, doesn't it?

Pages: 1 ... 67 68 [69] 70 71 ... 83