Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
20 June, 2013, 12:31:45 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 ... 5 6 [7] 8   Go Down
  Print  
Author Topic: [Lua] Make3D -  (Read 7315 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Last Login: Today at 11:09:41
Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2122


Total Post Ratings: +264

View Profile
« Reply #90 on: 12 August, 2011, 14:46:37 »
0

I think that there is a confusion with "motor" and "engine". In French, both are translated into "moteur" but "motor" is more for cars.
« Last Edit: 12 August, 2011, 14:54:19 by Hayleia » Logged





Spoiler for what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s
Eiyeron
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 07 January, 2013, 20:29:04
Date Registered: 09 August, 2011, 16:51:22
Location: Err 404.
Posts: 552


Total Post Ratings: +18

View Profile WWW
« Reply #91 on: 12 August, 2011, 14:50:57 »
0

Ah, didn't noticed that, thanks!

Zbuffer needs a array, which size is [height*width], okay
I need a array, whiich's size is 3*numVertices, okay...
Logged




Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 10:33:21
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 858


Topic starter
Total Post Ratings: +150

View Profile WWW
« Reply #92 on: 12 August, 2011, 15:03:06 »
0

How the motor works? I dunno how directly adpat these engine in C...

Yeah ... that's the problem ...
The 'How it works' is a too large question.

I work with two tables : points and faces.
points is basicly a table which contains successively X, Y and Z coordinates (i.e : points = {x1, y1, z1, x2, y2, z2, ...)
faces is a table of tables. Each of theses table contains numbers (2, 3 or 4). Those numbers refer to the point position in the points table.

With this information I'm abale to do what ever I want. After, it is a mathematical problem.
« Last Edit: 21 September, 2011, 19:38:33 by Levak » Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Eiyeron
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 07 January, 2013, 20:29:04
Date Registered: 09 August, 2011, 16:51:22
Location: Err 404.
Posts: 552


Total Post Ratings: +18

View Profile WWW
« Reply #93 on: 12 August, 2011, 15:10:21 »
0

Ah the 2nd table refers every time to the vertices who're composing the faces. I could use structures...
Logged




Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 10:33:21
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 858


Topic starter
Total Post Ratings: +150

View Profile WWW
« Reply #94 on: 13 September, 2011, 23:40:16 »
+1

Ok, back to work, at school I have many huge projects to do in a short amount of time so I guess make3D will slow down a little bit.

But during the past 2 days I've been working on something I couldn't believe it was possible, but in fact, the TI-Nspire Lua API .. well ... the TI-Nspire Framework in general has a real potential.

First, you have to keep in mind that I previously worked on a possible way for Make3D to be modular, like Blender, I mean, with multiple widgets all synchronised and fully customizable. This technique has a problem : each time you duplicate the widget, you duplicate the source code. Thus, we have to find a way to avoid this useless duplicated data which is the same all the time.

What I'd been working on, is importing, through strings, Make3D source code from MyLib. Indeed, this is possible !
It is possible, yes, but, I have to use a modified version of makeTNS for making it working which is not compatible with OSes 3.0.2 and sup. Why ? Because The source code isn't saved between <wdgt type="TI.ScriptApp"></wdgt> but in the symbol table in the beginning of Problem1.xml, the area where all variables of a problem are defined. Ok then, I just save the source code as a string variable, but keep in mind that tns documents are crypted and we don't know how to crypt it, and if we knew it we won't be in rights to reproduce it (legal issues). Luna uses the legal fact that TI can't crypt user's source code, thus, it is "clear" in the zipped archive.

So my modified version of MakeTNS only opens a xml file in the Problem1.xml format, and save it as a tns document only compatible with OS 3.0.1 - just resave it with OS 3.0.1 to make it compatible with newer OSes.
Here it is : http://levak.free.fr/ftp/nspire/Make3D/maketnsFromXML.py

Then, I made my proper "Makefile" that generates in a different way my Library file that has the entire Source Code as multiple public strings : http://levak.free.fr/ftp/nspire/Make3D/Makefile.sh

You will be able to see that it also generates a widget with the "include" method which loads and launches all strings from the library. It handles "basic" errors on start-up like if we didn't refresh libraries before launching the widget.

It keeps the save and restore states but it is a little bit of bullshit, welll, it is a little bit strange, but it works Cheesy

The Makefile source code also includes my really-quick-coded-TI.Notepad-converter-from-text that converts a text in a valid xml widget - But as I said, it is impossible for now to launch it with an OS like 3.0.2 or higher.


Finally, the url changed since it is a little bit different (compatible 3.0.1, 3.0.2, 3.1):
  • Make3D_debug - when working without library
  • Make3D_lib - when working with library link. The redistribuable widget is included (only copy and paste it in a new document)

That way Make3D will act like a "viewer". When sharing a model, you won't share Make3D source code with it, only the "importer" script.


PS : I'm really tired I can't take the time to see any grammatical-syntax error, my bad ...
« Last Edit: 13 September, 2011, 23:46:27 by Levak » Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
adriweb
Editor
LV9 Veteran (Next: 1337)
*
Offline Offline

Gender: Male
Last Login: 14 June, 2013, 17:56:38
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1202


Total Post Ratings: +186

View Profile WWW
« Reply #95 on: 13 September, 2011, 23:50:17 »
0

Great job ;-)
Logged


TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation
ExtendeD
Coder Of Tomorrow
LV8 Addict (Next: 1000)
*
Offline Offline

Gender: Male
Last Login: Today at 07:34:38
Date Registered: 02 January, 2010, 13:03:41
Location: France
Posts: 774

Total Post Ratings: +154

View Profile
« Reply #96 on: 14 September, 2011, 09:59:00 »
0

Nice idea Smiley
Also I can try to provide any information needed to port the converters to OS 3.0.2 and above.
« Last Edit: 14 September, 2011, 10:00:21 by ExtendeD » Logged

ndlessly - Progress and insights on Ndless
Ndless / Hackspire - Third-party TI-Nspire development
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 09:26:08
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1736


Total Post Ratings: +180

View Profile WWW
« Reply #97 on: 14 September, 2011, 10:58:03 »
0

Indeed, very good job Smiley
And, this idea will be useful for many other programs Smiley
Logged

Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 10:33:21
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 858


Topic starter
Total Post Ratings: +150

View Profile WWW
« Reply #98 on: 14 September, 2011, 13:49:17 »
0

Thanks =)

Here are some screenshots :



Nice idea Smiley
Also I can try to provide any information needed to port the converters to OS 3.0.2 and above.
In public or in private ?
Because when I wanted to modify Luna to do this, I was stopped by Lionel Debroux's explanations about how it finally works. Are you able to convert an xml file (like Problem1.xml) in a tns document ? Because if we can do that you can quickly understand that it is possible to make an alternate version of TI Nspire Computer Software compatible with Linux.

Indeed we can easily document the xml syntax used in Problem1.xml by dumping TI Nspire computer Software clipboard, since it saves it in readable data.
« Last Edit: 14 September, 2011, 13:50:30 by Levak » Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Yeong
Eternally Young Scarlet Moon
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: Yesterday at 00:24:25
Date Registered: 15 October, 2010, 04:29:49
Location: Arden, NC
Posts: 3705


Total Post Ratings: +260

View Profile
« Reply #99 on: 14 September, 2011, 14:15:11 »
0

Wow. awesome!
btw, in the screenshot, is that "nom" on purpose or is it different language?
Logged

Project Redemption....

My project progresses:HERE
My Pastebin stuffs:HERE
Check your rate: HERE
My Animations: HERE
Spoiler for Images :D:

ノ◕ヮ◕)ノ:・゚ PENGUIN WAVE!!:„ø¤º°¨ ¨°º¤KEEP THE PENGUIN GOING ¸„ø¤º°¨ ¨°º¤øº LETS GO PENGUIN !¤¤º°¨¨°º¤øº¤ø„¸¸ø¤º°¨„ ø¤º°¨¨°º
Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 10:33:21
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 858


Topic starter
Total Post Ratings: +150

View Profile WWW
« Reply #100 on: 14 September, 2011, 14:17:48 »
0

Wow. awesome!
btw, in the screenshot, is that "nom" on purpose or is it different language?

It is in French yeah =')
Translate them by "Name" and "Size"
Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Yeong
Eternally Young Scarlet Moon
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: Yesterday at 00:24:25
Date Registered: 15 October, 2010, 04:29:49
Location: Arden, NC
Posts: 3705


Total Post Ratings: +260

View Profile
« Reply #101 on: 14 September, 2011, 14:18:20 »
0

oh, ok. XP
Logged

Project Redemption....

My project progresses:HERE
My Pastebin stuffs:HERE
Check your rate: HERE
My Animations: HERE
Spoiler for Images :D:

ノ◕ヮ◕)ノ:・゚ PENGUIN WAVE!!:„ø¤º°¨ ¨°º¤KEEP THE PENGUIN GOING ¸„ø¤º°¨ ¨°º¤øº LETS GO PENGUIN !¤¤º°¨¨°º¤øº¤ø„¸¸ø¤º°¨„ ø¤º°¨¨°º
Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 10:33:21
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 858


Topic starter
Total Post Ratings: +150

View Profile WWW
« Reply #102 on: 27 September, 2011, 23:02:23 »
+3




 - 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 Cheesy A RayTracer on the Nspire ? :DDD


Bonus :

« Last Edit: 27 September, 2011, 23:03:56 by Levak » Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Hot_Dog
If you can't find a cat, look for its tail.
Support Staff
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 22:11:33
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Total Post Ratings: +432

View Profile
« Reply #103 on: 27 September, 2011, 23:06:07 »
0

These are some sweet screenshots!  Keep up the good work!
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

Chockosta
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Yesterday at 22:20:41
Date Registered: 03 June, 2011, 20:14:17
Location: France
Posts: 443


Total Post Ratings: +159

View Profile
« Reply #104 on: 28 September, 2011, 13:31:55 »
0

Really nice !
Edit mode would be great, but kinda hard...
Good luck with that !
Logged

Chockosta (Loic Pujet) - Sorry for my poor English...
Look at my projects :
in C code : Periodic table, Space invaders, Fall, Snake, Minesweeper, nCraft (WIP)
in Lua : Snake, Space invaders, Bobby Carrot, Minesweeper, Mazes 3D, nSpaint, FreeCell, Tiny3D-Viewer, CubeField, Gravity Guy
Pages: 1 ... 5 6 [7] 8   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.575 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.