556
TI-Nspire / Re: [Lua] Tiny3D
« on: October 01, 2011, 12:54:53 pm »
Strange, really strange.
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. 557
TI-Nspire / Re: [Lua] Tiny3D« on: October 01, 2011, 10:32:11 am »
line 49 : I think you'd better use
count = 0 ... for ... count = count + 1 faces2[count] = faces[j] end ... table.setn(faces2, count) instead of table.insert which is 7 times slower. EDIT : it seems that table.setn is depreaciated. Just test that without it and only if #faces2 is egual to 0, use it. 558
TI-Nspire / Re: [Lua] Tiny3D« on: October 01, 2011, 07:40:25 am »It does not... It only calculates the angle with the camera.I wasn't talking about that, but I think I will look at it since I think Make3D uses an old and heavy method with face normal calculations. Quote But to choose which polygon I draw first, I use table.sort(). Is that bad ?It depends on how table.sort() is implemented. We have to make benches about that : - insert element at it right place with table.insert(e, n) while computing it (mine) - compute elements, then table.sort(l, fun) (your) Quote And I don't say that it's fast, but it is fast enough to be playable...Make3D really slows down in shading view when we reach the limit of 200 faces displayed. It comes really fast since a 15*15 grid is 225 points and about 200 faces. This is why I was curious of what method you used without looking at your sources 559
TI-Nspire / Re: [Lua] Tiny3D« on: September 30, 2011, 05:44:14 pm »
Does your Shading mode use the crappy table.sort() I saw in previous versions ? or did you change it ?
I just wish to find what method you used to render that as fast as you say (I didn't tried yet, you just judges that it is fast ). 560
TI-Nspire / Re: NYAN NYAN NYAN NYAN ... this is the game :D« on: September 29, 2011, 02:31:56 pm »
Yeah yeah ... someone already told me that .... but it is a crappy timer bug that I can't figure out. =(
561
TI-Nspire / Re: [Lua] Make3D« on: September 28, 2011, 04:35:36 pm »
A really simple and little mouse selection system today ...
(bounding box and depth based) Everything is pre-cached during the render part, so that it won't compute two times the same thing =) 562
TI-Nspire / Re: [Lua] Tiny3D« on: September 28, 2011, 12:40:55 pm »I thought CX was faster because it didn't have to do grayscale conversion. Or is that just for gc:drawImage()?On my Clickpad.The CX =) I don't use drawImage() in Make3D and it is farly slower on the CX. With both Nspires rendering the same thing, the ClickPad goes faster to animate my default scene. 563
TI-Nspire / Re: [Lua] Make3D« on: September 27, 2011, 05:02:23 pm »- no more infinite points behind the virtual camera (no camera yet, but it should come) - transparent mode - object label is displayed in every modes - Some invisible micro-features like Shift+Z to switch backward in display modes (Z lets you switch forward) What "should" be there in the future *- real camera that enables you to really move in 3D space *- Grid ? *- adding objects like cubes, cylinders etc ... *- edit mode that let you play with vertex and faces ***-> it requires a lot of features in face manipulations (recalculate normals outside, flip normals, syncronisations of mesh based datas, etc ...) *- selection by cursor ***-> it requires a simple raytracer function (I've done that before but it involves huuuge formulas ...) ***-> I'm certainly kidding, or mad, but ... it could go in another way A RayTracer on the Nspire ? :DDD Bonus : 564
News / Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files« on: September 27, 2011, 01:19:10 pm »@Levak: Mac has changed ? Ok, troll off 565
News / Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files« on: September 27, 2011, 12:28:39 pm »Luna v0.2a is now available with several bug fixes. Sorry for this unable v0.2. You should specify which Linux distro and which Mac version... cuze Windows is AFAIK the only one where it is "hard" to compile and where a compiled *.exe is the same for everyone. Don't you think ? 566
TI-Nspire / Re: [Lua] Tiny3D« on: September 26, 2011, 02:32:51 pm »How do you use this library? Like, how should you store the data to render a 3D object?Two ways I guess : 1) library, like I made for Make3D 2) Using its source code 567
News / Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files« on: September 26, 2011, 12:59:29 pm »Code: [Select] echo $(perl -0777 -pe 's/(.*<r2dtotree>|<\/r2dtotree>.*)//gsm' dump.xml | sed "s/<node name="1para">/\x0D/g;s/<\/*node[^g]*>//g;s/<\/*leaf[^g]*>//g;s/<cursor[^g]*>//g;s/&quot;/\"/g;s/&apos;/'/g;s/&lt;/</g;s/&gt;/>/g" | sed 's/&/\&/g' ) > dump.lua is the code to get the source code form the xml file of a lua program coded using oclua (TI-Notepad) 568
News / Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files« on: September 26, 2011, 10:58:32 am »Levak: You could create a file containing all the debugger commands to enter: Thanks ! Here is my working dumper thanks to your help : Code: [Select] function dump { > bash 4 linux> requires zenity > requires wine > only works with OS 3.0.1 AND NONCAS roms. EDIT : it can easily be added to my bash launcher 47 + "dump" "Dumper un classeur (Ctrl+S -- dump.xml)" \ 177 + (the code above) 271 + elif [ "$select_noncas" = "dump" ]; then dump 569
News / Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files« on: September 25, 2011, 02:31:36 pm »
!summon Goplat :
Can you debugger be interfaced with a scripting language ? I mean bashing actions like this one : -> k 10032aa0 +x -> c -> Ctrl+S -> w C:\dump.xml r1 400 -> c -> w C:\dump.xml r1 400 -> c -> w C:\dump.xml r1 400 ... n time ... -----> Dump of a document. EDIT : well, I guess that integrated plugins would be really great, isn't it ? 570
News / Re: "Luna" is here and converts your .lua files into 3.0.2-compatible .tns files« on: September 25, 2011, 12:34:00 pm »Would it be possible to use it in order to get text from a TNS file without TI-Nspire Computer software ? With an emulator and a memory dump ... but it is really messy |
|