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 - Levak

Pages: 1 ... 46 47 [48] 49 50 ... 68
706
Miscellaneous / Re: Random YouTube Videos
« on: August 10, 2011, 02:53:33 am »

707
TI-Nspire / Re: [Lua] Image Editor
« on: August 09, 2011, 02:38:58 pm »
I meant the Lua source code :D

Oh, sorry !

708
TI-Nspire / Re: [Lua] Image Editor
« on: August 09, 2011, 02:32:47 pm »
Updated code please?

Answer :

Oh, I forgot that ! Sorry. The latest version is attached to this post.

=)

709
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua
« on: August 09, 2011, 12:55:33 pm »
I want to start with a wireframe, after blanks face with black contour. So, Z-buffer... Ow...

Don't be afraid about a Z-buffering. There are many tutorials on the internet. It is a really simple and powerfull algorithm, but, for performance, you should implement your own face filling algorithm. It is a really interesting experience.

710
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua
« on: August 09, 2011, 12:50:45 pm »
ProjectPoint(obj[i ], obj[i+1], obj[i+2], zoffset)
I see, it's just {x,y,z}... Just what i thought first. i will study it. Thanks!
Is anything i must know to understand it?

Use setPixel() or equivalent in C, since in the TI-Nspire Lua API we don't have this.
And I think that you may use a Z-buffering instead of my Z-sorting (I wish do one if I had getPixel() and setPixel() )

And one more thing, for a the faces correlation : It is a table of undetermined size tables (2, 3, 4 etc ..). Each element refers to an index in the point list. The order is important, like if you draw yourself the face with lines point by points.

Good Luck =)

711
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua
« on: August 09, 2011, 12:36:38 pm »
Salut! J'ai vu que tu as fait un moteur, c'est cela?
Ton système est-il utilisable en C? Je prévois un petit moteur 3D pour g35+/75/85/etc... en C, maiis je manque cruellement d'infos.
Tu pourrais m'aider? Merci d'avance;

PS: Je comprends très bien le Lua.

Hi,
I followed a C programming tutorial for the basic knowledge (maths and so ..) 3 years ago but I can't find it via Google. It seems it has disappeared ...
Anyway, the basic formulas are in Engine.lua. Other files are related to the GUI and Lua management.

But you'll have to make a real effort to use this method in C, since I completely changed my mind during its integration : 1D list for all points (instead of a n*3)

712
TI-Nspire / Re: TI-Nspire emulator
« on: August 07, 2011, 07:58:57 pm »
How do you do a boot1 dump?
Through the dock connector.

713
Nouv. message par {##} dans {##}

714
Math and Science / Re: Loop all possible words algorithm
« on: August 05, 2011, 11:05:35 am »
Algorithm
Code: [Select]
import Levak

def main():
    for words in Levak.dictionnary:
        print words

Output
Code: [Select]
42


Hum, I'm missing something ...

715
Found 2 intersting plugins :
 - gedit-autocomp
 - gedit-pair-char-autocomplete

The only little problem with the first one is that it pickups symbols that have already been typed =/

I've heard about a complete integration in gedit3 based on gtksourview, but I can't find it.

716
Lua / Re: How to save high scores in Lua
« on: August 04, 2011, 03:18:26 pm »
A little bump for this topic to add a full and detailed answer :
http://www.inspired-lua.org/2011/08/save-a-high-score-without-cheating-possibility/


717
Quote
Nspire-Lua environment for Gedit (Programming Editor for Ubuntu)

Also, Gedit is not Ubuntu-Only, it's "Gnome-Editor". I'm just installing it by the way.

Oops, sorry, thanks for reporting this !

718
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua
« on: August 04, 2011, 01:20:05 pm »
I downloaded a .zip from your site, and it has 4 TNS files in it:
Make3D_exemple.tns
Make3D_v9.3a.tns
mk3d_lib_gui.tns
mk3d_lib.tns
Which one(s) should I send to my calc?

None of them because it is not the zip file that you should download since it is the TI-BASIC version I used to update.

This one is the one :
http://levak.free.fr/ftp/nspire/Make3D/Make3D.tns

719
Quote
- Uncheck "add spaces instead of tabulations"

Tabs are not recommended for anything because they are inconsistent across text editors.
I was, yes, in a way, not really sure about "highly recommend" this option, because it is a general troll... there is a 50/50 opinion for this subject, I have my reasons for using tabs, but it is not the subject of this thread.
Thanks for your intervention, I will remove this from the post, to prevent future discussion on this :p

Quote
Either way thanks, nice job!
Thanks, the pleasure is for me =)

720
Lua / Nspire-Lua environment for Gedit (Programming Editor for Gnome)
« on: August 04, 2011, 10:05:56 am »
Hi, =)

as Adriweb did here,

here is my Lua environment under Gedit : http://levak.free.fr/ftp/nspire/NspireLuaGedit/



I highly recommend this configuration/plugins for Gedit :

Display :
 - Check everything but not "Activate auto-line-return" (fisrt one)
Editor :
 - Tabulations : 4
 - Check "Activate auto-indentation"
Theme : Oblivion
Plugins :
 - (+) Advanced Find/Replace
 - (+) TabSwitch
 - (+) Simple Folding (since there is no auto-folding plugin in Gedit, this is the best one that exists)
 - (+) Project Manager
 - External Tools

External Tools is a greate plugin that lets you add some bash/sh scripts and add a shortcut to it.
For example, I use it with Ctrl+L to "make" Make3D, then, I can work faster for testing purposes.

Code: [Select]
#!/bin/bash
a="Make3D.lua"
b="./"
python ../../maketns/maketns.py ${a:0:${#a}-4}".tns" \
c=0 w \
$b"cube2.lua" \
$b"Utils.lua" \
$b"ScreenManager.lua" \
$b"Buttons.lua" \
$b"Menu.lua" \
$b"Request.lua" \
$b"Constants.lua" \
$b"Engine.lua" \
$b"Transform.lua" \
$b"ExportImport.lua" \
$b"Help.lua" \
$a \
wend cend\

I use also a modified version of maketns (by JayTe) that lets me make several cards (pages) or widgets per pages directly with a linux command prompt.
http://ti.bank.free.fr/forum/viewtopic.php?f=19&t=6885&start=110#p114309

Have fun !

Pages: 1 ... 46 47 [48] 49 50 ... 68